Complete the boats feature
This commit is contained in:
@@ -37,6 +37,17 @@ public class PlayerCommands implements CommandExecutor {
|
||||
Core.getMainClass().getFeatures().enableFeature(P, Features.Feature.DOUBLE_JUMP);
|
||||
}
|
||||
return true;
|
||||
} else if (cmd.getName().equalsIgnoreCase("toggleboat")) {
|
||||
if (P == null) {
|
||||
Core.statusMsg(sender, "only_player_cmd", false);
|
||||
return true;
|
||||
}
|
||||
if (Core.getMainClass().getFeatures().featureEnabled.get(P).get(Features.Feature.BOAT)) {
|
||||
Core.getMainClass().getFeatures().disableFeature(P, Features.Feature.BOAT);
|
||||
} else {
|
||||
Core.getMainClass().getFeatures().enableFeature(P, Features.Feature.BOAT);
|
||||
}
|
||||
return true;
|
||||
} else if (cmd.getName().equalsIgnoreCase("joinminigame")) {
|
||||
if (P == null) {
|
||||
Core.statusMsg(sender, "only_player_cmd", false);
|
||||
|
||||
@@ -327,6 +327,7 @@ public class TeamCommands implements CommandExecutor {
|
||||
Features.wantFlight.add(P.getUniqueId());
|
||||
P.sendMessage("Du wurdest zu der Liste hinzugefügt!");
|
||||
}
|
||||
return true;
|
||||
} else {
|
||||
Core.statusMsg(P, "no_perms", false);
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user