mirror of
https://github.com/TotalFreedomMC/TFGuilds.git
synced 2024-12-22 07:55:03 +00:00
Save data when removing a player from rank (FS-134)
This commit is contained in:
parent
3c412ca0e8
commit
02e1df6e9c
2 changed files with 3 additions and 6 deletions
6
.gitignore
vendored
6
.gitignore
vendored
|
@ -1,7 +1,3 @@
|
||||||
/.idea/artifacts
|
/.idea/
|
||||||
/.idea/libraries
|
|
||||||
/.idea/workspace.xml
|
|
||||||
/.idea/modules.xml
|
|
||||||
/.idea/uiDesigner.xml
|
|
||||||
target/
|
target/
|
||||||
out/
|
out/
|
|
@ -57,7 +57,7 @@ public class SetRankSubcommand extends Common implements CommandExecutor
|
||||||
}
|
}
|
||||||
|
|
||||||
String name = StringUtils.join(args, " ", 2, args.length);
|
String name = StringUtils.join(args, " ", 2, args.length);
|
||||||
if (name.toLowerCase().equals("none"))
|
if (name.equalsIgnoreCase("none"))
|
||||||
{
|
{
|
||||||
for (GuildRank gr : guild.getRanks())
|
for (GuildRank gr : guild.getRanks())
|
||||||
{
|
{
|
||||||
|
@ -80,6 +80,7 @@ public class SetRankSubcommand extends Common implements CommandExecutor
|
||||||
for (GuildRank gr : guild.getRanks())
|
for (GuildRank gr : guild.getRanks())
|
||||||
{
|
{
|
||||||
gr.getMembers().remove(r.getUniqueId());
|
gr.getMembers().remove(r.getUniqueId());
|
||||||
|
gr.save();
|
||||||
}
|
}
|
||||||
|
|
||||||
rank.getMembers().add(r.getUniqueId());
|
rank.getMembers().add(r.getUniqueId());
|
||||||
|
|
Loading…
Reference in a new issue