mirror of
https://github.com/TotalFreedomMC/TF-LibsDisguises.git
synced 2024-11-11 09:25:27 +00:00
Have permtest notify user if plugin isn't prem
This commit is contained in:
parent
fcd93ec704
commit
9f95cc04d2
1 changed files with 5 additions and 0 deletions
|
@ -1,6 +1,7 @@
|
||||||
package me.libraryaddict.disguise.commands.libsdisguises;
|
package me.libraryaddict.disguise.commands.libsdisguises;
|
||||||
|
|
||||||
import me.libraryaddict.disguise.disguisetypes.DisguiseType;
|
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.DisguisePerm;
|
||||||
import me.libraryaddict.disguise.utilities.parser.DisguisePermissions;
|
import me.libraryaddict.disguise.utilities.parser.DisguisePermissions;
|
||||||
import me.libraryaddict.disguise.utilities.translations.LibsMsg;
|
import me.libraryaddict.disguise.utilities.translations.LibsMsg;
|
||||||
|
@ -27,6 +28,10 @@ public class LDPermTest implements LDCommand {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onCommand(CommandSender sender, String[] args) {
|
public void onCommand(CommandSender sender, String[] args) {
|
||||||
|
if (!LibsPremium.isPremium()) {
|
||||||
|
sender.sendMessage(LibsMsg.LIBS_PERM_CHECK_NON_PREM.get());
|
||||||
|
}
|
||||||
|
|
||||||
Permissible player;
|
Permissible player;
|
||||||
|
|
||||||
if (args.length > 1) {
|
if (args.length > 1) {
|
||||||
|
|
Loading…
Reference in a new issue