Check for valid file access first

This commit is contained in:
games647
2021-02-14 17:06:44 +01:00
parent a15de80c7d
commit 303c064416
4 changed files with 8 additions and 9 deletions
@@ -47,7 +47,7 @@ public class PluginMessageListener implements Listener {
pluginMessageEvent.setCancelled(true);
if (!(pluginMessageEvent.getSender() instanceof Server)) {
//check if the message is sent really from the server and not a malicious client
//check if the message is sent from the server
return;
}