Add "Quake.Player" permission check to sign join

This commit is contained in:
Arnaud G. GIBERT 2021-05-09 01:53:59 +02:00
parent c81aa6417b
commit f0bb13838a
2 changed files with 8 additions and 0 deletions

View File

@ -165,6 +165,10 @@ public class SArena extends Arena {
player.sendMessage(_plugin._trad.get("Game.Arena.error.inGame")); player.sendMessage(_plugin._trad.get("Game.Arena.error.inGame"));
return; return;
} }
if (!Quake.hasPermission(player, "Quake.player")) {
player.sendMessage(_plugin._trad.get("NoPermission"));
return;
}
if (_VIP && !Quake.hasPermission(player, "Quake.VIP")) { if (_VIP && !Quake.hasPermission(player, "Quake.VIP")) {
player.sendMessage(_plugin._trad.get("Game.Arena.error.VIP")); player.sendMessage(_plugin._trad.get("Game.Arena.error.VIP"));
return; return;

View File

@ -178,6 +178,10 @@ public class TArena extends Arena {
player.sendMessage(_plugin._trad.get("Game.Arena.error.inGame")); player.sendMessage(_plugin._trad.get("Game.Arena.error.inGame"));
return; return;
} }
if (!Quake.hasPermission(player, "Quake.player")) {
player.sendMessage(_plugin._trad.get("NoPermission"));
return;
}
if (_VIP && !Quake.hasPermission(player, "Quake.VIP")) { if (_VIP && !Quake.hasPermission(player, "Quake.VIP")) {
player.sendMessage(_plugin._trad.get("Game.Arena.error.VIP")); player.sendMessage(_plugin._trad.get("Game.Arena.error.VIP"));
return; return;