Solved Plugin Interference. Need help.

Discussion in 'Plugin Development' started by VinexAx789, May 14, 2016.

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

    VinexAx789

    ISSUE: My plugin is messing around with Multi-verse Core, it's not teleporting the players to their spawns, but sometimes it is teleporting them.

    STACKTRACE:

    Code:
    14.05 21:22:18 [Server] INFO Players will be teleported in 10 seconds
    14.05 21:22:20 [Server] INFO CONSOLE issued server command: /list
    14.05 21:22:23 [Server] INFO Players will be teleported in 5 seconds
    14.05 21:22:24 [Server] INFO Players will be teleported in 4 seconds
    14.05 21:22:25 [Server] INFO Players will be teleported in 3 seconds
    14.05 21:22:26 [Server] INFO Players will be teleported in 2 seconds
    14.05 21:22:27 [Server] INFO Players will be teleported in 1 second
    14.05 21:22:28 [Server] INFO Teleporting...
    14.05 21:22:28 [Server] ERROR Could not pass event PlayerTeleportEvent to Multiverse-Core v2.5-b691
    14.05 21:22:28 [Server] INFO org.bukkit.event.EventException
    14.05 21:22:28 [Server] INFO at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:310) ~[spigot45.jar:git-Spigot-5f38d38-12698ea]
    14.05 21:22:28 [Server] INFO at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) ~[spigot45.jar:git-Spigot-5f38d38-12698ea]
    14.05 21:22:28 [Server] INFO at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:502) [spigot45.jar:git-Spigot-5f38d38-12698ea]
    14.05 21:22:28 [Server] INFO at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:487) [spigot45.jar:git-Spigot-5f38d38-12698ea]
    14.05 21:22:28 [Server] INFO at org.bukkit.craftbukkit.v1_8_R3.entity.CraftPlayer.teleport(CraftPlayer.java:444) [spigot45.jar:git-Spigot-5f38d38-12698ea]
    14.05 21:22:28 [Server] INFO at org.bukkit.craftbukkit.v1_8_R3.entity.CraftEntity.teleport(CraftEntity.java:226) [spigot45.jar:git-Spigot-5f38d38-12698ea]
    14.05 21:22:28 [Server] INFO at com.venomsurge.dtp.timer.Start.run(Start.java:38) [DTP.jar:?]
    14.05 21:22:28 [Server] INFO at org.bukkit.craftbukkit.v1_8_R3.scheduler.CraftTask.run(CraftTask.java:71) [spigot45.jar:git-Spigot-5f38d38-12698ea]
    14.05 21:22:28 [Server] INFO at org.bukkit.craftbukkit.v1_8_R3.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:350) [spigot45.jar:git-Spigot-5f38d38-12698ea]
    14.05 21:22:28 [Server] INFO at net.minecraft.server.v1_8_R3.MinecraftServer.B(MinecraftServer.java:723) [spigot45.jar:git-Spigot-5f38d38-12698ea]
    14.05 21:22:28 [Server] INFO at net.minecraft.server.v1_8_R3.DedicatedServer.B(DedicatedServer.java:374) [spigot45.jar:git-Spigot-5f38d38-12698ea]
    14.05 21:22:28 [Server] INFO at net.minecraft.server.v1_8_R3.MinecraftServer.A(MinecraftServer.java:654) [spigot45.jar:git-Spigot-5f38d38-12698ea]
    14.05 21:22:28 [Server] INFO at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:557) [spigot45.jar:git-Spigot-5f38d38-12698ea]
    14.05 21:22:28 [Server] INFO at java.lang.Thread.run(Thread.java:745) [?:1.8.0_66]
    14.05 21:22:28 [Server] INFO Caused by: java.lang.NullPointerException
    14.05 21:22:28 [Server] INFO at com.onarandombox.MultiverseCore.listeners.MVPlayerListener.playerTeleport(MVPlayerListener.java:178) ~[?:?]
    14.05 21:22:28 [Server] INFO at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_66]
    14.05 21:22:28 [Server] INFO at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_66]
    14.05 21:22:28 [Server] INFO at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_66]
    14.05 21:22:28 [Server] INFO at java.lang.reflect.Method.invoke(Method.java:497) ~[?:1.8.0_66]
    14.05 21:22:28 [Server] INFO at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:306) ~[spigot45.jar:git-Spigot-5f38d38-12698ea]
    14.05 21:22:28 [Server] INFO ... 13 more
    14.05 21:22:28 [Server] WARN Task #374 for DTP v1.0 generated an exception
    14.05 21:22:28 [Server] INFO java.lang.NullPointerException
    14.05 21:22:28 [Server] INFO at org.bukkit.craftbukkit.v1_8_R3.entity.CraftPlayer.teleport(CraftPlayer.java:460) ~[spigot45.jar:git-Spigot-5f38d38-12698ea]
    14.05 21:22:28 [Server] INFO at org.bukkit.craftbukkit.v1_8_R3.entity.CraftEntity.teleport(CraftEntity.java:226) ~[spigot45.jar:git-Spigot-5f38d38-12698ea]
    14.05 21:22:28 [Server] INFO at com.venomsurge.dtp.timer.Start.run(Start.java:38) ~[?:?]
    14.05 21:22:28 [Server] INFO at org.bukkit.craftbukkit.v1_8_R3.scheduler.CraftTask.run(CraftTask.java:71) ~[spigot45.jar:git-Spigot-5f38d38-12698ea]
    14.05 21:22:28 [Server] INFO at org.bukkit.craftbukkit.v1_8_R3.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:350) [spigot45.jar:git-Spigot-5f38d38-12698ea]
    14.05 21:22:28 [Server] INFO at net.minecraft.server.v1_8_R3.MinecraftServer.B(MinecraftServer.java:723) [spigot45.jar:git-Spigot-5f38d38-12698ea]
    14.05 21:22:28 [Server] INFO at net.minecraft.server.v1_8_R3.DedicatedServer.B(DedicatedServer.java:374) [spigot45.jar:git-Spigot-5f38d38-12698ea]
    14.05 21:22:28 [Server] INFO at net.minecraft.server.v1_8_R3.MinecraftServer.A(MinecraftServer.java:654) [spigot45.jar:git-Spigot-5f38d38-12698ea]
    14.05 21:22:28 [Server] INFO at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:557) [spigot45.jar:git-Spigot-5f38d38-12698ea]
    14.05 21:22:28 [Server] INFO at java.lang.Thread.run(Thread.java:745) [?:1.8.0_66]
    14.05 21:22:29 [Server] INFO Game starting in 20 seconds
    Any help?

     
  2. Offline

    Zombie_Striker

    @VinexAx789
    Are you sure the world is loaded? Have you ever been to the location you are teleporting the player to? Have you created a ticket on the Bukkit Dev page?
     
  3. Offline

    VinexAx789

    @Zombie_Striker The issue isn't his plugin trust me on that others have seemed to have the problem in the past but haven't stated a fix as I've seen. Also in fact the world is loaded.

    Anything, I kinda need to fix this ASAP, thanks.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 15, 2016
  4. Offline

    VinexAx789

  5. This error tends to appear a lot when using the teleport method while using the Multiverse Core plugin. What I'd suggest is to just not use it, but there is a line that might be yours:
     
  6. Offline

    VinexAx789

    Alright it's just a little odd that I've used the same setup for 3 other games and they work perfectly fine.
    I am in fact loading the values in the onEnable.

    @CodePlaysMinecraft
     
    Last edited: May 16, 2016
  7. Offline

    Zombie_Striker

    There are two scenarios:

    -A) plugin is null.
    -B)maplobby and attackerspawn are both null/ worlds that have not been loaded.

    Do a null check on both plugin and those locations to see which one is null.
     
    Last edited: May 15, 2016
  8. Offline

    VinexAx789

  9. Offline

    Betagear

    Pass the main class to the other classes using their contructor, then the main class can be used as plugin.
     
  10. Offline

    VinexAx789

    @Betagear So almost like an instance but it would be Main.getPlugin()?
     
  11. Offline

    Betagear

  12. Offline

    VinexAx789

    @Betagear I'm already doing that though. In every class or just the ones I need because I did it to the ones I need.

    @Zombie_Striker I did some null checking as you said and I gathered this.

    PHP:
    16.05 10:19:33 [MulticraftLoading server properties
    16.05 10
    :19:33 [MulticraftStarting server!
    16.05 10:19:33 [MulticraftLoaded config for "Spigot 1.8.8 Build #45"
    16.05 10:19:33 [MulticraftUpdating eula.txt file
    16.05 10
    :19:33 [ServerINFO Java HotSpot(TM64-Bit Server VM warningignoring option MaxPermSize=128Msupport was removed in 8.0
    16.05 10
    :19:33 [ServerINFO Loading librariesplease wait...
    16.05 10:19:39 [ServerINFO Starting minecraft server version 1.8.8
    16.05 10
    :19:39 [ServerINFO Loading properties
    16.05 10
    :19:39 [ServerINFO Default game typeSURVIVAL
    16.05 10
    :19:39 [ServerINFO This server is running CraftBukkit version git-Spigot-5f38d38-12698ea (MC1.8.8) (Implementing API version 1.8.8-R0.1-SNAPSHOT)
    16.05 10:19:40 [ServerINFO Server Ping Player Sample Count12
    16.05 10
    :19:40 [ServerINFO Using 4 threads for Netty based IO
    16.05 10
    :19:40 [ServerINFO Debug logging is disabled
    16.05 10
    :19:40 [ServerINFO Generating keypair
    16.05 10
    :19:40 [ServerINFO Starting Minecraft server on 142.4.218.206:25565
    16.05 10
    :19:40 [ServerINFO Using epoll channel type
    16.05 10
    :19:40 [ServerINFO Set PluginClassLoader as parallel capable
    16.05 10
    :19:41 [ServerINFO Loading CleanroomGenerator v1.0.0
    16.05 10
    :19:41 [ServerINFO Loading DTP v1.0
    16.05 10
    :19:41 [ServerINFO Loading WorldEdit v6.1;no_git_id
    16.05 10
    :19:41 [ServerINFO Loading Vault v1.5.6-b49
    16.05 10
    :19:41 [ServerINFO Loading Essentials vTeamCity
    16.05 10
    :19:41 [ServerINFO Loading VoxelSniper v5.171.0-SNAPSHOT
    16.05 10
    :19:41 [ServerINFO Loading EssentialsSpawn vTeamCity
    16.05 10
    :19:41 [ServerINFO Loading ProtocolLib v3.6.5-SNAPSHOT-b200
    16.05 10
    :19:41 [ServerINFO Loading Multiverse-Core v2.4-b527
    16.05 10
    :19:41 [ServerINFO Enabling CleanroomGenerator v1.0.0
    16.05 10
    :19:41 [ServerINFO CleanroomGenerator v1.0.0 enabled
    16.05 10
    :19:41 [ServerINFO Enabling Vault v1.5.6-b49
    16.05 10
    :19:41 [ServerINFO [EconomyEssentials Economy foundWaiting
    16.05 10
    :19:41 [ServerINFO [PermissionSuperPermissions loaded as backup permission system.
    16.05 10:19:41 [ServerINFO Enabled Version 1.5.6-b49
    16.05 10
    :19:41 [ServerINFO Enabling ProtocolLib v3.6.5-SNAPSHOT-b200
    16.05 10
    :19:41 [ServerINFO Started structure compiler thread.
    16.05 10:19:41 [ServerINFO **** Beginning UUID conversionthis may take A LONG time ****
    16.05 10:19:41 [ServerINFO Preparing level "world"
    16.05 10:19:41 [ServerINFO -------- World Settings For [world] --------
    16.05 10:19:41 [ServerINFO View Distance10
    16.05 10
    :19:41 [ServerINFO Allow Zombie Pigmen to spawn from portal blockstrue
    16.05 10
    :19:41 [ServerINFO Item Despawn Rate6000
    16.05 10
    :19:41 [ServerINFO Item Merge Radius2.5
    16.05 10
    :19:41 [ServerINFO Arrow Despawn Rate1200
    16.05 10
    :19:41 [ServerINFO Zombie Aggressive Towards Villagertrue
    16.05 10
    :19:41 [ServerINFO Cactus Growth Modifier100%
    16.05 10:19:41 [ServerINFO Cane Growth Modifier100%
    16.05 10:19:41 [ServerINFO Melon Growth Modifier100%
    16.05 10:19:41 [ServerINFO Mushroom Growth Modifier100%
    16.05 10:19:41 [ServerINFO Pumpkin Growth Modifier100%
    16.05 10:19:41 [ServerINFO Sapling Growth Modifier100%
    16.05 10:19:41 [ServerINFO Wheat Growth Modifier100%
    16.05 10:19:41 [ServerINFO NetherWart Growth Modifier100%
    16.05 10:19:41 [ServerINFO Entity Activation RangeAn 32 Mo 32 Mi 16
    16.05 10
    :19:41 [ServerINFO Entity Tracking RangePl 48 An 48 Mo 48 Mi 32 Other 64
    16.05 10
    :19:41 [ServerINFO Hopper Transfer8 Hopper Check8 Hopper Amount1
    16.05 10
    :19:41 [ServerINFO Random Lighting Updatesfalse
    16.05 10
    :19:41 [ServerINFO Structure Info Savingtrue
    16.05 10
    :19:41 [ServerINFO Sending up to 10 chunks per packet
    16.05 10
    :19:41 [ServerINFO Max Entity Collisions8
    16.05 10
    :19:41 [ServerINFO Custom Map Seeds:  Village10387312 Feature14357617
    16.05 10
    :19:41 [ServerINFO Max TNT Explosions100
    16.05 10
    :19:41 [ServerINFO Tile Max Tick Time50ms Entity max Tick Time50ms
    16.05 10
    :19:41 [ServerINFO Mob Spawn Range4
    16.05 10
    :19:41 [ServerINFO Anti X-Raytrue
    16.05 10
    :19:41 [ServerINFO Engine Mode1
    16.05 10
    :19:41 [ServerINFO Hidden Blocks: [1415162148495456737482129130]
    16.05 10:19:41 [ServerINFO Replace Blocks: [15]
    16.05 10:19:41 [ServerINFO Nerfing mobs spawned from spawnersfalse
    16.05 10
    :19:41 [ServerINFO Chunks to Grow per Tick650
    16.05 10
    :19:41 [ServerINFO Clear tick list: false
    16.05 10
    :19:41 [ServerINFO Experience Merge Radius3.0
    16.05 10
    :19:41 [ServerINFO Preparing start region for level 0 (Seed353724489982677977)
    16.05 10:19:42 [ServerINFO Enabling DTP v1.0
    16.05 10
    :19:42 [ServerINFO DTP v1.0 PLUGIN
    16.05 10
    :19:42 [ServerINFO Location{world=CraftWorld{name=world},x=2306.4923319628456,y=10.0625,z=397.78995616665367,pitch=5.229923,yaw=181.52615LOBBY
    16.05 10
    :19:42 [ServerINFO Location{world=null,x=-125.84654362668087,y=77.08942117664103,z=3.9001253212647873,pitch=1.1999557,yaw=269.99875MAP LOBBY
    16.05 10
    :19:42 [ServerINFO Location{world=null,x=-161.69999998807907,y=66.0,z=3.9009577606695904,pitch=-0.9000442,yaw=270.59872ATTACKER SPAWN
    16.05 10
    :19:42 [ServerINFO Location{world=null,x=-68.44463945637402,y=78.0625,z=21.6802581789792,pitch=-0.6000833,yaw=-180.00055DEFENDER SPAWN
    16.05 10
    :19:42 [ServerINFO Enabling WorldEdit v6.1;no_git_id
    16.05 10
    :19:43 [ServerINFO WEPIFUsing the Bukkit Permissions API.
    16.05 10:19:43 [ServerINFO Using com.sk89q.worldedit.bukkit.adapter.impl.Spigot_v1_8_R3 as the Bukkit adapter
    16.05 10
    :19:43 [ServerINFO Enabling Essentials vTeamCity
    16.05 10
    :19:43 [ServerINFO Bukkit version format changedVersion not checked.
    16.05 10:19:43 [ServerINFO git-Spigot-5f38d38-12698ea (MC1.8.8)
    16.05 10:19:43 [ServerINFO 1.8.8-R0.1-SNAPSHOT
    16.05 10
    :19:43 [ServerINFO Using locale en_GB
    16.05 10
    :19:43 [ServerINFO Using locale en_GB
    16.05 10
    :19:43 [ServerINFO [Vault][EconomyEssentials Economy hooked.
    16.05 10:19:43 [ServerINFO EssentialsUsing config file enhanced permissions.
    16.05 10:19:43 [ServerINFO Permissions listed in as player-commands will be given to all users.
    16.05 10:19:43 [ServerINFO Enabling VoxelSniper v5.171.0-SNAPSHOT
    16.05 10
    :19:43 [ServerINFO Registered 75 Sniper Brushes with 149 handles.
    16.05 10:19:43 [ServerINFO Registered Sniper Listener.
    16.05 10:19:43 [ServerINFO Enabling EssentialsSpawn vTeamCity
    16.05 10
    :19:43 [ServerINFO Enabling Multiverse-Core v2.4-b527
    16.05 10
    :19:43 [ServerINFO Version 2.4-b527 (API v14Enabled By Rigbyfernferretlithium3141 and main--
    16.05 10:19:43 [ServerINFO Version 10.0 hooked into Essentials Economy for Multiverse-Core v2.4-b527
    16.05 10
    :19:44 [ServerINFO Loading World Settings 'world' EnvNORMAL TypeFLAT seed353724489982677977
    16.05 10
    :19:44 [ServerINFO Loading World Settings 'WhiteHouse' EnvNORMAL TypeNORMAL seed5037964204925333504
    16.05 10
    :19:44 [ServerINFO -------- World Settings For [WhiteHouse] --------
    16.05 10:19:44 [ServerINFO View Distance10
    16.05 10
    :19:44 [ServerINFO Allow Zombie Pigmen to spawn from portal blockstrue
    16.05 10
    :19:44 [ServerINFO Item Despawn Rate6000
    16.05 10
    :19:44 [ServerINFO Item Merge Radius2.5
    16.05 10
    :19:44 [ServerINFO Arrow Despawn Rate1200
    16.05 10
    :19:44 [ServerINFO Zombie Aggressive Towards Villagertrue
    16.05 10
    :19:44 [ServerINFO Cactus Growth Modifier100%
    16.05 10:19:44 [ServerINFO Cane Growth Modifier100%
    16.05 10:19:44 [ServerINFO Melon Growth Modifier100%
    16.05 10:19:44 [ServerINFO Mushroom Growth Modifier100%
    16.05 10:19:44 [ServerINFO Pumpkin Growth Modifier100%
    16.05 10:19:44 [ServerINFO Sapling Growth Modifier100%
    16.05 10:19:44 [ServerINFO Wheat Growth Modifier100%
    16.05 10:19:44 [ServerINFO NetherWart Growth Modifier100%
    16.05 10:19:44 [ServerINFO Entity Activation RangeAn 32 Mo 32 Mi 16
    16.05 10
    :19:44 [ServerINFO Entity Tracking RangePl 48 An 48 Mo 48 Mi 32 Other 64
    16.05 10
    :19:44 [ServerINFO Hopper Transfer8 Hopper Check8 Hopper Amount1
    16.05 10
    :19:44 [ServerINFO Random Lighting Updatesfalse
    16.05 10
    :19:44 [ServerINFO Structure Info Savingtrue
    16.05 10
    :19:44 [ServerINFO Sending up to 10 chunks per packet
    16.05 10
    :19:44 [ServerINFO Max Entity Collisions8
    16.05 10
    :19:44 [ServerINFO Custom Map Seeds:  Village10387312 Feature14357617
    16.05 10
    :19:44 [ServerINFO Max TNT Explosions100
    16.05 10
    :19:44 [ServerINFO Tile Max Tick Time50ms Entity max Tick Time50ms
    16.05 10
    :19:44 [ServerINFO Mob Spawn Range4
    16.05 10
    :19:44 [ServerINFO Anti X-Raytrue
    16.05 10
    :19:44 [ServerINFO Engine Mode1
    16.05 10
    :19:44 [ServerINFO Hidden Blocks: [1415162148495456737482129130]
    16.05 10:19:44 [ServerINFO Replace Blocks: [15]
    16.05 10:19:44 [ServerINFO Nerfing mobs spawned from spawnersfalse
    16.05 10
    :19:44 [ServerINFO Chunks to Grow per Tick650
    16.05 10
    :19:44 [ServerINFO Clear tick list: false
    16.05 10
    :19:44 [ServerINFO Experience Merge Radius3.0
    16.05 10
    :19:44 [ServerINFO Preparing start region for level 1 (Seed5037964204925333504)
    16.05 10:19:45 [ServerINFO 2 World(sloaded.
    16.05 10:19:45 [ServerINFO Server permissions file permissions.yml is empty, ignoring it
    16.05 10
    :19:45 [ServerStartup Done (3.418s)! For helptype "help" or "?"
    16.05 10:19:45 [ServerINFO >> TIP << Vote for some sweet rewards! Do /vote now!
    16.05 10:19:45 [ServerINFO Checking for Updates ...
    16.05 10:19:46 [ServerINFO No new version available
    16.05 10
    :20:33 [ServerINFO CONSOLE issued server command: /list 
    Now it does look like the worlds are null but the location Lobby isn't, but how can this be? I did the same thing to everything else how I did Lobby.

    SOLVED I did some research and went on Multiverse Core's wiki and look at some code tried to add soft-depend: ['Multiverse-Core'] to the plugin.yml and it worked it still does after 5 times of trying to make sure.

    Thanks for the help everyone.

    EDIT: Moderator merge my posts together, thanks.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 16, 2016
  13. Offline

    Zombie_Striker

    @VinexAx789
    Mark this thread as solved if your problem has been solved.
     
  14. Offline

    VinexAx789

Thread Status:
Not open for further replies.

Share This Page