refactor: unused channel
This commit is contained in:
parent
60e6a69e38
commit
91835389b1
2 changed files with 2 additions and 4 deletions
|
@ -5,7 +5,6 @@ import net.md_5.bungee.api.plugin.Plugin;
|
|||
|
||||
public class NickoBungee extends Plugin {
|
||||
public static final String NICKO_PLUGIN_CHANNEL_BASE = "nicko:";
|
||||
public static final String NICKO_PLUGIN_CHANNEL_FETCH = NICKO_PLUGIN_CHANNEL_BASE + "fetch";
|
||||
public static final String NICKO_PLUGIN_CHANNEL_UPDATE = NICKO_PLUGIN_CHANNEL_BASE + "update";
|
||||
|
||||
private static NickoBungee plugin;
|
||||
|
@ -14,8 +13,7 @@ public class NickoBungee extends Plugin {
|
|||
public void onEnable() {
|
||||
plugin = this;
|
||||
|
||||
getLogger().info("Registering channels...");
|
||||
getProxy().registerChannel(NICKO_PLUGIN_CHANNEL_FETCH);
|
||||
getLogger().info("Registering channel...");
|
||||
getProxy().registerChannel(NICKO_PLUGIN_CHANNEL_UPDATE);
|
||||
|
||||
getLogger().info("Registering listeners...");
|
||||
|
@ -27,7 +25,6 @@ public class NickoBungee extends Plugin {
|
|||
@Override
|
||||
public void onDisable() {
|
||||
getLogger().info("Unregistering channels...");
|
||||
getProxy().unregisterChannel(NICKO_PLUGIN_CHANNEL_FETCH);
|
||||
getProxy().unregisterChannel(NICKO_PLUGIN_CHANNEL_UPDATE);
|
||||
|
||||
getLogger().info("Nicko (Bungee) has been disabled.");
|
||||
|
|
|
@ -99,6 +99,7 @@ public class v1_19_R2 implements Internals {
|
|||
|
||||
if (serverPlayer.getChatSession() == null) {
|
||||
NickoBukkit.getInstance().getLogger().warning("Chat Session of " + serverPlayer.displayName + " is null!");
|
||||
NickoBukkit.getInstance().getLogger().warning("If your server is in offline mode/under BungeeCord you can safely ignore this message.");
|
||||
chatSession = null;
|
||||
} else {
|
||||
final UUID uuid = serverPlayer.getChatSession().sessionId();
|
||||
|
|
Loading…
Reference in a new issue