mirror of
https://github.com/Freezy-Studios/BlazeSMP.git
synced 2025-04-21 20: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;
|
return true;
|
||||||
}
|
}
|
||||||
String clanName = args[1];
|
String clanName = args[1];
|
||||||
String clanTag = args[2];
|
String clanTag = String.join(" ", Arrays.copyOfRange(args, 2, args.length));
|
||||||
Component tagComponent = miniMessage().deserialize(clanTag);
|
Component tagComponent = miniMessage().deserialize(clanTag);
|
||||||
|
|
||||||
Clan newClan = new Clan(clanName, tagComponent, playerUUID);
|
Clan newClan = new Clan(clanName, tagComponent, playerUUID);
|
||||||
|
@ -667,7 +667,7 @@ public class ClanCommand extends SimpleCommand {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
String whatToModify = args[1].toLowerCase();
|
String whatToModify = args[1].toLowerCase();
|
||||||
String newValue = args[2];
|
String newValue = String.join(" ", Arrays.copyOfRange(args, 2, args.length));
|
||||||
|
|
||||||
Clan currentClan = clans.getClanByMember(playerUUID);
|
Clan currentClan = clans.getClanByMember(playerUUID);
|
||||||
if (currentClan == null) {
|
if (currentClan == null) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue