Don't handle SGBungee messages if enableBungee is false
This commit is contained in:
parent
5aec85da3e
commit
ba44fbf4f2
@ -7,7 +7,7 @@ public class pmListener implements PluginMessageListener {
|
||||
|
||||
@Override
|
||||
public void onPluginMessageReceived(String channel, Player player, byte[] message) {
|
||||
if (!channel.equals("SGBungee")) return;
|
||||
if (!channel.equals("SGBungee") || !Stargate.enableBungee) return;
|
||||
|
||||
// Message should be destination gate name.
|
||||
Portal dest = Portal.getBungeeGate(new String(message));
|
||||
|
Loading…
Reference in New Issue
Block a user