mirror of
https://github.com/proxiodev/RedisBungee.git
synced 2025-04-16 07:47:07 +00:00
Rename RedisBungeeConfiguration#handleMotdPriority to handleMotdOrder
This commit is contained in:
parent
b5901366af
commit
f28c0425f0
@ -62,7 +62,7 @@ public class RedisBungeeConfiguration {
|
||||
return this.handleMotd;
|
||||
}
|
||||
|
||||
public HandleMotdOrder handleMotdPriority() {
|
||||
public HandleMotdOrder handleMotdOrder() {
|
||||
return handleMotdOrder;
|
||||
}
|
||||
|
||||
|
@ -18,7 +18,6 @@ import com.google.common.io.ByteArrayDataOutput;
|
||||
import com.google.common.io.ByteStreams;
|
||||
import com.imaginarycode.minecraft.redisbungee.api.RedisBungeePlugin;
|
||||
import com.imaginarycode.minecraft.redisbungee.api.config.HandleMotdOrder;
|
||||
import net.kyori.adventure.text.Component;
|
||||
import net.kyori.adventure.text.serializer.bungeecord.BungeeComponentSerializer;
|
||||
import net.md_5.bungee.api.AbstractReconnectHandler;
|
||||
import net.md_5.bungee.api.ProxyServer;
|
||||
@ -46,7 +45,7 @@ public class RedisBungeeListener implements Listener {
|
||||
|
||||
@EventHandler(priority = EventPriority.LOWEST)
|
||||
private void onPingFirst(ProxyPingEvent event) {
|
||||
if (plugin.configuration().handleMotdPriority() != HandleMotdOrder.FIRST) {
|
||||
if (plugin.configuration().handleMotdOrder() != HandleMotdOrder.FIRST) {
|
||||
return;
|
||||
}
|
||||
onPing0(event);
|
||||
@ -54,7 +53,7 @@ public class RedisBungeeListener implements Listener {
|
||||
|
||||
@EventHandler(priority = EventPriority.NORMAL)
|
||||
private void onPingNormal(ProxyPingEvent event) {
|
||||
if (plugin.configuration().handleMotdPriority() != HandleMotdOrder.NORMAL) {
|
||||
if (plugin.configuration().handleMotdOrder() != HandleMotdOrder.NORMAL) {
|
||||
return;
|
||||
}
|
||||
onPing0(event);
|
||||
@ -62,7 +61,7 @@ public class RedisBungeeListener implements Listener {
|
||||
|
||||
@EventHandler(priority = EventPriority.HIGHEST)
|
||||
private void onPingLast(ProxyPingEvent event) {
|
||||
if (plugin.configuration().handleMotdPriority() != HandleMotdOrder.LAST) {
|
||||
if (plugin.configuration().handleMotdOrder() != HandleMotdOrder.LAST) {
|
||||
return;
|
||||
}
|
||||
onPing0(event);
|
||||
|
@ -44,7 +44,7 @@ public class RedisBungeeListener {
|
||||
|
||||
@Subscribe(order = PostOrder.FIRST)
|
||||
public void onPingFirst(ProxyPingEvent event) {
|
||||
if (plugin.configuration().handleMotdPriority() != HandleMotdOrder.FIRST) {
|
||||
if (plugin.configuration().handleMotdOrder() != HandleMotdOrder.FIRST) {
|
||||
return;
|
||||
}
|
||||
onPing0(event);
|
||||
@ -52,7 +52,7 @@ public class RedisBungeeListener {
|
||||
|
||||
@Subscribe(order = PostOrder.NORMAL)
|
||||
public void onPingNormal(ProxyPingEvent event) {
|
||||
if (plugin.configuration().handleMotdPriority() != HandleMotdOrder.NORMAL) {
|
||||
if (plugin.configuration().handleMotdOrder() != HandleMotdOrder.NORMAL) {
|
||||
return;
|
||||
}
|
||||
onPing0(event);
|
||||
@ -60,7 +60,7 @@ public class RedisBungeeListener {
|
||||
|
||||
@Subscribe(order = PostOrder.LAST)
|
||||
public void onPingLast(ProxyPingEvent event) {
|
||||
if (plugin.configuration().handleMotdPriority() != HandleMotdOrder.LAST) {
|
||||
if (plugin.configuration().handleMotdOrder() != HandleMotdOrder.LAST) {
|
||||
return;
|
||||
}
|
||||
onPing0(event);
|
||||
|
Loading…
Reference in New Issue
Block a user