Have permtest notify user if plugin isn't prem

This commit is contained in:
libraryaddict 2020-05-20 12:44:44 +12:00
parent fcd93ec704
commit 9f95cc04d2
No known key found for this signature in database
GPG Key ID: 052E4FBCD257AEA4

View File

@ -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) {