Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- variables:
- {warns.%player%} = 0
- {ban.%player%} = false
- command /warn [<player>]:
- trigger:
- if {rank.%player%} >= 2:
- if arg 1 is set:
- add 1 to {warns.%arg 1%}
- send "&3&lXMININGPVP &8- &7You have been warned!" to arg 1
- broadcast ""
- broadcast "&3&lWARNS &8- &3%arg 1% &7has been warned! &8[&f%{warns.%arg 1%}%/3&8]"
- broadcast ""
- else:
- stop
- else:
- send "&cDenied Access!"
- command /unwarn [<player>]:
- trigger:
- if {rank.%player%} >= 2:
- if arg 1 is set:
- remove 1 from {warns.%arg 1%}
- send "&3&lXMININGPVP &8- &7Your previous warn has been removed!" to arg 1
- broadcast ""
- broadcast "&3&lWARNS &8- &3%arg 1% &7has been unwarned!"
- broadcast ""
- else:
- stop
- else:
- send "&cDenied Access!"
- command /warns [<player>]:
- trigger:
- if {rank.%player%} >= 1:
- if arg 1 is set:
- send "&3&lWARNS &8- &3%arg 1%&7's warnings: &f%{warns.%arg 1%}%"
- else:
- send "&3&lWARNS &8- &7Your warnings: &f%{warns.%player%}%"
- else:
- send "&cDenied Access!"
- command /kick [<player>] [<text>]:
- permission: staff
- trigger:
- if arg 1 is set:
- if arg 2 is set:
- kick arg 1 due to "%coloured arg 2%"
- broadcast "&3&lXMININGPVP &8- &3%arg 1% &7got kicked for: &f%arg 2%"
- if arg 2 is not set:
- send "&cPlease add a reason to the command."
- send "&7/kick <player> <reason>"
- else:
- stop
- command /tempban [<player>] [<integer>]:
- permission: staff
- trigger:
- if arg 1 is set:
- if arg 2 is set:
- set {ban.%arg 1%} to true
- send "" to arg 1
- send "&7You have been banned by &3%player%&7!" to arg 1
- send "" to arg 1
- send "&fAppeal for an unban at: <insert link>" to arg 1
- send "&fDo not repeat what you did again when" to arg 1
- send "&fyou get unbanned." to arg 1
- send "&3Ban time: &c%arg 2%" to arg 1
- send "&7You have banned: &3%arg 1%" to player
- wait arg 2 minutes
- set {ban.%arg 1%} to false
- else:
- stop
- else:
- stop
- command /unban [<offlineplayer>]:
- permission: staff
- trigger:
- if arg 1 is set:
- set {ban.%arg 1%} to false
- send "&3You have unbanned: &f%arg 1%"
- if arg 1 is not set:
- send "&cPlease specify a banned player."
- send "&7/unban <offline player>"
- command /ban [<player>} [<text>]:
- permission: staff
- trigger:
- if arg 1 is set:
- if arg 2 is set:
- set {ban.%arg 1%} to true
- send "" to arg 1
- send "&7You have been banned by &3%player%&7!" to arg 1
- send "" to arg 1
- send "&fAppeal for an unban at: <insert link>" to arg 1
- send "&fDo not repeat what you did again when" to arg 1
- send "&fyou get unbanned." to arg 1
- send "&7You have banned: &3%arg 1%" to player
- if arg 2 is not set:
- send "&cPlease add a reason to the command."
- send "&7/ban <player> <reason>"
- else:
- stop
- on join:
- if {ban.%player%} is true:
- cancel event
- send "&cYou are banned!"
- if {ban.%player%} is false:
- uncancel event
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement