HyperScript 1.7.60
Commands that wait and cost, permissions and messages that take care of themselves, and a remark when a variable's name looks misspelt.
Added
warmup:on a command.warmup: 3 secondshas the player stand still that long before the trigger runs, with the time counting down above the hotbar. Moving or being hurt calls it off.cost:on a command.cost: 100takes the server's money (Vault with an economy plugin),cost: 5 gemsa currency of the script's own. Somebody who has not got it is told so, withcost message:if you want to say it your way.
command /heal:
cost: 50
warmup: 3 seconds
trigger:
heal player
- Permissions for a time.
permission player add "server.fly" for 1 houris taken back by itself afterwards, also if the player was away or the server off meanwhile. - Messages for players who are not online.
send "&aYou were paid." to arg.1 when they joinis said now if they are online and otherwise the next time they join. - A slip in a variable's name is pointed out. When the scripts load, a saved variable that is read but never set by any script, and is a letter away from one that is, gets a remark in the console:
{%player%.coinz} is read, but no script ever sets it. Did you mean {%player%.coins}?The script loads all the same. on unload:runs when a script is read again or switched off, and when the server stops.closest match of <text> in <list>, for commands of your own that say "did you mean".<list> as sentencegivesSteve, Alex and Bob.- Amounts written short.
parse "1.5k" as numberis 1500, and<amount:number>arguments take1.5k,2mand1b. ask <who> <text> as number into <variable>asks again until the answer is a number.with click copy <text>puts text on the clipboard of whoever clicks the message.nearest block of <type> within <n> blocks of <location>.at most once every 5 seconds for player:as another way of writingonce every 5 seconds for player:, which was there already and is now in the documentation: a cooldown around any lines, withelse:for "wait a moment".