1. Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  2. LOOKING FOR A VERSION OF SKRIPT?

    You can always check out our Wiki for downloads and any other information about Skript!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Gui no work

Discussion in 'Skript' started by AKRODOGY, Jul 18, 2018.

Thread Status:
Not open for further replies.
  1. AKRODOGY

    AKRODOGY Active Member

    Joined:
    Mar 20, 2018
    Messages:
    51
    Likes Received:
    2
    Code (Skript):
    1. command /permisiuni:
    2.     trigger:
    3.         open chest with 6 row named "&cPermisiuni" to player
    4.         wait 1 tick
    5.         if {cumparatwe.%player%} is "buywe":
    6.             format slot 0 of player with redstone block named "&cBought!" with lore "5k" to close
    7.         if {cumparatfawe.%player%} is "buyfawe":
    8.             format slot 1 of player with redstone block named "&cBought!" with lore "5k" to close
    9.         if {cumparatvs.%player%} is "buyvs":
    10.             format slot 2 of player with redstone block named "&cBought!" with lore "5k" to close
    11.         else:
    12.             format slot 0 of player with diamond named "WorldEdit" with lore "5k" to close then run "adminwe"
    13.             format slot 1 of player with diamond named "fawe.plotsquared" with lore "?" to close then run "adminfawe"
    14.             format slot 2 of player with diamond named "voxelsniper.*" with lore "4.5k" to close then run "adminvs"
    15. command /adminwe:
    16.     trigger:
    17.         execute console command "eco take %player% 5000"
    18.         message "&7[&a&lPermisiuni&7] &fAi cumparat pemisia&a worldedit.*&f!" to player
    19.         set {cumparatwe.%player%} to "buywe"
    20. command /adminfawe:
    21.     trigger:
    22.         execute console command "eco take %player% 5000"
    23.         message "&7[&a&lPermisiuni&7] &fAi cumparat pemisia&a fawe.*&f!" to player
    24.         set {cumparatfawe.%player%} to "buyfawe"
    25. command /adminvs:
    26.     trigger:
    27.         execute console command "eco take %player% 5000"
    28.         message "&7[&a&lPermisiuni&7] &fAi cumparat pemisia&a voxelsniper.*&f!" to player
    29.         set {cumparatvs.%player%} to "buyvs"
    The code , and in console it says
    CONSOLE issued server command: /eco take <none> 5000
    Error: Player not found.

    and it doesn t change in redstone block
     
  2. Donut

    Donut Well-Known Member

    Joined:
    Mar 27, 2017
    Messages:
    1,340
    Likes Received:
    176
    Medals:
    you shouldnt use skquery guis and you dont need to execute console commands:
    Code (Skript):
    1. add 5000 to player's balance
    though im not sure why %player% would be none in the commands
     
  3. ShaneBee

    Moderator Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,184
    Likes Received:
    220
    I agree with Donut. I wouldn't use SkQuery GUIs I would use TUSKE GUI
    Also, if you really do want to use this one, I believe skquery is trying to run your command as a console command, therefor you should do something like
    Code (Skript):
    1. to close then run "adminwe %player%"
    and change your commands to include arguments like
    Code (Skript):
    1. command /adminwe <player>:
    2.     trigger:
    3.         remove 5000 from balance of arg-1
    4.         message "&7[&a&lPermisiuni&7] &fAi cumparat pemisia&a worldedit.*&f!" to arg-1
    5.         set {cumparatwe.%arg-1%} to "buywe"
     
    • Agree Agree x 1
Thread Status:
Not open for further replies.

Share This Page

Loading...