Don't handle SGBungee messages if enableBungee is false

This commit is contained in:
Steven Scott 2012-11-25 10:34:57 -08:00
parent 5aec85da3e
commit ba44fbf4f2

View File

@ -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));