I need a respawn script so when a player respawns they are removed from the whitelist and kicked.
Maybe he specifically wants a skript?You can do with a plugin? (Not skript)
One should NEVER choose skript as an alternative over Java. Skript is basically written in Java, there are just these people who can't learn and and rather chooses a simpler ways.
Me on the other hand, know Java and Bukkit.
I personally don't use Skript, but this is possibly one of the most arrogant comments I have ever read.It's not irrelevant as long as it was a way for me to explain how lazy it is to use skript over Java.
on player respawn:
execute console command "whitelist remove %player%"
kick the player due to "&cYou died, you are no longer whitelisted!"
That should essentially work. Not sure if there is a certain effect to add/remove a player from a whitelist in skript itself.Code:on death of player: execute console command "whitelist remove %victim%" kick the victim due to "&cYou died, you are no longer whitelisted!"
Problem is the ugly console message, you can toggle it in game with "/gamerule sendCommandFeedback false" though.
And what's with all the hate towards skript?
Sure, coding in java is great, but what skript does is also pretty neat.
You're making it seem like you're trying to say skript is worse because it's more efficient?One should NEVER choose skript as an alternative over Java. Skript is basically written in Java, there are just these people who can't learn and and rather chooses a simpler ways.
Me on the other hand, know Java and Bukkit.
