HyperScript 1.7.52
More that used to take a timer and a handful of variables: random teleports, mutes, kill streaks, stopwatches, /back, spawn protection, countdowns and daily rewards.
Added
- A safe random place.
random safe location within 2000 blocks of {spawn}gives a place to put a player: ground to stand on, room for the body, nothing that burns or drowns. Withteleport ... after 3 seconds unless they movethat is a whole/rtp. - Mutes.
mute arg.1 for 10 minutes because "spam",unmute arg.1,player is muted,mute time left of player,mute reason of player. A muted player cannot chat or use the commands for talking, and is told why and for how long. Works for somebody who is offline and lasts through restarts. - Safe from harm.
make player invulnerable for 5 seconds, oruntil <condition>orwhile <condition>;make player vulnerable(alsounmake player invulnerable) ends it, andplayer is invulnerableasks. It is HyperScript's own and ends when the server stops, so nobody stays unhurtable by accident. - Kill streaks.
kill streak of playeris how many players they have killed in a row since they last died.on kill streak:runs at every kill with%event.streak%. - Stopwatches.
start stopwatch "race",stop stopwatch "race",stopwatch "race" of player(a duration),stopwatch "race" of player is running,reset stopwatch "race". For parkour and races; one that is running goes on through a restart. - Where they were.
last location of playeris where they were before they were last taken somewhere, which makes/backtwo lines.death location of playeris where they last died. - Keeping things on death.
keep inventoryandkeep experienceinon player death:. - Countdowns.
countdown 5 seconds:
send title "&e%seconds left%" to player
send title "&aGo!" to player
The block runs once a second with seconds left counting down; what comes after it runs at the end.
- Things done once.
once per day for player:
add 100 to {%player%.coins}
else:
send "&7You have had today's reward."
once for player: is the first time only; per day, per hour, per week, per month or per 30 minutes bring it round again. Without for it is once for the whole server.
- Numbers within limits for a command.
command /pay <target:player> <amount:number 1 to 10000>:tells a player who gives another numberamount must be between 1 and 10000.Alsoat least 1andat most 100. - Money.
money(1250.5)gives$1,250.50. How it is written ismoney-formatinconfig.yml. loop playerandloop_playerare the same asloop-playerinsideloop all players:.loop-playerworks as it always did.