How to apply?
Download Paper or Bungee Version. and put it to plugins folder.
Script folder is plugins/js
!
How to build?
Run build task of Bukkit or Bungee module!
How to use?
Example code
let a = 'yep'
function onInit() {
a = storage.get('test')
createCommand('hello', [], callback)
console.log('ok init succ')
}
function onPlayerMove(event) {
if(event.player.name === 'hiworld') {
event.player.send('<red>Don\'t move!')
event.setCancelled(true)
}
}
function callback(args, sender) {
sender.send('hello')
if(sender.type === 'type') {
sender.player().teleport(location.create('world', 1, 2, 3))
}
}
umm sib