This commit is contained in:
parent
dcc35c5bec
commit
75ec8576e1
2 changed files with 2 additions and 1 deletions
|
@ -231,7 +231,7 @@ public class TextCommands {
|
|||
});
|
||||
|
||||
commands.put("reload_groups",(args, networkIdentity, channelHandlerContext) -> {
|
||||
MessagePacket packet = new MessagePacket("Reloaded regions...");;
|
||||
MessagePacket packet = new MessagePacket("Reloaded groups...");;
|
||||
reload_perm_groups();
|
||||
Account account = ServerSingletons.getAccount(networkIdentity);
|
||||
packet.playerUniqueId=account.getUniqueId();
|
||||
|
|
|
@ -98,6 +98,7 @@ public class Permissions {
|
|||
BufferedWriter writer = new BufferedWriter(new FileWriter(def.getPath()));
|
||||
writer.write(json.prettyPrint(GroupPerms.get_default_perms()));
|
||||
writer.close();
|
||||
reload_perm_groups();
|
||||
}
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
|
|
Loading…
Reference in a new issue