Help Max Min Point

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

  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. Offline

    timtower Moderator Moderator

  3. Offline

    Kars

    Your loop is too big and it is using up all your memory. Check the parameters for that loop.
     

Share This Page