Examples
@Command(name = "greet", permission = "myplugin.greet", sender = SenderType.PLAYER)
public class GreetCommand extends SimpleCommand {
@Override
public String execute(Context context) {
Player player = context.getPlayer();
return "Hello " + player.getName() + "!";
}
}
@Hook("floodgate")
public class FloodgateHook extends SimpleHook {
private FloodgateApi api;
@Override
public void init() {
this.api = FloodgateApi.getInstance();
MyPlugin.getInstance().setFloodgateHook(this);
}
public boolean isBedrockPlayer(UUID uuid) {
return api.isFloodgatePlayer(uuid);
}
}