From 9f95cc04d2a8c71de984b217d9de93e8e3cbbbfd Mon Sep 17 00:00:00 2001 From: libraryaddict Date: Wed, 20 May 2020 12:44:44 +1200 Subject: [PATCH] Have permtest notify user if plugin isn't prem --- .../disguise/commands/libsdisguises/LDPermTest.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main/java/me/libraryaddict/disguise/commands/libsdisguises/LDPermTest.java b/src/main/java/me/libraryaddict/disguise/commands/libsdisguises/LDPermTest.java index 103f2ad5..77bf9119 100644 --- a/src/main/java/me/libraryaddict/disguise/commands/libsdisguises/LDPermTest.java +++ b/src/main/java/me/libraryaddict/disguise/commands/libsdisguises/LDPermTest.java @@ -1,6 +1,7 @@ package me.libraryaddict.disguise.commands.libsdisguises; import me.libraryaddict.disguise.disguisetypes.DisguiseType; +import me.libraryaddict.disguise.utilities.LibsPremium; import me.libraryaddict.disguise.utilities.parser.DisguisePerm; import me.libraryaddict.disguise.utilities.parser.DisguisePermissions; import me.libraryaddict.disguise.utilities.translations.LibsMsg; @@ -27,6 +28,10 @@ public class LDPermTest implements LDCommand { @Override public void onCommand(CommandSender sender, String[] args) { + if (!LibsPremium.isPremium()) { + sender.sendMessage(LibsMsg.LIBS_PERM_CHECK_NON_PREM.get()); + } + Permissible player; if (args.length > 1) {