2
0
mirror of https://github.com/proxiodev/RedisBungee.git synced 2024-12-23 10:38:01 +00:00

Fix priority of ProxyPingEvent. Closes #8

This commit is contained in:
Tux 2014-08-18 15:35:29 -04:00
parent 5102c39ee6
commit 6fadd9e4c6

View File

@ -22,6 +22,7 @@ import net.md_5.bungee.api.connection.Server;
import net.md_5.bungee.api.event.*;
import net.md_5.bungee.api.plugin.Listener;
import net.md_5.bungee.event.EventHandler;
import net.md_5.bungee.event.EventPriority;
import redis.clients.jedis.Jedis;
import java.util.*;
@ -57,7 +58,7 @@ public class RedisBungeeListener implements Listener {
plugin.getConsumer().queue(new PlayerChangedServerConsumerEvent(event.getPlayer(), event.getServer().getInfo()));
}
@EventHandler
@EventHandler(priority = EventPriority.LOWEST)
public void onPing(ProxyPingEvent event) {
ServerPing old = event.getResponse();
ServerPing reply = new ServerPing();