This is a HyperSkript plugin faster and better version of Skript
Its 10X times faster becouse its uses:
via bytecode + no reflection hot paths
Better than Skript becouse variables saved in Sqlite instead of yaml
Permission: "hyperskript.admin"
To use /hs reload - command to load skripts
Skripts files end with .hs
Below you see example syntax code how to use it
There is no documentation at the moment will come soon
Code (Text):
on player join:
player.send("Welcome, {player.name}!")
player.give(1, diamond)
alert("{player.name} just join the server!")
command heal(Int: amount=10):
if sender.permission("server.heal") == False:
sender.send("&cYou don't have permission to use this command.")
stop
if amount < 1 or amount > 20:
sender.send("&eAmount must be between 1 and 20.")
stop
else:
sender.health = min(20, sender.health + amount)
sender.send("&aHealed {amount}")
command greet(String: name="", Int: times=1):
if sender.permission("server.greet") == False:
sender.send("&cYou don't have permission to use this command.")
stop
if times < 1 or times > 5:
for i runs(1):
sender.send("&eTimes must be between 1 and 5.")
stop
if name == "":
name = sender.name
for i runs(1, times):
sender.send("&aHello, {name}! You will be greeted {times} time(s). {i}")
Code (Text):
persist default sqlite
persist sqlite file "plugins/HyperSkript/state.db" wal true
state String:welcome_msg default "Hello player"
state homes:<Player,Location> persist default []
command welcome():
sender.send("{welcome_msg}")
command sethome():
homes[sender] = sender.location
sender.send("&aYour location is saved")
command home():
if homes[sender] != null:
sender.teleport(homes[sender])
sender.send("&aWelcome to youre home")
else:
sender.send("You have no home use /sethome - to set home")