Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- options:
- Prefix: &8[&c&oFactions&4&oX&8] # Put the first prefix of your server here
- PrefixWarning: &8[&b&oFactions&3&oX&8] # Put the second prefix of your server here. #
- Author: FrostedWeFall
- Warning: &7Clearing Entities In
- every 3 minutes:
- broadcast "{@PrefixWarning} {@Warning} &c1 &7Minute!"
- wait 57 seconds
- broadcast "{@PrefixWarning} {@Warning} &c3 &7Seconds!"
- wait 1 seconds
- broadcast "{@PrefixWarning} {@Warning} &c2 &7Seconds!"
- wait 1 seconds
- broadcast "{@PrefixWarning} {@Warning} &c1 &7Seconds!"
- wait 1 seconds
- make server execute command "/clear lag"
- command /lagg [<text>] [<integer>]:
- trigger:
- if arg-1 is not set:
- message "&3-----------(&b&lFrostClean Commands&3)-----------"
- message "&4- &8/&cLagg clear &7- Clears entities from your worlds"
- message "&4- &8/&cLagg area &7- Clears entities from your radius"
- message "&4- &8/&cLagg killmobs &7- Clears mobs from your worlds"
- message "&3-------------------------------------------"
- if player has permission "frostclean.clear":
- if arg 1 is "clear":
- clear {_count}
- loop all arrows:
- clear loop-entity
- add 1 to {_count}
- loop entities:
- loop-entity is a dropped item
- clear loop-entity
- add 1 to {_count}
- if {_count} is not set:
- set {_count} to 0
- broadcast "{@Prefix} &7You just removed &c%{_count}% ¢ities!"
- if player has permission "frostclean.killmobs":
- if arg 1 is "killmobs":
- broadcast "{@Prefix} &7Mobs have been &cremoved!"
- loop entities:
- if loop-entity is a creature:
- clear loop-entity
- if loop-entity is a slime:
- clear all slimes
- if arg 1 is "area":
- if arg 2 is not set:
- send "&cWrong usage &8/&7Lagg [Area] [Radius]"
- if player has permission "frostclean.area":
- if arg 1 is "area":
- if arg 2 is set:
- clear {_count}
- loop all arrows in radius arg-2 around player:
- clear loop-entity
- add 1 to {_count}
- loop entities in radius arg-2 around player:
- loop-entity is a dropped item
- clear loop-entity
- add 1 to {_count}
- if {_count} is not set:
- set {_count} to 0
- broadcast "{@Prefix} &7%player% has removed &c%{_count}% &7entities within a radius of &c%arg-2%!"
- command /clear [<text>]:
- trigger:
- if arg 1 is "lag":
- clear {_count}
- loop all arrows:
- clear loop-entity
- add 1 to {_count}
- loop entities:
- loop-entity is a dropped item
- clear loop-entity
- add 1 to {_count}
- if {_count} is not set:
- set {_count} to 0
- broadcast "{@Prefix} &7Removed &c%{_count}% &7Entities!"
- command /frostlag:
- trigger:
- send ""
- send "&7Server Clear Lag Skript &cV1.0.2 &7By FrostedWeFall!" to player
- send ""
Add Comment
Please, Sign In to add comment