removing deop of Admins and adding OP condition to setHost.
This commit is contained in:
parent
b974fcf838
commit
0d70fb6b96
@ -852,8 +852,6 @@ public class ArcadeManager extends MiniPlugin implements IRelation
|
|||||||
|
|
||||||
if (_clientManager.Get(event.getPlayer()).GetRank().Has(Rank.OWNER) || (testServer && (_clientManager.Get(event.getPlayer()).GetRank().Has(Rank.DEVELOPER) || _clientManager.Get(event.getPlayer()).GetRank() == Rank.JNR_DEV)))
|
if (_clientManager.Get(event.getPlayer()).GetRank().Has(Rank.OWNER) || (testServer && (_clientManager.Get(event.getPlayer()).GetRank().Has(Rank.DEVELOPER) || _clientManager.Get(event.getPlayer()).GetRank() == Rank.JNR_DEV)))
|
||||||
event.getPlayer().setOp(true);
|
event.getPlayer().setOp(true);
|
||||||
else
|
|
||||||
event.getPlayer().setOp(false);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean IsAlive(Player player)
|
public boolean IsAlive(Player player)
|
||||||
|
@ -82,7 +82,7 @@ public class EventModule extends MiniPlugin
|
|||||||
if (!event.getMessage().toLowerCase().startsWith("/sethost "))
|
if (!event.getMessage().toLowerCase().startsWith("/sethost "))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (!Manager.GetClients().Get(event.getPlayer()).GetRank().Has(event.getPlayer(), Rank.JNR_DEV, true))
|
if (!Manager.GetClients().Get(event.getPlayer()).GetRank().Has(event.getPlayer(), Rank.JNR_DEV, true) && !event.getPlayer().isOp())
|
||||||
return;
|
return;
|
||||||
|
|
||||||
Manager.GetServerConfig().HostName = event.getMessage().split(" ")[1];
|
Manager.GetServerConfig().HostName = event.getMessage().split(" ")[1];
|
||||||
|
@ -374,7 +374,7 @@ public class GameHostManager implements Listener
|
|||||||
if (!isPrivateServer())
|
if (!isPrivateServer())
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (!Manager.GetClients().Get(event.getPlayer()).GetRank().Has(event.getPlayer(), Rank.JNR_DEV, true))
|
if (!Manager.GetClients().Get(event.getPlayer()).GetRank().Has(event.getPlayer(), Rank.JNR_DEV, true) && !event.getPlayer().isOp())
|
||||||
return;
|
return;
|
||||||
|
|
||||||
giveAdmin(event.getPlayer());
|
giveAdmin(event.getPlayer());
|
||||||
|
Loading…
Reference in New Issue
Block a user