Help Max Min Point

Discussion in 'Plugin Development' started by nyanneko0113, Sep 18, 2020.

Thread Status:
Not open for further replies.
  1. Offline

    nyanneko0113

    (sorry my english is bad)
    I do blockselect max min point (like worldedit)
    but i don't do.

    Error:
    Code:
    [00:30:05 INFO]: Nyanneko0113 issued server command: /getspawnset arena
    >pl
    >
    Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "Spigot Watchdog Thread"
    
    Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "Netty Server IO #0"
    Code:
    Code:
               
    FileConfiguration config = instance.getConfig();
    else if (args[0].equalsIgnoreCase("arena")) {
                    send.sendMessage("Arena1: " + config.getDouble("spawn.arena1.x") + "," + config.getDouble("spawn.arena2.x"));
                    for (double x = config.getDouble("spawn.arena1.x"); x < config.getDouble("spawn.arena2.x"); x++) {
                        send.sendMessage(String.valueOf(x));
                    }
                }
    @timtower yes, min max
     

    Attached Files:

    • aaa.PNG
      aaa.PNG
      File size:
      205.9 KB
      Views:
      4
    Last edited: Sep 18, 2020
  2. Online

    timtower Administrator Administrator Moderator

  3. Offline

    Kars

    Your loop is too big and it is using up all your memory. Check the parameters for that loop.
     
Thread Status:
Not open for further replies.

Share This Page