SkyWarsReloaded Help

Oct 31, 2018
SkyWarsReloaded Help
  • Hello everyone!

    As you might now: The owner of the amazing SkyWarsReloaded plugin is no longer active. Because of that I'm gonna take over the help and discussion threads.
    That means that you can PM or Email me with your problems with the SkyWarsReloaded plugin. We will figure a way out to fix it!

    In this wiki, there are explained some common bugs.
    All bugs that have been fixed will be displayed here.
    Select a bug in the travel menu:



    Recognizing a bug(top)

    A bug/error can be caused by almost everything in your server. It's not very difficult to find the cause of the bug/error. In order to find this, you'll have to go to your console and lookup the error.
    An error will look something like:
    Code (YAML):
    [10:33:25 WARN]: [Skywars] Task #139 for Skywars v3.4.2-Snapshot generated an exception
    java.lang.ClassCastException
    : org.bukkit.craftbukkit.v1_8_R3.block.CraftBlockState cannot be cast to org.bukkit.block.Chest
            at com.walrusone.skywarsreloaded.menus.gameoptions.ChestOption.completeOption(ChestOption.java:118) ~[?:?]
            at com.walrusone.skywarsreloaded.managers.MatchManager.startMatch(MatchManager.java:324) ~[?:?]
            at com.walrusone.skywarsreloaded.managers.MatchManager.access$100(MatchManager.java:42) ~[?:?]
            at com.walrusone.skywarsreloaded.managers.MatchManager$3.run(MatchManager.java:273) ~[?:?]
            at org.bukkit.craftbukkit.v1_8_R3.scheduler.CraftTask.run(CraftTask.java:71) ~[spigot.jar:git-Spigot-21fe707-e1ebe52]
            at org.bukkit.craftbukkit.v1_8_R3.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:350) [spigot.jar:git-Spigot-21fe707-e1ebe52]
            at net.minecraft.server.v1_8_R3.MinecraftServer.B(MinecraftServer.java:723) [spigot.jar:git-Spigot-21fe707-e1ebe52]
            at net.minecraft.server.v1_8_R3.DedicatedServer.B(DedicatedServer.java:374) [spigot.jar:git-Spigot-21fe707-e1ebe52]
            at net.minecraft.server.v1_8_R3.MinecraftServer.A(MinecraftServer.java:654) [spigot.jar:git-Spigot-21fe707-e1ebe52]
            at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:557) [spigot.jar:git-Spigot-21fe707-e1ebe52]
            at java.lang.Thread.run(Thread.java:748) [?:1.8.0_181]

    Explanation:
    [time:is:here ERROR_TYPE_HERE]: [PluginName] Bug name is here and some more information
    below here you have an error type which could be NullPointerException, ClassCastException, EntityNotExistException and a lot others. After the : is an explanation of the bug. If there isn't enough information there, search for the caused by text in the error. We already know what the bug is: ...CraftBlockState cannot be cast to org.bukkit.block.Chest . This means that there is a block somewhere which has been set as chest somewhere in the config, but isn't really a chest. Here is the plugin trying to get stuff in all chests, but it stops the process because it is trying to add stuff to a block that isn't a chest, which is not possible.
    The solution is simple: Remove all blocks of the chests section in the config of location that are NOT chests.

    Game won't start(top)

    Question: My game will not start? What can I do!?
    Solution: There could be multiple reasons why a game won't start. Below is a chest bug. Go to the recognizing a bug section to find the cause of the error.

    Bug in the console:
    Code (YAML):
    [10:33:25 WARN]: [Skywars] Task #139 for Skywars v3.4.2-Snapshot generated an exception
    java.lang.ClassCastException
    : org.bukkit.craftbukkit.v1_8_R3.block.CraftBlockState cannot be cast to org.bukkit.block.Chest
            at com.walrusone.skywarsreloaded.menus.gameoptions.ChestOption.completeOption(ChestOption.java:118) ~[?:?]
            at com.walrusone.skywarsreloaded.managers.MatchManager.startMatch(MatchManager.java:324) ~[?:?]
            at com.walrusone.skywarsreloaded.managers.MatchManager.access$100(MatchManager.java:42) ~[?:?]
            at com.walrusone.skywarsreloaded.managers.MatchManager$3.run(MatchManager.java:273) ~[?:?]
            at org.bukkit.craftbukkit.v1_8_R3.scheduler.CraftTask.run(CraftTask.java:71) ~[spigot.jar:git-Spigot-21fe707-e1ebe52]
            at org.bukkit.craftbukkit.v1_8_R3.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:350) [spigot.jar:git-Spigot-21fe707-e1ebe52]
            at net.minecraft.server.v1_8_R3.MinecraftServer.B(MinecraftServer.java:723) [spigot.jar:git-Spigot-21fe707-e1ebe52]
            at net.minecraft.server.v1_8_R3.DedicatedServer.B(DedicatedServer.java:374) [spigot.jar:git-Spigot-21fe707-e1ebe52]
            at net.minecraft.server.v1_8_R3.MinecraftServer.A(MinecraftServer.java:654) [spigot.jar:git-Spigot-21fe707-e1ebe52]
            at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:557) [spigot.jar:git-Spigot-21fe707-e1ebe52]
            at java.lang.Thread.run(Thread.java:748) [?:1.8.0_181]
    If you see a bug similiar to this one, it means that there is a chest set up on a location where isn't really a chest. In your mapData file is a section called chests. If you have any chests set up, there'd be a list below. In that list could be a location/locations that you ever setup as a chests, but later removed with worldEdit or something. You have to remove these non-chets from the chests section. If you don't know which location it is, just remove the chests section from the file, reload the plugin and replace every chest in the map.


    Chests haven't been filled(top)

    Question: I started my game, but there are no items in my chests... what happened?
    Solution: You have to add all chest types to every chest type. You can add only items to the normal chest, but that means that for the other types (op and basic) the chests will be empty because there are no items added to the type. Add items to every chest type by using the following command:
    /sw chestadd [chesttype] [method] [percentage]
    [chesttype] = op / normal / basic
    [method] = inv / hand -- inv will add your whole inventory to the file with the same percentage, hand will only add your hand item with that percentage.
    [percentage] = how much chance there should be of that these items will be in a chest. If you set it to 100%, all items will be in every chest. If you set it to 0%, these items will be in NONE of the chests.

    My map is incomplete: missing blocks / Map load errors(top)

    Question: When I edit the map, it's complete (for the 1st time), but after I played it, it's incomplete, half and a lot of blocks are missing. WHY!?
    Solution: I Don't know the exact cause, but I do know how to fix it. Do NOT build your map/paste schematics etc. at the default spawn location after you're teleported to the map. Your location will be something like 0,75,0. Fly away really, really far from the start and build your map there. If you build it in the center, for some reason, the world will be cut in halves, split, removed or something like that. The y-coordinate (height) doesn't matter. Fly away like 300 blocks, if you have a big map, just don't take any risks.

    I can't create/edit maps(top)

    Question: I can't create maps, if I try to create a map (/swm create test), it says: "Spawn must be set to create or edit maps!". What the hell?
    Solution: You need to set the main spawn for skywars before you'll be able to edit or create any maps. This spawn will be used as joinSpawn, worldJoinSpawn and respawnLocation after a game. You can set the spawnpoint using: /sw setspawn.

    The plugin doesn't work(top)

    Question: The plugin doesn't work. When I use the /sw command, it says: /sw [args]...
    Solution: The plugin is disabled. Probably because something went wrong in the configuration or because the plugin doesn't support your current spigot/bukkit version. The original plugin only works for 1.8x-1.12x servers. All versions above/below will not work. If you go to the start of your console, there will probably an error with a text like:
    Code (YAML):
    [28.10 13:03:27]: [Server] ERROR: Could not find support for this CraftBukkit version.
    This means that the plugin does not support your server version. If you want a version that works for 1.13, @smessie created an updated version of SkyWarsReloaded which can be found HERE.

    I get errors when I chat / AsyncPlayerChatEvent error(top)

    Question: Everytime I chat, there is a bug in the console... what's the cause?
    Solution: If you look at the error, you will see that the error is caused on the 184th line of the java class ChatListener. If you look at that line (you don't have to do this and probably don't know how), you will see the following code:
    Code (Java):
    event.getPlayer().getWorld().equals(SkyWarsReloaded.getCfg().getSpawn().getWorld())
    This code is looking up the world where the player is in and tries to compare it with the Spawn's world. This error will only be caused if the config.yml is missing, the spawnpoint hasn't been set or if the spawnpoint is invalid. To fix this issue, you have to restart the plugin if config.yml doesn't exist, have to set the spawnpoint if you haven't done that yet OR set the spawnpoint again, because it's invalid.
    The error looks like this, if you wanna know:
    Code (YAML):

    [19:06:19 ERROR]
    : Could not pass event AsyncPlayerChatEvent to Skywars v3.4.2-Snapshot
    org.bukkit.event.EventException
            at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:306) ~[spigot.jar:git-Spigot-3fb9445-6e3cec8]
            at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) ~[spigot.jar:git-Spigot-3fb9445-6e3cec8]
            at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:502) [spigot.jar:git-Spigot-3fb9445-6e3cec8]
            at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:484) [spigot.jar:git-Spigot-3fb9445-6e3cec8]
            at net.minecraft.server.v1_11_R1.PlayerConnection.chat(PlayerConnection.java:1276) [spigot.jar:git-Spigot-3fb9445-6e3cec8]
            at net.minecraft.server.v1_11_R1.PlayerConnection.a(PlayerConnection.java:1214) [spigot.jar:git-Spigot-3fb9445-6e3cec8]
            at net.minecraft.server.v1_11_R1.PacketPlayInChat$1.run(PacketPlayInChat.java:39) [spigot.jar:git-Spigot-3fb9445-6e3cec8]
            at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) [?:1.8.0_171]
            at java.util.concurrent.FutureTask.run(Unknown Source) [?:1.8.0_171]
            at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [?:1.8.0_171]
            at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [?:1.8.0_171]
            at java.lang.Thread.run(Unknown Source) [?:1.8.0_171]
    Caused by
    : java.lang.NullPointerException
            at com.walrusone.skywarsreloaded.listeners.ChatListener.onChat(ChatListener.java:184) ~[?:?]
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_171]
            at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_171]
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_171]
            at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_171]
            at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:302) ~[spigot.jar:git-Spigot-3fb9445-6e3cec8]
            ... 11 more

    Item doesn't disappear when menu is set to false(top)

    Question: When options menu is set to false the ender eye does not disappear. Why?
    Solution: You disabled the menu, but it's just still in your inventory. If you want it to be out of the inventory, you will have to clear your inventory and join again. Then will only the join and spectate items be added to your inventory.
  • Loading...
  • Loading...