return false;
}
Permission.COMMAND_PROPERTIES.handle(sender);
//editing?
Player player = (Player) sender;
CartProperties cprop = CartProperties.getEditing(player);
if (cprop == null) {
Localization.EDIT_NOSELECT.message(player);
return true;
}
String cmd = args[0];
args = StringUtil.remove(args, 0);
if (command.equalsIgnoreCase("train")) {
TrainProperties prop = cprop.getTrainProperties();
if (prop.hasOwnership(player)) {
return TrainCommands.execute(player, prop, cmd, args);
} else {
Localization.EDIT_NOTOWNED.message(player);
return true;
}
} else if (command.equalsIgnoreCase("cart")) {
CartProperties prop = cprop;
if (prop.hasOwnership(player)) {
return CartCommands.execute(player, prop, cmd, args);
} else {
Localization.EDIT_NOTOWNED.message(player);
return true;
}