Change queued placeholder to use alias

This commit is contained in:
ajgeiss0702
2021-08-07 22:14:39 +00:00
parent e1323c70c3
commit efcc7fda8b
@@ -54,7 +54,12 @@ public class EventHandlerImpl implements EventHandler {
}
}
if(subchannel.equals("queuename")) {
main.getPlatformMethods().sendPluginMessage(recievingPlayer, "queuename", main.getQueueManager().getQueuedName(recievingPlayer));
QueueServer server = main.getQueueManager().getSingleServer(recievingPlayer);
String name = main.getMessages().getString("placeholders.position.none");
if(server != null) {
name = server.getAlias();
}
main.getPlatformMethods().sendPluginMessage(recievingPlayer, "queuename", name);
}
if(subchannel.equals("position")) {
QueueServer server = main.getQueueManager().getSingleServer(recievingPlayer);