Relly Posted July 10, 2022 Share Posted July 10, 2022 (edited) A clear-lag script that will clear all dropped entities in your server. Add this script to your server, save, reload using /sk reload <file-name> and your set. Commands: /clearlag - Execute clearlag without waiting. Permissions: clearlag.execute - /clearlag commandConfiguration Configuring the script is easy, they are optional as all of them are set by default. There are 2 options, prefix and duration. Prefix is for when the clearlag is executed, the first word sent in the messages. Duration is for when the clearlag will be executed every X minutes, hours or whatever you define, by default, it is set as 10 minutes! With that said, enjoy the script, P.S: This is my first script I'm posting on Minehut Forums. This script is also not tested by me, if you can please tell if you have tested it and know it works, post it below in the comments of the forum. Also post your opinion on the script. Thanks! Required Addons: None Tested: No Script: # Thanks for using my script! # # My Info: # Ingame-username: Relly2K # Discord: Sky Wizard#0268 options: prefix: &8[&c&lClearLag&8]&f duration: 10 minutes command /clearlag: permission: clearlag.execute description: Execute clear lag to kill all dropped items. trigger: send "{@prefix} &aExecuting clear lag..." to player clearlag() wait 6 seconds send "{@prefix} &aClear lag executed." to player every {@duration}: clearlag() function clearlag(): broadcast "{@prefix} &bClearing all entites in &a5 seconds..." wait 1 second broadcast "{@prefix} &bClearing all entites in &a4 seconds..." wait 1 second broadcast "{@prefix} &bClearing all entites in &a3 seconds..." wait 1 second broadcast "{@prefix} &bClearing all entites in &a2 seconds..." wait 1 second broadcast "{@prefix} &bClearing all entites in &a1 seconds..." wait 1 second broadcast "{@prefix} &bClearing all entites..." broadcast "{@prefix} &bCleared &e%size of dropped items% entites!" kill dropped items Edited July 10, 2022 by Relly Fix undefined option {@p} error (Thanks to SIG12 for pointing this out) 1 Link to comment Share on other sites More sharing options...
SIG12 Posted July 10, 2022 Share Posted July 10, 2022 Good skript, You forgot to make {@p} into {@prefix}, still good tho. 1 Link to comment Share on other sites More sharing options...
Relly Posted July 10, 2022 Author Share Posted July 10, 2022 Just now, SIG12 said: Good skript, You forgot to make {@p} into {@prefix}, still good tho. Thank you, that was actually a last-minute thing, I'll change it right away. Yet, thanks for your review! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now