mirror of
https://github.com/CivMC/Civ.git
synced 2026-07-18 00:20:44 +00:00
Fixed a silly bug and also added an additional check
This commit is contained in:
@@ -65,7 +65,12 @@ public class SetDestinationCommand implements CommandExecutor {
|
||||
return true;
|
||||
}
|
||||
|
||||
String destination = String.join(", ", destinations);
|
||||
String destination = String.join(" ", destinations);
|
||||
|
||||
if (destination.length() > 40) {
|
||||
player.sendMessage(ChatColor.RED + "Destinations as a whole cannot have more than 40 characters.");
|
||||
return true;
|
||||
}
|
||||
|
||||
long start = System.currentTimeMillis();
|
||||
plugin.getDatabase().setPlayerDestination(player, destination);
|
||||
|
||||
Reference in New Issue
Block a user