mirror of
https://github.com/Freezy-Studios/BlazeSMP.git
synced 2025-04-22 00:54:04 +02:00
Modified the modify command and create command to allow tags with spaces
This commit is contained in:
parent
8180ede6be
commit
1066d5e8ac
1 changed files with 2 additions and 2 deletions
|
@ -65,7 +65,7 @@ public class ClanCommand extends SimpleCommand {
|
|||
return true;
|
||||
}
|
||||
String clanName = args[1];
|
||||
String clanTag = args[2];
|
||||
String clanTag = String.join(" ", Arrays.copyOfRange(args, 2, args.length));
|
||||
Component tagComponent = miniMessage().deserialize(clanTag);
|
||||
|
||||
Clan newClan = new Clan(clanName, tagComponent, playerUUID);
|
||||
|
@ -667,7 +667,7 @@ public class ClanCommand extends SimpleCommand {
|
|||
return true;
|
||||
}
|
||||
String whatToModify = args[1].toLowerCase();
|
||||
String newValue = args[2];
|
||||
String newValue = String.join(" ", Arrays.copyOfRange(args, 2, args.length));
|
||||
|
||||
Clan currentClan = clans.getClanByMember(playerUUID);
|
||||
if (currentClan == null) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue