This commit is contained in:
Telesphoreo 2022-03-18 14:06:47 -05:00
parent 4f5d3bfbb1
commit 3ecde827d5
3 changed files with 7 additions and 3 deletions

View File

@ -22,5 +22,6 @@ public class LibsDisguises extends PlexModule
@Override
public void disable()
{
unregisterListener(new DisguiseListener());
}
}

View File

@ -25,6 +25,7 @@ public class DisguiseToggleCMD extends PlexCommand
{
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;
}
}

View File

@ -22,12 +22,14 @@ public class UndisguiseAllCMD extends PlexCommand
if (args.length == 0)
{
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"))
{
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();
}