error with my code

Discussion in 'Spigot Plugin Help' started by minecrafters, Jun 19, 2015.

  1. Code (Text):
    [21:51:30 ERROR]: Could not pass event PlayerTeleportEvent to WorldGuard v6.1
    org.bukkit.event.EventException
            at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.ja
    va:297) ~[craftbukkit.jar:git-Bukkit-37102a0]
            at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.jav
    a:62) ~[craftbukkit.jar:git-Bukkit-37102a0]
            at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.j
    ava:501) [craftbukkit.jar:git-Bukkit-37102a0]
            at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.j
    ava:486) [craftbukkit.jar:git-Bukkit-37102a0]
            at org.bukkit.craftbukkit.v1_8_R1.entity.CraftPlayer.teleport(CraftPlaye
    r.java:445) [craftbukkit.jar:git-Bukkit-37102a0]
            at org.bukkit.craftbukkit.v1_8_R1.entity.CraftEntity.teleport(CraftEntit
    y.java:204) [craftbukkit.jar:git-Bukkit-37102a0]
            at me.TTACsniper1234.Minigame.Minigame$1.run(Minigame.java:95) [Gun-Wars
    .jar:?]
            at org.bukkit.craftbukkit.v1_8_R1.scheduler.CraftTask.run(CraftTask.java
    :53) [craftbukkit.jar:git-Bukkit-37102a0]
            at org.bukkit.craftbukkit.v1_8_R1.scheduler.CraftScheduler.mainThreadHea
    rtbeat(CraftScheduler.java:349) [craftbukkit.jar:git-Bukkit-37102a0]
            at net.minecraft.server.v1_8_R1.MinecraftServer.z(MinecraftServer.java:6
    57) [craftbukkit.jar:git-Bukkit-37102a0]
            at net.minecraft.server.v1_8_R1.DedicatedServer.z(DedicatedServer.java:2
    84) [craftbukkit.jar:git-Bukkit-37102a0]
            at net.minecraft.server.v1_8_R1.MinecraftServer.y(MinecraftServer.java:6
    02) [craftbukkit.jar:git-Bukkit-37102a0]
            at net.minecraft.server.v1_8_R1.MinecraftServer.run(MinecraftServer.java
    :510) [craftbukkit.jar:git-Bukkit-37102a0]
            at java.lang.Thread.run(Unknown Source) [?:1.8.0_31]
    Caused by: java.lang.NullPointerException
            at com.sk89q.worldguard.bukkit.ConfigurationManager.get(ConfigurationMan
    ager.java:222) ~[?:?]
            at com.sk89q.worldguard.bukkit.RegionQuery.getApplicableRegions(RegionQu
    ery.java:94) ~[?:?]
            at com.sk89q.worldguard.bukkit.listener.WorldGuardPlayerListener.onPlaye
    rTeleport(WorldGuardPlayerListener.java:348) ~[?:?]
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0
    _31]
            at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0
    _31]
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1
    .8.0_31]
            at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_31]
            at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.ja
    va:295) ~[craftbukkit.jar:git-Bukkit-37102a0]
            ... 13 more
    [21:51:30 ERROR]: Could not pass event PlayerTeleportEvent to Towny v0.89.2.0
    org.bukkit.event.EventException
            at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.ja
    va:297) ~[craftbukkit.jar:git-Bukkit-37102a0]
            at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.jav
    a:62) ~[craftbukkit.jar:git-Bukkit-37102a0]
            at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.j
    ava:501) [craftbukkit.jar:git-Bukkit-37102a0]
            at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.j
    ava:486) [craftbukkit.jar:git-Bukkit-37102a0]
            at org.bukkit.craftbukkit.v1_8_R1.entity.CraftPlayer.teleport(CraftPlaye
    r.java:445) [craftbukkit.jar:git-Bukkit-37102a0]
            at org.bukkit.craftbukkit.v1_8_R1.entity.CraftEntity.teleport(CraftEntit
    y.java:204) [craftbukkit.jar:git-Bukkit-37102a0]
            at me.TTACsniper1234.Minigame.Minigame$1.run(Minigame.java:95) [Gun-Wars
    .jar:?]
            at org.bukkit.craftbukkit.v1_8_R1.scheduler.CraftTask.run(CraftTask.java
    :53) [craftbukkit.jar:git-Bukkit-37102a0]
            at org.bukkit.craftbukkit.v1_8_R1.scheduler.CraftScheduler.mainThreadHea
    rtbeat(CraftScheduler.java:349) [craftbukkit.jar:git-Bukkit-37102a0]
            at net.minecraft.server.v1_8_R1.MinecraftServer.z(MinecraftServer.java:6
    57) [craftbukkit.jar:git-Bukkit-37102a0]
            at net.minecraft.server.v1_8_R1.DedicatedServer.z(DedicatedServer.java:2
    84) [craftbukkit.jar:git-Bukkit-37102a0]
            at net.minecraft.server.v1_8_R1.MinecraftServer.y(MinecraftServer.java:6
    02) [craftbukkit.jar:git-Bukkit-37102a0]
            at net.minecraft.server.v1_8_R1.MinecraftServer.run(MinecraftServer.java
    :510) [craftbukkit.jar:git-Bukkit-37102a0]
            at java.lang.Thread.run(Unknown Source) [?:1.8.0_31]
    Caused by: java.lang.NullPointerException
            at com.palmergames.bukkit.towny.listeners.TownyPlayerListener.onPlayerMo
    ve(TownyPlayerListener.java:550) ~[?:?]
            at com.palmergames.bukkit.towny.listeners.TownyPlayerListener.onPlayerTe
    leport(TownyPlayerListener.java:589) ~[?:?]
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0
    _31]
            at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0
    _31]
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1
    .8.0_31]
            at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_31]
            at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.ja
    va:295) ~[craftbukkit.jar:git-Bukkit-37102a0]
            ... 13 more
    [21:51:30 ERROR]: Could not pass event PlayerTeleportEvent to NoCheatPlus v3.12.
    0-BETA2-sASO-b813
    org.bukkit.event.EventException
            at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.ja
    va:297) ~[craftbukkit.jar:git-Bukkit-37102a0]
            at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.jav
    a:62) ~[craftbukkit.jar:git-Bukkit-37102a0]
            at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.j
    ava:501) [craftbukkit.jar:git-Bukkit-37102a0]
            at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.j
    ava:486) [craftbukkit.jar:git-Bukkit-37102a0]
            at org.bukkit.craftbukkit.v1_8_R1.entity.CraftPlayer.teleport(CraftPlaye
    r.java:445) [craftbukkit.jar:git-Bukkit-37102a0]
            at org.bukkit.craftbukkit.v1_8_R1.entity.CraftEntity.teleport(CraftEntit
    y.java:204) [craftbukkit.jar:git-Bukkit-37102a0]
            at me.TTACsniper1234.Minigame.Minigame$1.run(Minigame.java:95) [Gun-Wars
    .jar:?]
            at org.bukkit.craftbukkit.v1_8_R1.scheduler.CraftTask.run(CraftTask.java
    :53) [craftbukkit.jar:git-Bukkit-37102a0]
            at org.bukkit.craftbukkit.v1_8_R1.scheduler.CraftScheduler.mainThreadHea
    rtbeat(CraftScheduler.java:349) [craftbukkit.jar:git-Bukkit-37102a0]
            at net.minecraft.server.v1_8_R1.MinecraftServer.z(MinecraftServer.java:6
    57) [craftbukkit.jar:git-Bukkit-37102a0]
            at net.minecraft.server.v1_8_R1.DedicatedServer.z(DedicatedServer.java:2
    84) [craftbukkit.jar:git-Bukkit-37102a0]
            at net.minecraft.server.v1_8_R1.MinecraftServer.y(MinecraftServer.java:6
    02) [craftbukkit.jar:git-Bukkit-37102a0]
            at net.minecraft.server.v1_8_R1.MinecraftServer.run(MinecraftServer.java
    :510) [craftbukkit.jar:git-Bukkit-37102a0]
            at java.lang.Thread.run(Unknown Source) [?:1.8.0_31]
    Caused by: java.lang.NullPointerException: World must not be null.
            at fr.neatmonster.nocheatplus.checks.moving.LocUtil.testWorld(LocUtil.ja
    va:97) ~[?:?]
            at fr.neatmonster.nocheatplus.checks.moving.LocUtil.clone(LocUtil.java:2
    2) ~[?:?]
            at fr.neatmonster.nocheatplus.checks.moving.MovingData.setSetBack(Moving
    Data.java:404) ~[?:?]
            at fr.neatmonster.nocheatplus.checks.moving.MovingListener.onPlayerTelep
    ort(MovingListener.java:985) ~[?:?]
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0
    _31]
            at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0
    _31]
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1
    .8.0_31]
            at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_31]
            at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.ja
    va:295) ~[craftbukkit.jar:git-Bukkit-37102a0]
            ... 13 more
    [21:51:30 WARN]: [Last-Man] Task #84 for Last-Man v1.0 generated an exception
    java.lang.NullPointerException
            at org.bukkit.craftbukkit.v1_8_R1.entity.CraftPlayer.teleport(CraftPlaye
    r.java:461) ~[craftbukkit.jar:git-Bukkit-37102a0]
            at org.bukkit.craftbukkit.v1_8_R1.entity.CraftEntity.teleport(CraftEntit
    y.java:204) ~[craftbukkit.jar:git-Bukkit-37102a0]
            at me.TTACsniper1234.Minigame.Minigame$1.run(Minigame.java:95) ~[?:?]
            at org.bukkit.craftbukkit.v1_8_R1.scheduler.CraftTask.run(CraftTask.java
    :53) ~[craftbukkit.jar:git-Bukkit-37102a0]
            at org.bukkit.craftbukkit.v1_8_R1.scheduler.CraftScheduler.mainThreadHea
    rtbeat(CraftScheduler.java:349) [craftbukkit.jar:git-Bukkit-37102a0]
            at net.minecraft.server.v1_8_R1.MinecraftServer.z(MinecraftServer.java:6
    57) [craftbukkit.jar:git-Bukkit-37102a0]
            at net.minecraft.server.v1_8_R1.DedicatedServer.z(DedicatedServer.java:2
    84) [craftbukkit.jar:git-Bukkit-37102a0]
            at net.minecraft.server.v1_8_R1.MinecraftServer.y(MinecraftServer.java:6
    02) [craftbukkit.jar:git-Bukkit-37102a0]
            at net.minecraft.server.v1_8_R1.MinecraftServer.run(MinecraftServer.java
    :510) [craftbukkit.jar:git-Bukkit-37102a0]
            at java.lang.Thread.run(Unknown Source) [?:1.8.0_31]
    >
    Code (Text):

        BukkitScheduler scheduler = Bukkit.getServer().getScheduler();
                scheduler.scheduleSyncDelayedTask(this, new Runnable() {
                    @Override
                    public void run() {
                        Bukkit.broadcastMessage(ChatColor.GREEN
                                + "Gun wars has started!");
                        for (Player online : Bukkit.getOnlinePlayers()) {
                            if (ingame.contains(online)) {
                                online.sendMessage("teleported to the arena");
                                Location l = new Location(Bukkit.getWorld("world"),
                                        -6, 43, -432);
                                online.teleport(l);
     
    thers the code idk what the problem is can someone please help