Skip to content

Commit

Permalink
PM/Spy/Permission Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Calenria committed Jun 8, 2015
1 parent ba82017 commit 4ce6552
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/com/github/calenria/scbungee/SimpleChatListener.java
Original file line number Diff line number Diff line change
Expand Up @@ -112,12 +112,15 @@ public void onPluginMessage(PluginMessageEvent event) {
String serverName = st.nextToken();
Map<String, ServerInfo> servers = BungeeCord.getInstance().getServers();
for (Entry<String, ServerInfo> server : servers.entrySet()) {
if (!server.getKey().equals(serverName) && !type.equals("spy")) {
if (!server.getKey().equals(serverName) && !type.equals("spy") && !type.equals("pmspy")) {
sendPluginMessage(pluginMessage, server);
}
if (type.equals("spy")) {
sendPluginMessage(pluginMessage, server);
}
if (type.equals("pmspy")) {
sendPluginMessage(pluginMessage, server);
}
}
}

Expand Down

0 comments on commit 4ce6552

Please sign in to comment.