Skip to content

Commit

Permalink
Merge pull request #16 from LaBoulangerie/groleFIXAuthenticate
Browse files Browse the repository at this point in the history
Remplace '_' par ' ' lors d'une authentification par ville ou nation DEV-203
  • Loading branch information
PainOchoco authored Nov 15, 2023
2 parents 320997e + ffc0ab1 commit a5daaf9
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public boolean onCommand(CommandSender sender, Command cmd, String alias, String
player.sendMessage("§4Pour authentifier un objet en tant que ville, vous devez en être le maire !");
return true;
}
loreText = Authenticable.parseLore(town.getName(), AuthorityType.TOWN);
loreText = Authenticable.parseLore(town.getName().replace('_', ' '), AuthorityType.TOWN);
authorityId = AuthorityType.TOWN.getPrefix() + town.getUUID().toString();
break;
case "nation":
Expand All @@ -86,7 +86,7 @@ public boolean onCommand(CommandSender sender, Command cmd, String alias, String
player.sendMessage("§4Pour authentifier un objet en tant que nation, vous devez en être le roi !");
return true;
}
loreText = Authenticable.parseLore(nation.getName(), AuthorityType.NATION);
loreText = Authenticable.parseLore(nation.getName().replace('_', ' '), AuthorityType.NATION);
authorityId = AuthorityType.NATION.getPrefix() + nation.getUUID().toString();
case "player":
default:
Expand Down

0 comments on commit a5daaf9

Please sign in to comment.