Radioactive95

CobbleStoneX 2.0

Jan 17th, 2014
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.77 KB | None | 0 0
  1. options:
  2.     # 9 Stacków = 567
  3.     cobblestone: 567 cobblestone
  4.     # Nie ruszac !
  5.     cobblestonemax: 1142 cobblestone
  6. #Komendy   
  7. command /csx [<text="help">] [<items>]:
  8.     trigger:
  9.         player has permission "csx.admin":
  10.             argument 1 is not "help", "add" or "remove":
  11.                 send "&4blad:&cNiepoprawna komenda!."
  12.                 stop
  13.             argument 1 is "help":
  14.                 send "&4 + CobbleStoneX + "
  15.                 send "&c /csx add [Ilosc] [Item] - Dodajesz item do list'y"
  16.                 send "&c /csx remove [Ilosc] [Item] - Usuwasz item z list'y"
  17.                 send "&c List'a:"
  18.                 send "&c%{cobbleloses::*}%"
  19.             argument 1 is "add":
  20.                 argument 2 is not set:
  21.                     send "&4Blad:&cMusisz wpisac ilosc i nazwe przedmiotu!"
  22.                     stop
  23.                 argument 2 is set:
  24.                     add argument 2 to {cobbleloses::*}
  25.                     send "&aDodano [ %arg 2% ] do list'y"
  26.             argument 1 is "remove":
  27.                 argument 2 is not set:
  28.                     send "&4Blad:&cMusisz wpisac ilosc i nazwe przedmiotu!"
  29.                     stop
  30.                 argument 2 is set:
  31.                     remove argument 2 from {cobbleloses::*}
  32.                     send "&aUsunieto [ %arg 2% ] z list'y"
  33.         else:
  34.             send "&4Blad:&cNie masz uprawnien!."
  35.             send "&cSkript by *RadIoActiVe !."
  36.             stop
  37. #Nowy crafting emerald'a
  38. on craft of emerald ore:
  39.     player has {@cobblestone}:
  40.         player has {@cobblestonemax}:
  41.             send "&cMasz za duzo cobblestone w ekwipunku!" to player
  42.             cancel event
  43.         else:
  44.             remove {@cobblestone} from player
  45.     else:
  46.         send "&cNie masz tylko cobblestone!" to player
  47.         cancel event
  48. on place of emerald ore:
  49.     cancel event
  50. on click holding a emerald ore:
  51.     remove 1 emerald ore from the player
  52.     give a random item of {cobbleloses::*} to player
  53. #Broadcast na temat skript'u !
  54. every 10 minutes:
  55.     loop all players:
  56.         loop-player is an op:
  57.             stop loop
  58.         send "&a&lSkript na CobbleStoneX stworzyny przez *RadioActive!" to loop-player
Advertisement
Add Comment
Please, Sign In to add comment