FrostedWeFall

Untitled

Oct 13th, 2017
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.71 KB | None | 0 0
  1. options:
  2. Prefix: &8[&c&oFactions&4&oX&8] # Put the first prefix of your server here
  3. PrefixWarning: &8[&b&oFactions&3&oX&8] # Put the second prefix of your server here. #
  4. Author: FrostedWeFall
  5. Warning: &7Clearing Entities In
  6.  
  7. every 3 minutes:
  8. broadcast "{@PrefixWarning} {@Warning} &c1 &7Minute!"
  9. wait 57 seconds
  10. broadcast "{@PrefixWarning} {@Warning} &c3 &7Seconds!"
  11. wait 1 seconds
  12. broadcast "{@PrefixWarning} {@Warning} &c2 &7Seconds!"
  13. wait 1 seconds
  14. broadcast "{@PrefixWarning} {@Warning} &c1 &7Seconds!"
  15. wait 1 seconds
  16. make server execute command "/clear lag"
  17.  
  18. command /lagg [<text>] [<integer>]:
  19. trigger:
  20. if arg-1 is not set:
  21. message "&3-----------(&b&lFrostClean Commands&3)-----------"
  22. message "&4- &8/&cLagg clear &7- Clears entities from your worlds"
  23. message "&4- &8/&cLagg area &7- Clears entities from your radius"
  24. message "&4- &8/&cLagg killmobs &7- Clears mobs from your worlds"
  25. message "&3-------------------------------------------"
  26.  
  27. if player has permission "frostclean.clear":
  28. if arg 1 is "clear":
  29. clear {_count}
  30. loop all arrows:
  31. clear loop-entity
  32. add 1 to {_count}
  33. loop entities:
  34. loop-entity is a dropped item
  35. clear loop-entity
  36. add 1 to {_count}
  37. if {_count} is not set:
  38. set {_count} to 0
  39. broadcast "{@Prefix} &7You just removed &c%{_count}% &centities!"
  40.  
  41. if player has permission "frostclean.killmobs":
  42. if arg 1 is "killmobs":
  43. broadcast "{@Prefix} &7Mobs have been &cremoved!"
  44. loop entities:
  45. if loop-entity is a creature:
  46. clear loop-entity
  47. if loop-entity is a slime:
  48. clear all slimes
  49.  
  50. if arg 1 is "area":
  51. if arg 2 is not set:
  52. send "&cWrong usage &8/&7Lagg [Area] [Radius]"
  53.  
  54. if player has permission "frostclean.area":
  55. if arg 1 is "area":
  56. if arg 2 is set:
  57. clear {_count}
  58. loop all arrows in radius arg-2 around player:
  59. clear loop-entity
  60. add 1 to {_count}
  61. loop entities in radius arg-2 around player:
  62. loop-entity is a dropped item
  63. clear loop-entity
  64. add 1 to {_count}
  65. if {_count} is not set:
  66. set {_count} to 0
  67. broadcast "{@Prefix} &7%player% has removed &c%{_count}% &7entities within a radius of &c%arg-2%!"
  68. command /clear [<text>]:
  69. trigger:
  70. if arg 1 is "lag":
  71. clear {_count}
  72. loop all arrows:
  73. clear loop-entity
  74. add 1 to {_count}
  75. loop entities:
  76. loop-entity is a dropped item
  77. clear loop-entity
  78. add 1 to {_count}
  79. if {_count} is not set:
  80. set {_count} to 0
  81. broadcast "{@Prefix} &7Removed &c%{_count}% &7Entities!"
  82.  
  83. command /frostlag:
  84. trigger:
  85. send ""
  86. send "&7Server Clear Lag Skript &cV1.0.2 &7By FrostedWeFall!" to player
  87. send ""
Add Comment
Please, Sign In to add comment