help permission skript

Discussion in 'Skript' started by ThyagoGameplays, Jul 23, 2018.

  1. command /setwarp [<text>]:
    trigger:
    player has permission "setwarp.use":
    message "&cWithout permission" to player
    if arg-1 is set:
    set {warp::%arg%} to location of player
    send "&a&lWarp %arg% Set Successfully"
    else:
    send "&a&lWarp &7- &cPlease specify a name for the warp."



    Please help me put this permission and will not go from the error in the console
     
  2. Actually it should be work fine..
    Code (Text):
    command /setwarp [<text>]:
        trigger:
            if player has permission "setwarp.use":
                message "&cWithout permission" to player
            if arg-1 is set:
                set {warp::%arg%} to location of player
                send "&a&lWarp %arg% Set Successfully"
            else:
                send "&a&lWarp &7- &cPlease specify a name for the warp."
     
    But if that wasn't worked, is there any error?
     


  3. http://prntscr.com/k9r6x5

    help
     


  4. http://prntscr.com/k9r7as
     
  5. not sure what your error is. but probably try
    IF player has permission, not just "player has permission"
     

  6. http://prntscr.com/k9r882


    did not
     

  7. http://prntscr.com/k9r8gc
     
  8. yes, but your permission is positive and your message is negative... so that doesn't make sense
     
  9. Here you go.
    Fixed code + /warp feature

    Code (Text):
    command /setwarp [<text>]:
        trigger:
            if player has permission "setwarp.use":
                if arg-1 is set:
                    set {warp.%arg 1%} to location of player
                    send "&a&lWarp %arg 1% Set Successfully."
                else:
                    send "&a&lWarp &7- &cPlease specify a name for the warp."
            else:
                send "&cYou don't have permission to do that!"

    command /warp [<text>]:
        trigger:
            if arg-1 is set:
                if {warp.%arg 1%} is not set:
                    send "&cThat warp does not exist."
                if {warp.%arg 1%} is set:
                    send "&6You have been teleported to &c%arg 1%"
                    teleport player to {warp.%arg 1%}
            else:
                send "&cPlease enter a warpname."