mirror of
https://github.com/IdalecioSch/StPlayer.git
synced 2026-07-28 00:30:03 -03:00
nosuchelement
This commit is contained in:
@@ -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.
|
||||||
|
|||||||
@@ -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:
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user