Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

geSuit Spawn - Not returning to hub #122

Open
ChrisWard316 opened this issue Apr 6, 2020 · 7 comments
Open

geSuit Spawn - Not returning to hub #122

ChrisWard316 opened this issue Apr 6, 2020 · 7 comments

Comments

@ChrisWard316
Copy link

ChrisWard316 commented Apr 6, 2020

My spawns.yml looks like this:

SpawnNewPlayerAtNewspawn: true ForceAllPlayersToProxySpawn: true

This is the error in the bungee console:

[15:19:24] [geSuit Pool Thread #3/INFO]: Loaded player chris_61 (cc0ef2ad-dde3-4b27-87ca-8cac6465caaf) [15:19:24] [Netty Worker IO Thread #11/INFO]: Player chris_61 (cc0ef2ad-dde3-4b27-87ca-8cac6465caaf) connected from /82.41.16.213:54243 [15:19:24] [Netty Worker IO Thread #11/WARN] [geSuit]: Unable to find player named "chris_61" in onlinePlayers list! [15:19:24] [Netty Worker IO Thread #11/INFO]: Warning! Teleport called but player is null! [15:19:24] [Netty Worker IO Thread #11/ERROR]: java.lang.Exception: [15:19:24] [Netty Worker IO Thread #11/ERROR]: at net.cubespace.geSuit.pluginmessages.TeleportToLocation.execute(TeleportToLocation.java:29) [15:19:24] [Netty Worker IO Thread #11/ERROR]: at net.cubespace.geSuit.managers.SpawnManager.sendPlayerToProxySpawn(SpawnManager.java:49) [15:19:24] [Netty Worker IO Thread #11/ERROR]: at net.cubespace.geSuit.listeners.SpawnListener.sendPlayerToHub(SpawnListener.java:17) [15:19:24] [Netty Worker IO Thread #11/ERROR]: at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [15:19:24] [Netty Worker IO Thread #11/ERROR]: at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) [15:19:24] [Netty Worker IO Thread #11/ERROR]: at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [15:19:24] [Netty Worker IO Thread #11/ERROR]: at java.lang.reflect.Method.invoke(Method.java:498) [15:19:24] [Netty Worker IO Thread #11/ERROR]: at net.md_5.bungee.event.EventHandlerMethod.invoke(EventHandlerMethod.java:19) [15:19:24] [Netty Worker IO Thread #11/ERROR]: at net.md_5.bungee.event.EventBus.post(EventBus.java:46) [15:19:24] [Netty Worker IO Thread #11/ERROR]: at net.md_5.bungee.api.plugin.PluginManager.callEvent(PluginManager.java:434) [15:19:24] [Netty Worker IO Thread #11/ERROR]: at net.md_5.bungee.connection.InitialHandler$6$1.run(InitialHandler.java:543) [15:19:24] [Netty Worker IO Thread #11/ERROR]: at io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java:164) [15:19:24] [Netty Worker IO Thread #11/ERROR]: at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:472) [15:19:24] [Netty Worker IO Thread #11/ERROR]: at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:500) [15:19:24] [Netty Worker IO Thread #11/ERROR]: at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:989) [15:19:24] [Netty Worker IO Thread #11/ERROR]: at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74) [15:19:24] [Netty Worker IO Thread #11/ERROR]: at java.lang.Thread.run(Thread.java:748) [15:19:24] [Netty Worker IO Thread #11/INFO]: [chris_61|/82.41.16.213:54243] <-> ServerConnector [vanilla] has connected [15:19:24] [Netty Worker IO Thread #11/INFO]: » chris_61 has joined MCBuffalo! [15:19:24] [geSuit Pool Thread #4/ERROR]: Task BungeeTask(sched=net.md_5.bungee.scheduler.BungeeScheduler@48d5f34e, id=37, owner=net.cubespace.geSuit.geSuit@2313052e, task=net.cubespace.geSuit.listeners.PlayerListener$$Lambda$392/1394598479@5690d49a, delay=0, period=0, running=true) encountered an exception java.lang.IndexOutOfBoundsException: Index: 1, Size: 1 at java.util.Collections$SingletonList.get(Collections.java:4817) ~[?:1.8.0_241] at net.cubespace.geSuit.managers.GeoIPManager.lookup(GeoIPManager.java:123) ~[?:?] at net.cubespace.geSuit.listeners.PlayerListener.lambda$null$1(PlayerListener.java:132) ~[?:?] at net.md_5.bungee.scheduler.BungeeTask.run(BungeeTask.java:63) ~[Waterfall.jar:git:Waterfall-Bootstrap:1.15-SNAPSHOT:87d2873:326] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) ~[?:1.8.0_241] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) ~[?:1.8.0_241] at java.lang.Thread.run(Thread.java:748) [?:1.8.0_241] [15:19:28] [Netty Worker IO Thread #13/INFO]: [/173.249.30.10:40777] <-> InitialHandler has pinged [15:19:28] [Netty Worker IO Thread #12/INFO]: [/173.249.30.10:52389] <-> InitialHandler has pinged [15:20:26] [Netty Worker IO Thread #11/INFO]: » chris_61 has left MCBuffalo! [15:20:26] [Netty Worker IO Thread #11/INFO]: Unloaded player chris_61 [15:20:26] [Netty Worker IO Thread #11/INFO]: [/82.41.16.213:54243|chris_61] -> UpstreamBridge has disconnected [15:20:26] [Netty Worker IO Thread #14/INFO]: [/82.41.16.213:54255] <-> InitialHandler has pinged [15:20:27] [Netty Worker IO Thread #15/INFO]: [/82.41.16.213:54256] <-> InitialHandler has connected [15:20:28] [geSuit Pool Thread #5/WARN] [geSuit]: Invalid server for home "coll5" of player chris_61! [15:20:28] [geSuit Pool Thread #5/WARN] [geSuit]: Invalid server for home "done" of player chris_61! [15:20:28] [geSuit Pool Thread #5/WARN] [geSuit]: Invalid server for home "end" of player chris_61! [15:20:28] [geSuit Pool Thread #5/WARN] [geSuit]: Invalid server for home "nether" of player chris_61! [15:20:28] [geSuit Pool Thread #5/WARN] [geSuit]: Invalid server for home "test" of player chris_61! [15:20:28] [geSuit Pool Thread #5/INFO]: Loaded player chris_61 (cc0ef2ad-dde3-4b27-87ca-8cac6465caaf) [15:20:28] [Netty Worker IO Thread #15/INFO]: Player chris_61 (cc0ef2ad-dde3-4b27-87ca-8cac6465caaf) connected from /82.41.16.213:54256 [15:20:28] [Netty Worker IO Thread #15/WARN] [geSuit]: Unable to find player named "chris_61" in onlinePlayers list! [15:20:28] [Netty Worker IO Thread #15/INFO]: Warning! Teleport called but player is null! [15:20:28] [Netty Worker IO Thread #15/ERROR]: java.lang.Exception: [15:20:28] [Netty Worker IO Thread #15/ERROR]: at net.cubespace.geSuit.pluginmessages.TeleportToLocation.execute(TeleportToLocation.java:29) [15:20:28] [Netty Worker IO Thread #15/ERROR]: at net.cubespace.geSuit.managers.SpawnManager.sendPlayerToProxySpawn(SpawnManager.java:49) [15:20:28] [Netty Worker IO Thread #15/ERROR]: at net.cubespace.geSuit.listeners.SpawnListener.sendPlayerToHub(SpawnListener.java:17) [15:20:28] [Netty Worker IO Thread #15/ERROR]: at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [15:20:28] [Netty Worker IO Thread #15/ERROR]: at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) [15:20:28] [Netty Worker IO Thread #15/ERROR]: at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [15:20:28] [Netty Worker IO Thread #15/ERROR]: at java.lang.reflect.Method.invoke(Method.java:498) [15:20:28] [Netty Worker IO Thread #15/ERROR]: at net.md_5.bungee.event.EventHandlerMethod.invoke(EventHandlerMethod.java:19) [15:20:28] [Netty Worker IO Thread #15/ERROR]: at net.md_5.bungee.event.EventBus.post(EventBus.java:46) [15:20:28] [Netty Worker IO Thread #15/ERROR]: at net.md_5.bungee.api.plugin.PluginManager.callEvent(PluginManager.java:434) [15:20:28] [Netty Worker IO Thread #15/ERROR]: at net.md_5.bungee.connection.InitialHandler$6$1.run(InitialHandler.java:543) [15:20:28] [Netty Worker IO Thread #15/ERROR]: at io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java:164) [15:20:28] [Netty Worker IO Thread #15/ERROR]: at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:472) [15:20:28] [Netty Worker IO Thread #15/ERROR]: at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:500) [15:20:28] [Netty Worker IO Thread #15/ERROR]: at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:989) [15:20:28] [Netty Worker IO Thread #15/ERROR]: at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74) [15:20:28] [Netty Worker IO Thread #15/ERROR]: at java.lang.Thread.run(Thread.java:748) [15:20:28] [Netty Worker IO Thread #15/INFO]: [chris_61|/82.41.16.213:54256] <-> ServerConnector [vanilla] has connected [15:20:28] [Netty Worker IO Thread #15/INFO]: » chris_61 has joined MCBuffalo! [15:20:28] [geSuit Pool Thread #6/ERROR]: Task BungeeTask(sched=net.md_5.bungee.scheduler.BungeeScheduler@48d5f34e, id=44, owner=net.cubespace.geSuit.geSuit@2313052e, task=net.cubespace.geSuit.listeners.PlayerListener$$Lambda$392/1394598479@2051cd67, delay=0, period=0, running=true) encountered an exception java.lang.IndexOutOfBoundsException: Index: 1, Size: 1 at java.util.Collections$SingletonList.get(Collections.java:4817) ~[?:1.8.0_241] at net.cubespace.geSuit.managers.GeoIPManager.lookup(GeoIPManager.java:123) ~[?:?] at net.cubespace.geSuit.listeners.PlayerListener.lambda$null$1(PlayerListener.java:132) ~[?:?] at net.md_5.bungee.scheduler.BungeeTask.run(BungeeTask.java:63) ~[Waterfall.jar:git:Waterfall-Bootstrap:1.15-SNAPSHOT:87d2873:326] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) ~[?:1.8.0_241] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) ~[?:1.8.0_241] at java.lang.Thread.run(Thread.java:748) [?:1.8.0_241]
database
http://ximg.co.uk/images/2020/04/06/db.png

error
http://ximg.co.uk/images/2020/04/06/1.png

Commands like: /ss, /gs, /spawn all work

(187) gesuit

(162) paper
(327) waterfall

@ChrisWard316 ChrisWard316 changed the title geSuit Spawn - Not returning to hub & other issues geSuit Spawn - Not returning to hub Apr 6, 2020
@addstar
Copy link
Member

addstar commented Apr 7, 2020

Hi @ChrisWard316, it's really hard to read your error output. Can you update your issue description to use something like https://pastebin.com/ and also provide some more context about the issue.

Is this new behaviour? Are you using geSuit for the first time?

@ChrisWard316
Copy link
Author

here it is as a pastebin (this still doesn't work but i found a work around bungee lets you force default server)

https://pastebin.com/xAYu7Zb9

There is also an issue with /spawn on server it doesn't work but if you do /ss or /ws it works. Very strange here is the error for that

https://pastebin.com/4A0Qf8Pb

@ChrisWard316
Copy link
Author

Any updates @addstar, i really love using your plugin

@addstar
Copy link
Member

addstar commented Apr 22, 2020

@ChrisWard316 not sure what would be causing that, I will need to know more about your set up.

A few questions:

  1. Can you provide exact versions/build numbers for bungee/gesuit/spigot, etc?
  2. Is this a new/recent install or did you upgrade recently?
  3. Is your bungee online or offline mode?
  4. Does it still happen after a restart?
  5. Does it happen every time for every player? Or just specific ones?

@ChrisWard316
Copy link
Author

ChrisWard316 commented May 9, 2020

I have tried to look into this myself:

The second paste-bin i showed you (https://pastebin.com/4A0Qf8Pb)

in managers> spawnmanager.java line 198
`
public void sendPlayerToSpawn(CommandSender sender) {
Player p = ( Player ) sender;
if(p.hasPermission("gesuit.spawns.spawn.bed")){
try {
p.teleport(p.getBedSpawnLocation());
}catch(NullPointerException e){
}

`
by reading that code i need a bed spawn set in order to be able to do /spawn. I gave my players the perm gesuit.spawns.spawn.bed so they can re-spawn at their bed when they die but if you haven't set a bed yet you should still be able to do /spawn. I tested the above and it's true i cant do /spawn without first right clicking a bed. Not sure how to fix really myself but i now see that is what is causing the issue as it works after i have a bed set and no more errors.

The first pastebin error i have noticed only happens when i'm op so i don't give myself OP anymore.

Also i was wondering why i could never bypass the teleport delays after reading all your permissions for teleports and homes and i noticed in commands/spawncommand.java you have the permission called gesuit.warps.bypass.delay for a /spawn command so i now bypass those delays but maybe worth changing the permission to something like gesuit.homes.bypass.delay or gesuit.teleports.bypass.delay

@ChrisWard316
Copy link
Author

Any update?

@addstar
Copy link
Member

addstar commented May 28, 2020

@ChrisWard316 this is most likely fixed with our latest changes. Can you try the latest geSuit builds and let us know how it goes?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants