SHARE
TWEET

#punishments#

a guest May 21st, 2019 69 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. variables:
  2.     {warns.%player%} = 0
  3.     {ban.%player%} = false
  4.    
  5. command /warn [<player>]:
  6.     trigger:
  7.         if {rank.%player%} >= 2:
  8.             if arg 1 is set:
  9.                 add 1 to {warns.%arg 1%}
  10.                 send "&3&lXMININGPVP &8- &7You have been warned!" to arg 1
  11.                 broadcast ""
  12.                 broadcast "&3&lWARNS &8- &3%arg 1% &7has been warned! &8[&f%{warns.%arg 1%}%/3&8]"
  13.                 broadcast ""
  14.             else:
  15.                 stop
  16.         else:  
  17.             send "&cDenied Access!"
  18.            
  19. command /unwarn [<player>]:
  20.     trigger:
  21.         if {rank.%player%} >= 2:
  22.             if arg 1 is set:
  23.                 remove 1 from {warns.%arg 1%}
  24.                 send "&3&lXMININGPVP &8- &7Your previous warn has been removed!" to arg 1
  25.                 broadcast ""
  26.                 broadcast "&3&lWARNS &8- &3%arg 1% &7has been unwarned!"
  27.                 broadcast ""
  28.             else:
  29.                 stop
  30.         else:
  31.             send "&cDenied Access!"
  32.            
  33. command /warns [<player>]:
  34.     trigger:
  35.         if {rank.%player%} >= 1:
  36.             if arg 1 is set:
  37.                 send "&3&lWARNS &8- &3%arg 1%&7's warnings: &f%{warns.%arg 1%}%"
  38.             else:
  39.                 send "&3&lWARNS &8- &7Your warnings: &f%{warns.%player%}%"
  40.         else:
  41.             send "&cDenied Access!"
  42.            
  43. command /kick [<player>] [<text>]:
  44.     permission: staff
  45.     trigger:
  46.         if arg 1 is set:
  47.             if arg 2 is set:
  48.                 kick arg 1 due to "%coloured arg 2%"
  49.                 broadcast "&3&lXMININGPVP &8- &3%arg 1% &7got kicked for: &f%arg 2%"
  50.             if arg 2 is not set:
  51.                 send "&cPlease add a reason to the command."
  52.                 send "&7/kick <player> <reason>"
  53.         else:
  54.             stop
  55.            
  56. command /tempban [<player>] [<integer>]:
  57.     permission: staff
  58.     trigger:
  59.         if arg 1 is set:
  60.             if arg 2 is set:
  61.                 set {ban.%arg 1%} to true
  62.                 send "" to arg 1
  63.                 send "&7You have been banned by &3%player%&7!" to arg 1
  64.                 send "" to arg 1
  65.                 send "&fAppeal for an unban at: <insert link>" to arg 1
  66.                 send "&fDo not repeat what you did again when" to arg 1
  67.                 send "&fyou get unbanned." to arg 1
  68.                 send "&3Ban time: &c%arg 2%" to arg 1
  69.                 send "&7You have banned: &3%arg 1%" to player
  70.                 wait arg 2 minutes
  71.                 set {ban.%arg 1%} to false
  72.             else:
  73.                 stop
  74.         else:
  75.             stop
  76.            
  77. command /unban [<offlineplayer>]:
  78.     permission: staff
  79.     trigger:
  80.         if arg 1 is set:
  81.             set {ban.%arg 1%} to false
  82.             send "&3You have unbanned: &f%arg 1%"
  83.         if arg 1 is not set:
  84.             send "&cPlease specify a banned player."
  85.             send "&7/unban <offline player>"
  86.            
  87. command /ban [<player>} [<text>]:
  88.     permission: staff
  89.     trigger:
  90.         if arg 1 is set:
  91.             if arg 2 is set:
  92.                 set {ban.%arg 1%} to true
  93.                 send "" to arg 1
  94.                 send "&7You have been banned by &3%player%&7!" to arg 1
  95.                 send "" to arg 1
  96.                 send "&fAppeal for an unban at: <insert link>" to arg 1
  97.                 send "&fDo not repeat what you did again when" to arg 1
  98.                 send "&fyou get unbanned." to arg 1
  99.                 send "&7You have banned: &3%arg 1%" to player
  100.             if arg 2 is not set:
  101.                 send "&cPlease add a reason to the command."
  102.                 send "&7/ban <player> <reason>"
  103.         else:  
  104.             stop
  105.                
  106.            
  107. on join:
  108.     if {ban.%player%} is true:
  109.         cancel event
  110.         send "&cYou are banned!"
  111.     if {ban.%player%} is false:
  112.         uncancel event
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top