mirror of
https://github.com/TotalFreedomMC/TF-LibsDisguises.git
synced 2025-08-05 12:03:12 +00:00
Allow server ops to use commands
This commit is contained in:
parent
0d5d133e42
commit
57c2924930
6 changed files with 7 additions and 7 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue