Only allow OPs to use minestrike debug commands
This commit is contained in:
parent
1d1c3ef1be
commit
1a2e0df6ca
@ -1661,6 +1661,10 @@ public class GunModule implements Listener
|
||||
@EventHandler
|
||||
public void debug(PlayerCommandPreprocessEvent event)
|
||||
{
|
||||
if (!event.getPlayer().isOp())
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
if (event.getMessage().contains("recoil"))
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user