diff --git a/src/main/java/Leees/Bungee/Queue/Bungee/Events.java b/src/main/java/Leees/Bungee/Queue/Bungee/Events.java index 3b73f88..48217dd 100644 --- a/src/main/java/Leees/Bungee/Queue/Bungee/Events.java +++ b/src/main/java/Leees/Bungee/Queue/Bungee/Events.java @@ -125,27 +125,18 @@ public void on(PostLoginEvent event) { public void addplayertoqueue(UUID playeruuid, String originaltarget, ProxiedPlayer playername) { - TimeUnit time = TimeUnit.SECONDS; if (playername.hasPermission(Lang.QUEUEPRIORITYPERMISSION)) { playername.sendMessage(Lang.SERVERISFULLMESSAGE.replace('&', '§')); playername.setTabHeader( new ComponentBuilder(Lang.HEADERPRIORITY.replace("&", "§").replace("", "None").replace("", "None")).create(), new ComponentBuilder(Lang.FOOTERPRIORITY.replace("&", "§").replace("", "None").replace("", "None")).create()); - ProxyServer.getInstance().getScheduler().schedule(this.plugin, new Runnable() { - public void run() { LeeesBungeeQueue.getInstance().getPriorityqueue().put(playeruuid, originaltarget); - } - }, 5, TimeUnit.SECONDS); } else { playername.sendMessage(Lang.SERVERISFULLMESSAGE.replace('&', '§')); playername.setTabHeader( new ComponentBuilder(Lang.HEADER.replace("&", "§").replace("", "None").replace("", "None")).create(), new ComponentBuilder(Lang.FOOTER.replace("&", "§").replace("", "None").replace("", "None")).create()); - ProxyServer.getInstance().getScheduler().schedule(this.plugin, new Runnable() { - public void run() { - LeeesBungeeQueue.getInstance().getRegularqueue().put(playeruuid, originaltarget); - } - }, 5, TimeUnit.SECONDS); + LeeesBungeeQueue.getInstance().getRegularqueue().put(playeruuid, originaltarget); } } @EventHandler(priority = EventPriority.HIGHEST) diff --git a/src/main/resources/bungee.yml b/src/main/resources/bungee.yml index 234323f..890bdca 100644 --- a/src/main/resources/bungee.yml +++ b/src/main/resources/bungee.yml @@ -1,6 +1,6 @@ name: LeeesBungeeQueue main: Leees.Bungee.Queue.Bungee.LeeesBungeeQueue -version: 5.0.0 +version: 5.0.1 author: XeraPlugins authors: [Nate, Legault, Pistonmaster] commands: diff --git a/src/main/resources/bungeeconfig.yml b/src/main/resources/bungeeconfig.yml index 08801dd..c79cb5d 100644 --- a/src/main/resources/bungeeconfig.yml +++ b/src/main/resources/bungeeconfig.yml @@ -1,4 +1,4 @@ -# LeeesBungeeQueue V5.0.0 +# LeeesBungeeQueue V5.0.1 #make sure to follow the tutorial on the github #it tells you everything you need to do #https://github.com/XeraPlugins/LeeesBungeeQueue diff --git a/src/main/resources/config.yml b/src/main/resources/config.yml index 1b5e228..49b18a3 100644 --- a/src/main/resources/config.yml +++ b/src/main/resources/config.yml @@ -1,4 +1,4 @@ -# LeeesBungeeQueue V5.0.0 +# LeeesBungeeQueue V5.0.1 # Note - Operators and users with the permission "queue.admin" will be excluded from restrictions. ## forceLocation: true # Force the user to remain in a certain location. diff --git a/src/main/resources/plugin.yml b/src/main/resources/plugin.yml index 93c3c9e..322506e 100644 --- a/src/main/resources/plugin.yml +++ b/src/main/resources/plugin.yml @@ -1,5 +1,5 @@ name: LeeesBungeeQueue -version: 5.0.0 +version: 5.0.1 api-version: 1.17 main: Leees.Bungee.Queue.Bukkit.Main author: Nate Legault