Jump to content

SKegnh - Clearlag


kegnh

Recommended Posts

# SKegnh - ClearLag
# made by itskegnh#9344

options:
	clearlag-delay: 10 minutes
	prefix: <tooltip:&f[&cSKegnh&f]>&f[&cClearLag&f]<reset> &f

every {@clearlag-delay}:
	send "{@prefix}Clearing all items in 60 seconds." to all players
	wait 40 seconds
	send "{@prefix}Clearing all items in 20 seconds." to all players
	wait 10 seconds
	send "{@prefix}Clearing all items in 10 seconds." to all players
	wait 10 seconds
	send "{@prefix}Cleared %size of dropped items% items." to all players
	kill dropped items

command /clearlag:
	permission: skegnh.clearlag
	trigger:
		send "{@prefix}Cleared %size of dropped items% items." to all players
		kill dropped items

Simple ClearLag.
 

Edited by itskegnh
  • Like 1

Minecraft Ranks
[DEFAULT] - 9th October 2020
[PRO] - 21st November 2020
[PATRON] - 27th October 2021

Proficiency
Python - 8 Years
C/C++ - 5 Years
Skript - 4 Years
Javascript - 3 Year
Java - 1 Year

Links
Discord - kegnh#1234

 
Link to comment
Share on other sites

Nice Skript. But why do you use send " " to all players instead of broadcast " "?

Discord - tarna256

In-game name - _Tarna_

Website - https://tarna.dev
Paste Site: https://paste.tarna.dev

---------------------------------------------------------

[VIP] - 7/27/2020

Support - 7/8/20 | 11/3/20

Helper  - 11/3/20 - 2/21/21

Moderator - 2/21/21 - 5/17/21

❤️ - 5/17/21 - now

Moderator - 12/20/22 - now

---------------------------------------------------------

image.png.70849a9b84e0347ce107b8e3eaee312c.pngimage.png.2111009afbd8bef10966ba9ede35a199.png

Link to comment
Share on other sites

2 hours ago, _Tarna_ said:

Nice Skript. But why do you use send " " to all players instead of broadcast " "?

broadcast "" logs in console
to prevent console spam, I prefer to use send "" to all players.
we can also add a condition if need be in the future send "" to all players where [input has permission "clearlag.view"]

Minecraft Ranks
[DEFAULT] - 9th October 2020
[PRO] - 21st November 2020
[PATRON] - 27th October 2021

Proficiency
Python - 8 Years
C/C++ - 5 Years
Skript - 4 Years
Javascript - 3 Year
Java - 1 Year

Links
Discord - kegnh#1234

 
Link to comment
Share on other sites

4 minutes ago, itskegnh said:

broadcast "" logs in console
to prevent console spam, I prefer to use send "" to all players.
we can also add a condition if need be in the future send "" to all players where [input has permission "clearlag.view"]

Oh ok I see. Didn't know broadcast also shows it in console. But nice skript anyways. 

  • Like 1

Discord - tarna256

In-game name - _Tarna_

Website - https://tarna.dev
Paste Site: https://paste.tarna.dev

---------------------------------------------------------

[VIP] - 7/27/2020

Support - 7/8/20 | 11/3/20

Helper  - 11/3/20 - 2/21/21

Moderator - 2/21/21 - 5/17/21

❤️ - 5/17/21 - now

Moderator - 12/20/22 - now

---------------------------------------------------------

image.png.70849a9b84e0347ce107b8e3eaee312c.pngimage.png.2111009afbd8bef10966ba9ede35a199.png

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...