Download Paper or Bungee Version. and put it to plugins folder.
Script folder is plugins/js
!
Run build task of Bukkit or Bungee module!
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.getPlayer().teleport(location.create('world', 1, 2, 3))
}
}
umm sib