HyperScript 1.7.4
Version 1.7.4
Big change
Check your scripts before updating to 1.7.4
- Players now see a message when a script fails on something they did. By default: "Something went wrong with that. The staff have been told." Change it, or set it to
""to tell players nothing, withplayer-error-messageinconfig.yml. Aconfig.ymlfrom an older version has no such line and gets the default. does not containis now part of the language.
Finding out what went wrong is now one command, /hs errors, and a player whose command failed is told so instead of nothing happening. The website works properly on phones, and there are two new addons: HyperGuard for WorldGuard and HyperCitizens for Citizens NPCs.
Changed (check existing scripts)
- Players now see a message when a script fails on something they did. By default: "Something went wrong with that. The staff have been told." Change it, or set it to
""to tell players nothing, withplayer-error-messageinconfig.yml. Aconfig.ymlfrom an older version has no such line and gets the default. does not containis now part of the language.
Added
Errors
/hs errorslists what went wrong lately: the scripts that did not load, and the last failures of running scripts, newest first. Each failure shows the file and line, the line itself as written in the script, how long ago, how many times, and which player caused it. A failure that repeats is listed once with a count./hs errors clearempties the list.player-error-messageinconfig.yml, as described above. Players withhyperscript.adminget the real message (withnotify-script-errors) and not this line. A player is told at most once every five seconds.
Language
<list> does not contain <value>and<text> does not contain <text>.
For addons
HyperScriptAPI.fire(event, key, locals, player): an addon's event can now be about a player. Inside the block that player isplayer, sosend,{%player%.coins}andcooldown:work as they do in HyperScript's own events. The older three-argument form is unchanged.- A
cooldown:line is now accepted at the top of an addon's event block.
Addons (separate jars, on the Addons page)
- HyperGuard 1.0.0: WorldGuard regions in scripts.
guard regions of player,players in guard region "arena", owners and members, reading and setting flags, andon guard region enter "spawn":/leave. - HyperCitizens 1.0.0: Citizens NPCs in scripts.
create npc,make npc "Guide" say ...,walk to,look at, skins, andon npc click "Guide":. - Both need HyperScript 1.7.4.
Website
- On a phone the tabs are behind a menu button instead of a row that scrolls sideways, and the home page, script cards, playground and footer are laid out for a narrow screen.
- No page scrolls sideways at phone width.