19.03.2016, 19:37
(
Последний раз редактировалось mk124; 19.03.2016 в 21:18.
)
@dusk: I am pretty sure that the VehicleDeathEvent is working, because I am using it in my game mode myself. I looked at the .setBoot and .setBonnet problem but I couldn't find any problem. Are you sure that your vehicle supports these options and are you setting them according to the sa-mp.com wiki (https://sampwiki.blast.hk/wiki/SetVehicleParamsEx)?
//Edit: I pushed an update for the usageMessageSupplier problem. It would be nice if you could test it a little bit deeper than I did, because it might be experimental right now (http://ci.gtaun.net/job/shoebill-common/).
Here is a full example (I also renamed the notFoundHandler):
//Edit: I pushed an update for the usageMessageSupplier problem. It would be nice if you could test it a little bit deeper than I did, because it might be experimental right now (http://ci.gtaun.net/job/shoebill-common/).
Here is a full example (I also renamed the notFoundHandler):
PHP код:
commandManager = new PlayerCommandManager(getEventManager());
commandManager.registerCommands(new AdminCommands(), new Commands(getEventManager(), commandManager));
CommandGroup commandGroup = new CommandGroup();
commandGroup.registerCommands(new TestGroup());
commandGroup.setNotFoundHandler((player, commandGroup1, command) -> {
player.sendMessage(Color.RED, "* This is my message!");
return true;
});
commandGroup.setUsageMessageSupplier((player, prefix, command) -> {
return "Hello! This is not the default handler :)";
});
commandManager.registerChildGroup(commandGroup, "test");
commandManager.installCommandHandler(HandlerPriority.NORMAL);