Skip to content

Commit

Permalink
5.0.1
Browse files Browse the repository at this point in the history
MAJOR BUG FIX DO NOT USE 5.0.0 USE 5.0.1
  • Loading branch information
Leeewith3Es authored Nov 21, 2021
1 parent a3bfbf6 commit 3534d9d
Showing 5 changed files with 5 additions and 14 deletions.
11 changes: 1 addition & 10 deletions src/main/java/Leees/Bungee/Queue/Bungee/Events.java
Original file line number Diff line number Diff line change
@@ -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("<position>", "None").replace("<wait>", "None")).create(),
new ComponentBuilder(Lang.FOOTERPRIORITY.replace("&", "§").replace("<position>", "None").replace("<wait>", "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("<position>", "None").replace("<wait>", "None")).create(),
new ComponentBuilder(Lang.FOOTER.replace("&", "§").replace("<position>", "None").replace("<wait>", "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)
2 changes: 1 addition & 1 deletion src/main/resources/bungee.yml
Original file line number Diff line number Diff line change
@@ -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:
2 changes: 1 addition & 1 deletion src/main/resources/bungeeconfig.yml
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion src/main/resources/config.yml
Original file line number Diff line number Diff line change
@@ -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.
2 changes: 1 addition & 1 deletion src/main/resources/plugin.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 3534d9d

Please sign in to comment.