This resource is not plugin
Cleaner script is used to keep your server without lags.
What is script offering?
- Function that can be used anywhere
- Customizability
Requirements:
-
Skript
Installation:
- Download the cleaner script
- Put script in file located /plugins/skript/scripts
Setting up:
- Open file cleaner.sk
- Edit values in "Options" section to your liking
- You can set worlds where will script work, periodical remove of items, item whitelist, time delays, display types, automatic tps checker, breeding limiter, entity place limiter, spawn limiter, explosion limiter and all messages
Code (Text):
#-----------------------------------------------------------------------------------------------------
options:
#basic
world: "world" or "world_nether" or "hardcore" #In which worlds should this script work
#item remover
periodical_enabled: true #Should item remover be executed every predefined time?
whitelist: diamond or emerald #Whitelist of items, which won't get removed
time: 5 minutes #How often should be items cleared
time_before: 30 #Time when will script warn players
integers: 30,15,3,2,1 #Predefined times, when will script warn players
message: true #Should players get chat warning message?
message_message: "&cAll dropped items will be cleared in %{_timer}% seconds" #If true, what message
title: true #Should players get title warning mesage?
title_message: "&c%{_timer}% seconds" #If true, what title message
title_subtitle: "&cAll dropped items will be cleared in" #If true, what subtitle message
title_time: 2 seconds #If true, how long will be title displayed
actionbar: true #Should players get action bar warning message?
actionbar_message: "&cAll dropped items will be cleared in: %{_timer}% seconds" #If true, what message
items_deleted: "&cDeleted %{_amount}% items from ground" #Items deleted message
#automatic tps checker
checker_enabled: true #Should we check tps overtime?
checker_remove: true #Should checker remove items?
checker_time: 30 seconds #How often should script check tps
checker_limit: 18 #If tps fall under this limit, checker will start
checker_message: "&cTps went under predefined size. Enabling item deletion" #Message to console, if checker start
#breeding limiter
breeding_enabled: true #Should we limit breeding of animals?
breeding_items: seed or carrots or wheat or potato or beetroot #What types of breeding items should script check
breeding_radius: 10 #Disallowed radius of animals, if limit is exceeded
breeding_limit: 10 #Limit of animals in the predefined radius
breeding_message: "&cYou can't have this animal amount at same place" #Message when player is not able to breed more animals
#entity place limiter
place_enabled: true #Should we limit entity place amount?
place_items: boat or armor stand or minecart #What types of entities should be limited
place_radius: 20 #Disallowed radius of entities, if limit is exceeded
place_limit: 30 #Limit of entities in the predefined radius
place_message: "&cYou can't place more entities at same place" #Message when player is not able to place more entities
#spawn limiter
spawn_enabled: true #Should we limit spawning of mobs?
spawn_entity: zombie,skeleton,spider #What types of entities should be checked
spawn_delete: true #Should script delete all nearby entities, if limit is exceeded?
spawn_radius: 10 #Disallowed radius of entities, if limit is exceeded
spawn_limit: 30 #Limit of entities in the predefined radius
spawn_message: true #Should be printed message to console if limit is exceeded?
spawn_message_m: "&cDeleting mob type %{_type}% at location %event-location%" #If true, what message
#explosion limiter
explosion_enabled: true #Should we cancel tnt ignitions, when tps are low?
explosion_limit: 10 #This feature will be enabled, if tps is lower that this value
#function
#Description #JPItemDeletor()
#Example #JPItemDeletor()
#-----------------------------------------------------------------------------------------------------
FAQ:
Can i edit the file?
Yes, script is written to be easily understood and edited
Can i order custom scripts?
Yes, you can contact me on my discord
Where to send ideas for improvements?
Join my discord and send the idea
Can i order one image, like is the one at top of page?
Yes, you can contact me on my discord
Don't use reviews to report bugs or give ideas