Skip to content

Commit

Permalink
Allow spaces in NameHider (#70)
Browse files Browse the repository at this point in the history
  • Loading branch information
L1shed authored Jul 10, 2024
1 parent 7cf84aa commit 614da1d
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/main/java/keystrokesmod/utility/Commands.java
Original file line number Diff line number Diff line change
Expand Up @@ -90,12 +90,13 @@ public static void rCMD(@NotNull String c) {
return;
}

if (args.size() != 2) {
print(invSyn, 1);
return;
NameHider.n = args.get(1).replace("&", "§");

for (int i = 2; i < args.size(); i++) {
NameHider.n += " "+args.get(i).replace("&", "§");
}

NameHider.n = args.get(1).replace("&", "§");

print("&a" + Utils.uf("name") + "Nick has been set to:".substring(4), 1);
print("\"" + NameHider.n + "\"", 0);
} else if (args.get(0).equals(FakeChat.command)) {
Expand Down

0 comments on commit 614da1d

Please sign in to comment.