24.08.2014, 18:17
@DrumYum.
1. I'm not sure what the @CustomCommand annotation is for, but I do know a way to send a default message if the command doesn't exist. This is taken from the LVDM example gamemode, PlayerManager class:
The priority is "BOTTOM" which means it's the lowest one. Add you commands with a hight priority and this will only be executed if higher priority commands return false. You can find this class at shoebills github: https://github.com/Shoebill/examplel...erManager.java
Marvin, SAMP does have SQL functions: https://sampwiki.blast.hk/wiki/Category:SQLite
1. I'm not sure what the @CustomCommand annotation is for, but I do know a way to send a default message if the command doesn't exist. This is taken from the LVDM example gamemode, PlayerManager class:
Код:
eventManagerNode.registerHandler(PlayerCommandEvent.class, HandlerPriority.BOTTOM, (e) -> { Player player = e.getPlayer(); player.sendMessage(Color.RED, "Unknown command. Type /help to see help."); e.setProcessed(); });
Marvin, SAMP does have SQL functions: https://sampwiki.blast.hk/wiki/Category:SQLite