Wheemangga

New Warn

May 23rd, 2014
362
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 2.49 KB | None | 0 0
  1. # by Wheemangga :v
  2. variables:
  3.     w = 0
  4. options:
  5.     L: &7[&cWarning&7]
  6.     P: Warning.Admin
  7.    
  8. Command /Warn [<text="help">] [<player>] [<text>]:
  9.     trigger:
  10.         player doesn't have permission "{@P}":
  11.             arg 1 is "help":
  12.                 send "{@L} &bWarnings Menu"
  13.                 send " "
  14.                 send "{@L} &a/Warn check &7- Check your Warn"
  15.                 send "{@L} &a/Warn about &7- Credits"
  16.                 send "{@L} &aWarn 1.0.1" #Modified by Walt.
  17.             arg 1 is "about":
  18.                 send "{@L} &bWarnings Menu"
  19.                 send " "
  20.                 send "{@L} &aWarnMenu 1.0.1&7 by &bCleo Team"
  21.             arg 1 is "check":
  22.                 send "{@L} &bWarnings Menu"
  23.                 send " "
  24.                 send "{@L} Your Warnings : &c%{w.%player%}%"
  25.         player has permission "{@P}":
  26.             arg 1 is "about":
  27.                 send "{@L} &bWarnings Menu"
  28.                 send " "
  29.                 send "{@L} &aWarnMenu 1.0.1&7 by &bCleo Team"
  30.             arg 1 is "check":
  31.                 arg 2 is not set:
  32.                     send "{@L} &bWarnings Menu"
  33.                     send " "
  34.                     send "{@L} Your Warnings : &c%{w.%player%}%"
  35.                 arg 2 is set:
  36.                     send "{@L} &bWarnings Menu"
  37.                     send " "
  38.                     send "{@L} %arg 2%'s Warnings : &c%{w.%arg 2%}%"
  39.             arg 1 is "help":
  40.                 send "{@L} &bWarnings Menu"
  41.                 send " "
  42.                 send "{@L} &a/Warn add <player> <reason> &7- Warn a Player"
  43.                 send "{@L} &a/Warn rem <player> &7- Remove Player's Warning"
  44.                 send "{@L} &a/Warn clear <player> &7- Clear Player's Warning"
  45.                 send " "
  46.                 send "{@L} &aWarn Menu &7by &bWalt"
  47.             arg 1 is "add":
  48.                 arg 2 is set:
  49.                     arg 3 is set:
  50.                         broadcast "{@L} &c%arg 2% &fhas received a &cWARNING&f: %arg 3%"
  51.                         add 1 to {w.%arg 2%}
  52.                         {w.%arg 2%} is above or equal to 3:
  53.                             ban arg 2
  54.                             kick arg 2 due to "{@L} &cWarningmu sudah mencapai 3! maka kamu di Ban!"
  55.                         {w.%arg 2%} is above or equal to 5:
  56.                             kick the player due to "{@L} &cWarningmu telah mencapai 3! maka kamu di BAN!"
  57.                             ban the player due to "{@L} &cWarningmu telah mencapai 3! maka kamu di BAN!"
  58.                 arg 2 is not set:
  59.                     send "{@L} You must Input the Name of the Player!"
  60.             arg 1 is "rem":
  61.                 arg 2 is set:
  62.                     send "{@L} &a%player%&7 has removed One of your Warnings" to arg 2
  63.                     remove 1 from {w.%arg 2%}
  64.                 arg 2 is not set:
  65.                     send "{@L} You must Input the Name of the Player!"
  66.             arg 1 is "clear":
  67.                 arg 2 is set:
  68.                     send "{@L} &a%player%&7 has clear all of your Warnings" to arg 2
  69.                     clear {w.%arg 2%}
  70.                 arg 2 is not set:
  71.                     send "{@L} You must Input the Name of the Player!"
  72. On Join:
  73.     {w.%player%} is above or equal to 3:
  74.         kick the player due to "{@L} &cKamu telah di Ban karena Warningmu 3!"
Advertisement
Add Comment
Please, Sign In to add comment