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.

Solved I dont know what is wrong with the skript it isent working pls help

Discussion in 'Skript' started by Dennis12_op, Apr 5, 2020.

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

    Dennis12_op Member

    Joined:
    Apr 1, 2020
    Messages:
    18
    Likes Received:
    0
    I dont know what is wrong with the skript it isent working pls help

    command /punish [<offline player>] [<text>]:
    aliases: /p
    permission: ban.use
    permission message: &cNo Permission.
    trigger:
    if arg-1 is not set:
    send "&7[&cBan&7] &c/ban &7<player> [reason]"
    if arg-1 is set:
    open chest with 2 rows named "&b&lSelect Ban Reason" to player
    wait 1 tick
    format slot 0 of player with iron sword named "&aHack client #1" with lore "" to close then run [make player execute command "/tempban %arg-1% 35d &c&lYou have been tempbanned for Hack client"]
    format slot 1 of player with lead named "&aHack client #2" with lore "" to close then run [make player execute command "/ban %arg-1% &c&lYou have been banned for Hack client"]
    format slot 2 of player with ghast tear named "&aBreaking other rules #1 (15 days ban)" with lore "Reason %arg-2%" to close then run [make player execute command "/tempban %arg-1% 15d &c&lYou have been tempbanned for %arg-2% "]
    format slot 3 of player with speed potion named "&aBreaking other rules #2 (50 days ban)" with lore "Reason %arg-2%" to close then run [make player execute command "/litebans:ban %arg-1% Speed"]
    format slot 4 of player with apple named "&aBreaking other rules #3 (Perm ban)" with lore "Reason %arg-2%" to close then run [make player execute command "/ban %arg-1% &c&lYou have been banned for %arg-2%"]
    format slot 5 of player with compass named "&aBan Evasion" with lore "" to close then run [make player execute command "/banip %arg-1% &c&lYou have benn banned for ban Evasion"]
    format slot 6 of player with daylight sensor named "&aChat offence #1" with lore "" to close then run [make player execute command "/warn %arg-1% &c&lYou have been warned for chat offence."]
    format slot 7 of player with melon slice named "&aChat offence #2" with lore "" to close then run [make player execute command "/mute %arg-1% &c&lYou have been muted for chat offence"]
    format slot 8 of player with boat named "&aInfo" with lore "&7Click to see all punishments info about %arg-1%" to close then run [make player execute command "/punishinfo %arg-1%"]
    format slot 9 of player with red wool named "&aCancel" with lore "" to close
     
  2. HiqqhFive

    Supporter

    Joined:
    Jan 28, 2017
    Messages:
    60
    Likes Received:
    6
    Please use the code field...

    Code (Text):
    1. it looks like this
     
    GuardDev likes this.
  3. GuardDev

    GuardDev Member

    Joined:
    Apr 5, 2020
    Messages:
    19
    Likes Received:
    4
    That won't help us to fix it, please let us know what the errors are, also use proper formatting.
     
    HiqqhFive likes this.
  4. PanHack

    PanHack Active Member

    Joined:
    Dec 18, 2019
    Messages:
    143
    Likes Received:
    8
    ok so you dont need [make player blah blah] (you dont need those [ ] ) and it was mentioned use code
    Code (Text):
    1. command /punish [<offline player>] [<text>] :
    2.     trigger:
    3.         if arg-1 is not set:
    4.             send "&7[&cBan&7] &c/ban &7<player> [reason]"
    5.         if arg-1 is set:
    6.             open chest with 2 rows named "&b&lSelect Ban Reason" to player
    7.             wait 1 tick
    8.             format slot 0 of player with iron sword named "&aHack client 1" to close then run "tempban %arg-1% 35d &c&lYou have been tempbanned for Hack client"
    9.             format slot 1 of player with lead named "&aHack client 2" to close then run "ban %arg-1% &c&lYou have been banned for Hack client"
    10.             format slot 2 of player with ghast tear named "&aBreaking other rules 1 (15 days ban)" with lore "Reason %arg-2%" to close then run "tempban %arg-1% 15d &c&lYou have been tempbanned for %arg-2% "
    11.             format slot 3 of player with speed potion named "&aBreaking other rules 2 (50 days ban)" with lore "Reason %arg-2%" to close then run "litebans:ban %arg-1% Speed"
    12.             format slot 4 of player with apple named "&aBreaking other rules 3 (Perm ban)" with lore "Reason %arg-2%" to close then run "ban %arg-1% &c&lYou have been banned for %arg-2%"
    13.             format slot 5 of player with compass named "&aBan Evasion" to close then run "ban-ip %arg-1% &c&lYou have benn banned for ban Evasion"
    14.             format slot 6 of player with daylight sensor named "&aChat offence 1" to close then run "warn %arg-1% &c&lYou have been warned for chat offence."
    15.             format slot 7 of player with melon slice named "&aChat offence 2" with lore "" to close then run "mute %arg-1% &c&lYou have been muted for chat offence"
    16.             format slot 8 of player with boat named "&aInfo" with lore "&7Click to see all punishments info about %arg-1%" to close then run "punishinfo %arg-1%"
    17.             format slot 9 of player with red wool named "&aCancel" to close
    18.  
    --- Double Post Merged, Apr 5, 2020, Original Post Date: Apr 5, 2020 ---
    if it works please set threat to solved and feel free to give like :emoji_slight_smile:
     
Thread Status:
Not open for further replies.

Share This Page

Loading...