Skip to content

Commit

Permalink
Add built in documentation to Alter command and fix issue with alter …
Browse files Browse the repository at this point in the history
…swap command
  • Loading branch information
Kurumi78 committed Oct 19, 2024
1 parent 3745f1c commit 9396af4
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ public boolean onCommand(CommandSender commandSender, Command command, String s,
}

}
else{commandSender.sendMessage("Command usage: /system (create/delete/front) <New Fronter>");}
}
else{ //Else for checking if player
Bukkit.getLogger().log(Level.WARNING, "Only a player may use this command");
Expand Down Expand Up @@ -74,7 +75,7 @@ private void setFronterCommand(Player player, String alterName){
ArrayList<Alter> alters = new ArrayList<>();
alters.addAll(playerSystem.getAlterList().values());
for(int iterations = 0; iterations < alters.size(); iterations++) {
if(alters.get(iterations).getName().toLowerCase() == alterName){
if(alters.get(iterations).getName().toLowerCase().equals(alterName.toLowerCase())){
playerSystem.setFronter(alters.get(iterations));
break;
}
Expand Down

0 comments on commit 9396af4

Please sign in to comment.