Minecraft onJoin GameMode.ADVENTURE does not work with default players?

Ba
2

Question is above.

Source code:

Maybe someone can write me some code, which I have to change.

Lo

Should work. Is there another plugin or listener that changes that?

Ba

There are 38 classes in the plugin xD Difficult to say. I've tried it in 2 Join Listener, but I'm not even set in ADVENTURE when I go through p.teleport (Bukkit.getWorld ("world"). GetSpawnLocation ()); teleported lol