mirror of
https://github.com/TotalFreedomMC/TF-LibsDisguises.git
synced 2025-08-05 12:03:12 +00:00
1.9+ Initial Commit
LibsDisguises.instance is no longer exposed, replaced with LibsDisguises.getInstance()
This commit is contained in:
parent
321ecdb3c2
commit
9847ff035a
8 changed files with 60 additions and 49 deletions
|
@ -1,8 +1,6 @@
|
|||
package me.libraryaddict.disguise.commands;
|
||||
|
||||
import me.libraryaddict.disguise.DisguiseListener;
|
||||
import me.libraryaddict.disguise.LibsDisguises;
|
||||
|
||||
import org.bukkit.ChatColor;
|
||||
import org.bukkit.command.Command;
|
||||
import org.bukkit.command.CommandExecutor;
|
||||
|
@ -17,7 +15,7 @@ public class UndisguiseEntityCommand implements CommandExecutor {
|
|||
return true;
|
||||
}
|
||||
if (sender.hasPermission("libsdisguises.undisguiseentity")) {
|
||||
LibsDisguises.instance.getListener().setDisguiseEntity(sender.getName(), null);
|
||||
LibsDisguises.getInstance().getListener().setDisguiseEntity(sender.getName(), null);
|
||||
sender.sendMessage(ChatColor.RED + "Right click a disguised entity to undisguise them!");
|
||||
} else {
|
||||
sender.sendMessage(ChatColor.RED + "You are forbidden to use this command.");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue