mirror of
https://github.com/plexusorg/Module-LibsDisguises.git
synced 2024-11-25 13:15:01 +00:00
Oops
This commit is contained in:
parent
4f5d3bfbb1
commit
3ecde827d5
@ -22,5 +22,6 @@ public class LibsDisguises extends PlexModule
|
|||||||
@Override
|
@Override
|
||||||
public void disable()
|
public void disable()
|
||||||
{
|
{
|
||||||
|
unregisterListener(new DisguiseListener());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -25,6 +25,7 @@ public class DisguiseToggleCMD extends PlexCommand
|
|||||||
{
|
{
|
||||||
Bukkit.getServer().getPluginManager().callEvent(new UndisguiseEvent(true));
|
Bukkit.getServer().getPluginManager().callEvent(new UndisguiseEvent(true));
|
||||||
}
|
}
|
||||||
return Component.text(commandSender.getName() + " - " + (LibsDisguises.enabled ? "Enabling LibsDisguises" : "Disabling LibsDisguises")).color((LibsDisguises.enabled ? NamedTextColor.AQUA : NamedTextColor.RED));
|
Bukkit.broadcast(Component.text(commandSender.getName() + " - " + (LibsDisguises.enabled ? "Enabling LibsDisguises" : "Disabling LibsDisguises")).color((LibsDisguises.enabled ? NamedTextColor.AQUA : NamedTextColor.RED)));
|
||||||
|
return null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -22,12 +22,14 @@ public class UndisguiseAllCMD extends PlexCommand
|
|||||||
if (args.length == 0)
|
if (args.length == 0)
|
||||||
{
|
{
|
||||||
Bukkit.getServer().getPluginManager().callEvent(new UndisguiseEvent(false));
|
Bukkit.getServer().getPluginManager().callEvent(new UndisguiseEvent(false));
|
||||||
return Component.text(sender.getName() + " - Undisguising all non-admins").color(NamedTextColor.RED);
|
Bukkit.broadcast(Component.text(sender.getName() + " - Undisguising all non-admins").color(NamedTextColor.RED));
|
||||||
|
return null;
|
||||||
}
|
}
|
||||||
else if (args[0].equalsIgnoreCase("-a"))
|
else if (args[0].equalsIgnoreCase("-a"))
|
||||||
{
|
{
|
||||||
Bukkit.getServer().getPluginManager().callEvent(new UndisguiseEvent(true));
|
Bukkit.getServer().getPluginManager().callEvent(new UndisguiseEvent(true));
|
||||||
return Component.text(sender.getName() + " - Undisguising all players").color(NamedTextColor.RED);
|
Bukkit.broadcast(Component.text(sender.getName() + " - Undisguising all players").color(NamedTextColor.RED));
|
||||||
|
return null;
|
||||||
}
|
}
|
||||||
return usage();
|
return usage();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user