Added admins with in-game icons and permissions; untested

This commit is contained in:
Anuken
2018-02-25 23:44:35 -05:00
parent 9f5f6ae382
commit 7429d029f3
16 changed files with 278 additions and 151 deletions

View File

@@ -355,6 +355,7 @@ public class ServerControl extends Module {
if(target != null){
String ip = Net.getConnection(player.clientid).address;
netServer.admins.adminPlayer(ip);
NetEvents.handleAdminSet(target, true);
info("Admin-ed player by IP: {0} / {1}", ip, arg[0]);
}else{
info("Nobody with that name could be found.");
@@ -379,6 +380,7 @@ public class ServerControl extends Module {
if(target != null){
String ip = Net.getConnection(player.clientid).address;
netServer.admins.unAdminPlayer(ip);
NetEvents.handleAdminSet(target, false);
info("Un-admin-ed player by IP: {0} / {1}", ip, arg[0]);
}else{
info("Nobody with that name could be found.");