Allow server ops to use commands

This commit is contained in:
libraryaddict 2019-11-23 14:38:21 +13:00
parent 0d5d133e42
commit 57c2924930
6 changed files with 7 additions and 7 deletions

View file

@ -13,7 +13,7 @@ public class UndisguiseEntityCommand implements CommandExecutor {
@Override
public boolean onCommand(CommandSender sender, Command cmd, String label, String[] args) {
if (sender instanceof Player &&
if (sender instanceof Player && !sender.isOp()&&
(!LibsPremium.isPremium() || LibsPremium.getPaidInformation() == LibsPremium.getPluginInformation())) {
sender.sendMessage(ChatColor.RED + "Please purchase Lib's Disguises to enable player commands");
return true;