Added undisguise message for undisguiseentity
This commit is contained in:
parent
951d60f0aa
commit
15a8974d1e
@ -1,6 +1,5 @@
|
|||||||
package me.libraryaddict.disguise.commands;
|
package me.libraryaddict.disguise.commands;
|
||||||
|
|
||||||
|
|
||||||
import me.libraryaddict.disguise.DisguiseListener;
|
import me.libraryaddict.disguise.DisguiseListener;
|
||||||
|
|
||||||
import org.bukkit.ChatColor;
|
import org.bukkit.ChatColor;
|
||||||
@ -8,7 +7,6 @@ import org.bukkit.command.Command;
|
|||||||
import org.bukkit.command.CommandExecutor;
|
import org.bukkit.command.CommandExecutor;
|
||||||
import org.bukkit.command.CommandSender;
|
import org.bukkit.command.CommandSender;
|
||||||
|
|
||||||
|
|
||||||
public class UndisguiseEntityCommand implements CommandExecutor {
|
public class UndisguiseEntityCommand implements CommandExecutor {
|
||||||
private DisguiseListener listener;
|
private DisguiseListener listener;
|
||||||
|
|
||||||
@ -24,6 +22,7 @@ public class UndisguiseEntityCommand implements CommandExecutor {
|
|||||||
}
|
}
|
||||||
if (sender.hasPermission("libsdisguises.undisguiseentity")) {
|
if (sender.hasPermission("libsdisguises.undisguiseentity")) {
|
||||||
listener.setSlap(sender.getName(), null);
|
listener.setSlap(sender.getName(), null);
|
||||||
|
sender.sendMessage(ChatColor.RED + "Right click a disguised entity to undisguise them!");
|
||||||
} else
|
} else
|
||||||
sender.sendMessage(ChatColor.RED + "You are forbidden to use this command!");
|
sender.sendMessage(ChatColor.RED + "You are forbidden to use this command!");
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
Reference in New Issue
Block a user