Server Crash

Discussion in 'Plugin Development' started by Niv-Mizzet, Nov 3, 2019.

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

    Niv-Mizzet

    Hi!
    My server has crashed. From what I can make out, when I generated an empty world using robertlit's instructions here: https://www.spigotmc.org/threads/guide-creating-empty-void-worlds-in-1-8-1-14-4.400698/, It still generated normal chunks after a certain point. I thought it wouldn't be a problem, but apparently it is. The Crash Report is attached, and if there is a different meaning, please let me know.
    EDIT: I did change one thing in his code. It seems that "@Nonull" doesn't exist, so I used @NotNull
     

    Attached Files:

  2. Offline

    timtower Administrator Administrator Moderator

  3. Offline

    Niv-Mizzet

    Right sry:
    Creation:
    Code:
    package go.SuperCraft.me;
    
    import org.bukkit.Bukkit;
    import org.bukkit.ChatColor;
    import org.bukkit.Location;
    import org.bukkit.Material;
    import org.bukkit.World;
    import org.bukkit.WorldCreator;
    import org.bukkit.WorldType;
    import org.bukkit.block.Block;
    import org.bukkit.command.Command;
    import org.bukkit.command.CommandSender;
    import org.bukkit.entity.Player;
    import java.util.Random;
    
    
    import org.bukkit.World;
    import org.bukkit.generator.ChunkGenerator;
    import org.bukkit.plugin.java.JavaPlugin;
    
    import com.sun.istack.internal.NotNull;
    
    public class VoidCreator extends ChunkGenerator {
    
    
        @Override
        @NotNull
        public ChunkData generateChunkData(@NotNull World world, @NotNull Random random, int x, int z, @NotNull BiomeGrid biome) {
            return createChunkData(world);
        } 
      
    
    }
    Implementation (Command inside of main class):
    Code:
    case "createvoid":
                    //WorldCreator wc = new WorldCreator("Void");
                    //wc.generator(new VoidCreator());
                    //wc.createWorld();-all this was commented out because I had already created the world
                    player.teleport(new Location(Bukkit.getWorld("Void"), 0, 255, 0));
     
Thread Status:
Not open for further replies.

Share This Page