diff --git a/bukkit/src/main/java/com/github/games647/fastlogin/bukkit/listener/protocollib/EncryptionUtil.java b/bukkit/src/main/java/com/github/games647/fastlogin/bukkit/listener/protocollib/EncryptionUtil.java index 46c80b0f..8cf7fcba 100644 --- a/bukkit/src/main/java/com/github/games647/fastlogin/bukkit/listener/protocollib/EncryptionUtil.java +++ b/bukkit/src/main/java/com/github/games647/fastlogin/bukkit/listener/protocollib/EncryptionUtil.java @@ -85,7 +85,7 @@ public class EncryptionUtil { /** * Decrypts the content and extracts the key spec. * - * @param cipher decryption cipher initialized with the private key + * @param privateKey decryption cipher initialized with the private key * @param sharedKey the encrypted shared key * @return shared secret key * @throws GeneralSecurityException if it fails to decrypt the data diff --git a/bungee/src/main/java/com/github/games647/fastlogin/bungee/listener/PluginMessageListener.java b/bungee/src/main/java/com/github/games647/fastlogin/bungee/listener/PluginMessageListener.java index 7e2d250f..48c847da 100644 --- a/bungee/src/main/java/com/github/games647/fastlogin/bungee/listener/PluginMessageListener.java +++ b/bungee/src/main/java/com/github/games647/fastlogin/bungee/listener/PluginMessageListener.java @@ -38,7 +38,7 @@ public class PluginMessageListener implements Listener { @EventHandler public void onPluginMessage(PluginMessageEvent pluginMessageEvent) { String channel = pluginMessageEvent.getTag(); - if (pluginMessageEvent.isCancelled() || !channel.startsWith(plugin.getName().toLowerCase())) { + if (pluginMessageEvent.isCancelled() || !channel.startsWith(plugin.getName())) { return; } @@ -47,7 +47,7 @@ public class PluginMessageListener implements Listener { pluginMessageEvent.setCancelled(true); if (!(pluginMessageEvent.getSender() instanceof Server)) { - //check if the message is sent from the server + //check if the message is sent really from the server and not a malicious client return; }