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

  • 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!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

Dennis12_op

Member
Apr 1, 2020
18
0
0
23
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
 
ok so you dont need [make player blah blah] (you dont need those [ ] ) and it was mentioned use code
Code:
command /punish [<offline player>] [<text>] :
    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" to close then run "tempban %arg-1% 35d &c&lYou have been tempbanned for Hack client"
            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"
            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% "
            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"
            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%"
            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"
            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."
            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"
            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%"
            format slot 9 of player with red wool named "&aCancel" to close
[doublepost=1586093863,1586093761][/doublepost]if it works please set threat to solved and feel free to give like :emoji_slight_smile:
 
Status
Not open for further replies.