Skip to content

Commit

Permalink
/realname : Fix nick separated by spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
PainOchoco committed Apr 2, 2024
1 parent d713f5d commit 692700f
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,7 @@ public class RealNameCommand implements CommandExecutor, TabCompleter {
@Override
public boolean onCommand(@NotNull CommandSender sender, @NotNull Command cmd, @NotNull String alias,
@NotNull String[] args) {
if (args.length != 1) {
return false;
}

String nick = args[0];
String nick = String.join(" ", args);

for (Player player : Bukkit.getServer().getOnlinePlayers()) {
YamlConfiguration userData = UsersData.getOrCreate(player);
Expand Down

0 comments on commit 692700f

Please sign in to comment.