- Баллы
- 78
- Имя в Minecraft
- _Rufu5_
HTML:
public class QQMain extends JavaPlugin {
@Override
public boolean onCommand(CommandSender sender,
Command command, String label, String[] args) {
if (command.getName().equalsIgnoreCase("lobby")){
if (sender instanceof Player){
Player player = (Player)sender;
World world = player.getLocation().getWorld();
Location location = new Location(world,0,62,0);
player.teleport(location);
}
}
return false;
}
}
Код:
name: QQ
version: 1.0
description: QQ
load: POSTWORLD
author: _Rufu5_
main: op.minecraft._Rufu5_.QQ.QQMain
command:
lobby:
description: Tp lobby
permission: _Rufu5_.lobby
permissions:
_Rufu5_.lobby:
default: true