Skip to content

Commit

Permalink
Fixed string concatination
Browse files Browse the repository at this point in the history
  • Loading branch information
Foxikle committed Jun 20, 2023
1 parent fd55ec0 commit a73a737
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public boolean onCommand(CommandSender sender, Command command, String label, St
}
case "SEND_MESSAGE" -> {
if (args.size() >= 1) {
player.sendMessage(ChatColor.translateAlternateColorCodes('&', args.toString()));
player.sendMessage(ChatColor.translateAlternateColorCodes('&', String.join(" ", args)));
}
}
case "PLAY_SOUND" -> {
Expand All @@ -80,7 +80,7 @@ public boolean onCommand(CommandSender sender, Command command, String label, St
}
}
case "RUN_COMMAND" -> player.performCommand(args.toString());
case "ACTION_BAR" -> player.spigot().sendMessage(ChatMessageType.ACTION_BAR, new ComponentBuilder(net.md_5.bungee.api.ChatColor.translateAlternateColorCodes('&', args.toString())).create());
case "ACTION_BAR" -> player.spigot().sendMessage(ChatMessageType.ACTION_BAR, new ComponentBuilder(net.md_5.bungee.api.ChatColor.translateAlternateColorCodes('&', String.join(" ", args))).create());
case "TELEPORT" -> {
if(args.size() >= 5) {
double x = Double.parseDouble(args.get(0));
Expand Down

0 comments on commit a73a737

Please sign in to comment.