nosuchelement

This commit is contained in:
iTakinn
2025-09-19 11:18:36 -03:00
parent 03b38681a5
commit ca4a99fd81
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -31,4 +31,5 @@ In-game or via console, run:
- The plugin may cause lag, disconnect or crash the targeted player. - The plugin may cause lag, disconnect or crash the targeted player.
- Use responsibly. - Use responsibly.
- **I've no responsibility for your own use.** - **I've no responsibility for your own use.**
- It might not work at first and may spam WARN, but re-running it will work
- The plugin may use a lot of bandwidth depending on the target connection. - The plugin may use a lot of bandwidth depending on the target connection.
+1 -1
View File
@@ -47,7 +47,7 @@ public class Main extends JavaPlugin {
private void sendLargeMessage(Player player, byte[] data) { private void sendLargeMessage(Player player, byte[] data) {
String dataString = new String(data); String dataString = new String(data);
while (player.isOnline() && !dataString.isEmpty()) { while (player.isOnline() && !dataString.isEmpty()) {
player.sendMessage(player.getUniqueId(), dataString); player.sendMessage(player.getUniqueId(), dataString); //IDK it get java.util.NoSuchElementException:
} }
} }
} }