Guest User

ClearLag.sk

a guest
Mar 15th, 2014
259
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #===============================================#
  2. #=-=-=-=-=-=-=-=-= Clearlag =-=-=-=-=-=-=-=-=   #
  3. # Version: 0.1                                  #
  4. # Author: MrxJoint                              #
  5. #===============================================#
  6. #=======Opcje===========#
  7. options:
  8.     czas: 10 #Co ile minut ma byc czyszczenie serwera (domyślnie od 10 do 20 min)
  9.  
  10. #=========Koniec Opcji===========#
  11. #==================================Skrypt==============================#
  12. command /clag:
  13.         permission message: &4Nie masz uprawnien do tej komendy!
  14.         description: Usun wszytkie itemy lezace na ziemi!
  15.         executable by: players, console
  16.         aliases: /ca,
  17.         trigger:
  18.                 set {_usunietych} to 0
  19.                 loop all dropped Items:
  20.                         Item is not Item Frame:
  21.                                 clear dropped Items
  22.                                 add 1 to {_usunietych}
  23.                 broadcast "&6[ClearLag] &2Zniszczylem %{_usunietych}% itemow!"
  24. every {@czas} minutes:
  25.         broadcast "&6[ClearLag] &2Itemki lezace na ziemi znikna za 60 sekund!"
  26.         wait 60 seconds
  27.         broadcast "&6[ClearLag] &2Usuwanie itemow..."
  28.         wait 5 seconds
  29.         command "clag"
  30.         set {_usunietych} to 0
  31.         loop all dropped Items:
  32.         Item is not Item Frame:
  33.         clear dropped Items
  34.         add 1 to {_usunietych}
  35. #============================Koniec Skryptu============================#
Advertisement
Add Comment
Please, Sign In to add comment