mirror of
https://github.com/TotalFreedomMC/TFGuilds.git
synced 2024-12-22 07:55:03 +00:00
set and save this
This commit is contained in:
parent
58993e4ddb
commit
e1aa50565e
1 changed files with 2 additions and 0 deletions
|
@ -49,6 +49,8 @@ public class InviteGuildCommand extends GBase implements CommandExecutor
|
|||
{
|
||||
List<String> players = plugin.guilds.getStringList("guilds." + guild + ".members");
|
||||
players.add(player.getName());
|
||||
plugin.guilds.set("guilds." + guild + ".members", players);
|
||||
plugin.guilds.save();
|
||||
GUtil.invitedPlayers.remove(player.getName());
|
||||
player.sendMessage(ChatColor.GREEN + "You have successfully joined " + guild);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue