Errors in my Skript

Discussion in 'Spigot Plugin Development' started by Boraa, Jun 16, 2016.

Thread Status:
Not open for further replies.
  1. I'm not sure what is wrong with my Skript. Can someone help me?

    CODE:
    Code (Text):
    #MAKE SURE ESSENTIALS IS INSTALLED, AND IT IS THE LATEST BUILD!
    options:
           disabled: &cDisabled Successfully
           enabled: &aEnabled Successfully
           version: 1.0-A# <-- Dont edit!
           noperm: &cYou do not have permission.
           about: &9This server is running Core version Skript:versionLatestBuild:Core version 1.0-A by Gent1emen

    on join:
           set {ip::%player%} to player's ip #Dont edit this.
           
    command /moderation [<offline player>] [<text>]:
         trigger:
         
         #!--Do Not Edit Below This Point--!#
         #Plugin brought to you by Gent1emen
         
           
         
             if arg-2 is not set:
                send "&a/mod <player> <reason>"
                send "&aModeration+ by Gent1emen"
           
            if player does not have permission "moderate.use":
            trigger:
                send "&cYou do not have permission!"
                execute player command "playsound noteblock.pling @p"
                       
           
            if player has permission "moderate.use":
            trigger:
               open chest with 6 rows named "Moderate &b&l%arg-1%"
               wait 1 tick
               format slot 4 of player with arg-1's skull named "&f&lModerate %arg-1%" to be unstealable
               format slot 10 of player with paper named "%Arg-1%'s IP" with lore "{ip::%player%}" to be unstealable
               format slot 19 of player with paper named "Send Mail to %arg-1%" with lore "Sends mail to %arg-1%" to close then [execute player command "mail send %arg-1% %arg-3%"]
               format slot 28 of player with paper named "Ban %arg-1%" with lore "Ban the Player Permanently" to close then [execute player command "ban %arg-1% %arg-2%"]
               format slot 37 of player with paper named "Mute %arg-1%" with lore "2nd argument is the time||||/moderate gent1emen 30 days " to close then [execute player command "mute %arg-1% %arg-2%"]
               format slot 32 of player with paper named "Kick %arg-1%" with lore "Kick the player from the game!" to close then [execute player command "kick %arg-1% %arg-2%]"
               format slot 12 of player with paper named "Message %arg-1%" with lore "Send the player a message" to close then [execute player command "whisper %arg-1% %arg-2%"]
               format slot 21 of player with paper named "Teleport to %arg-1%" with lore "Teleport to the player (You WONT BE INVISIBLE!)" to close then [execute player command "tp %arg-1%"]
               #format slot 14 of player with paper named "this area may be used in the future" with lore "Reserved for future use" to close then [execute player command "errormessage"]
               
            #command /moderator mode:
                   # permission: moderate.mode
                    #permission message: You do not have permission!
                    #trigger:
                     #   send "&aYou have entered &c&oModerator Mode&a. Catch those hackers!"
                        #This may be used in the future. Disabled for now. DO NOT ENABLE! IT WILL BREAK THE SCRIPT!
                       
    command /hide:
        description: Make yourself invisible. Good for finding hackers without them seeing you.
        permission: moderate.hide
        permission message: &cYou do not have permission.
        executable by: players
        trigger:
            player has permission "moderate.hide"
            hide the player from all players
            send "&bVisibility &8- &fYou are now &chidden&f." to the player
            set the player's gamemode to creative
           
    command /unhide:
        description: &fUnhide yourself
        permission: moderate.unhide
        permission message: &cYou do not have permission.
        executable by: player
        trigger:
            player has permission "moderate.hide"      
            reveal the player from all players
            send "&bVisibilty &8- &fYou are now &aunhidden&f." to the player
            set the player's gamemode to survival
               
    command /moderate:
            trigger:
                send "&bModerate &8- &fRunning version {@version} &fby Gent1emen"
                send "&bCommands:"
                send "&8- &b/hide &fMake yourself invisible"
                send "&8- &b/unhide &fMake youself visible if you're already in /hide"
                send "&8- &b/moderate &fOpens the GUI for Player Actions"


    command /flight:
        Executable by: players
        Permission: moderation.fly
        Permission message: {@NoPerm}
        Aliases: /fly
        Trigger:
            if {fly.%player%} is not set:
                send "{@Enabled}" to player
                set player's flight mode to true
                set {fly.%player%} to true
                stop
            send "{@Disabled}" to player
            set player's flight mode to false
            delete {fly.%player%}
            stop

    command /mod:
            Executable by: players and console
            trigger:
                send "{@about}"

    on skript load:
                   send "{@about}" to console
                   
     
  2. We don't help with skript. We help with plugins
     
    • Agree Agree x 3
  3. Choco

    Moderator

    To the Skript forums you go :D
     
    • Like Like x 1
  4. Well, "we" isn't a factor in this, as you cannot speak for everyone.
    and @andrew28 and @2008Choco thanks :)
     
  5. It's true for this category, "spigot plugin development."
     
  6. ~Thread locked
     
Thread Status:
Not open for further replies.