mirror of
https://github.com/TotalFreedomMC/TF-LibsDisguises.git
synced 2025-08-05 12:03:12 +00:00
Added config option ContactMojangServers which disables player skins, but stops the plugin from pinging Mojang servers.
Added reload command to reload the config. Tweaked a couple of things. Fixed isInvulnerable issue.
This commit is contained in:
parent
a33bb0b139
commit
15c0141c3d
27 changed files with 174 additions and 236 deletions
|
@ -1,6 +1,7 @@
|
|||
package me.libraryaddict.disguise.commands;
|
||||
|
||||
import me.libraryaddict.disguise.DisguiseListener;
|
||||
import me.libraryaddict.disguise.LibsDisguises;
|
||||
|
||||
import org.bukkit.ChatColor;
|
||||
import org.bukkit.command.Command;
|
||||
|
@ -8,11 +9,6 @@ import org.bukkit.command.CommandExecutor;
|
|||
import org.bukkit.command.CommandSender;
|
||||
|
||||
public class UndisguiseEntityCommand implements CommandExecutor {
|
||||
private DisguiseListener listener;
|
||||
|
||||
public UndisguiseEntityCommand(DisguiseListener listener) {
|
||||
this.listener = listener;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean onCommand(CommandSender sender, Command cmd, String label, String[] args) {
|
||||
|
@ -21,7 +17,7 @@ public class UndisguiseEntityCommand implements CommandExecutor {
|
|||
return true;
|
||||
}
|
||||
if (sender.hasPermission("libsdisguises.undisguiseentity")) {
|
||||
listener.setDisguiseEntity(sender.getName(), null);
|
||||
LibsDisguises.instance.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