DeathGOD7 / unexpectedspawn-paper

Randomize player spawn point.
GNU General Public License v3.0
8 stars 7 forks source link

first join and always join problem #24

Open gortador opened 8 months ago

gortador commented 8 months ago

Good morning,

First of all, thank you for this plugin!

My problem is that I use multiverse and multiverse portal, when a player arrives on the world through a portal in a world with your plugin and configured he always arrives at the same point X:0 Y:0 Z:0 I checked in the configuration file and the world is correctly listed as well as the spawn options always true... first and always spawn.

I can use the rtp command, this teleports me randomly to the world, but I would like each player to randomly arrive at the world without using the command. I don't know which plugin can conflict, for example placeholder, or other where can I look for this problem, I can also invite you to my server so you can see

DeathGOD7 commented 8 months ago

Please send the required data for me to debug :

  1. List of all the installed plugins, server version and type (eg: Paper 1.20)

  2. Can you upload the multiverse worlds config, unexpected spawn config and short console log when you RTP or join the world? (upload it in any pastebins or text snippets sharing website)

NOTE : Also please enable debug mode in unexpected spawn as well as in the multiverse plugin if it lets you before gathering logs

DeathGOD7 commented 8 months ago

Please upload all config files in https://paste.gg and share the link instead of putting all config in the comment.

And also upload the console log with debug mode enabled too.

gortador commented 8 months ago

console log

unexpected config

multiverse config

DeathGOD7 commented 8 months ago
[19:10:19] [Server thread/INFO]: [UnexpectedSpawn] User in blacklisted world (CraftWorld{name=welcome}). So random join spawn is disabled.

I think you have blacklisted the world "welcome".

Or the world you want is "random"?

If so then please join the world random and send logs.

gortador commented 8 months ago

Yes, i dont want use on this world "welcome" i want use only on "random" world

what I would like is to have random spawn just in a world called random

Is it possible to reverse the blacklist to only allow random spawn on listed worlds?

and here is part of the log where I teleport into the random world and where the random spawn does not work because I always land at the same coordinates ๐Ÿ‘

[18:15:37] [Server thread/INFO]: [Multiverse-Core-Debug] The first location you gave me was safe. [18:15:37] [Server thread/INFO]: [Multiverse-Core-Debug] Player 'XXXXX' was allowed to go to 'random' because enforceaccess is off. [18:15:37] [Server thread/INFO]: [Multiverse-Core-Debug] MV-Core is allowing Player 'XXXXX' to go to 'random'. [18:15:37] [Server thread/INFO]: [Multiverse-Portals-Debug] MV-Portals is allowing Player 'XXXXX' to use the portal 'ยงfrandomยงf'. [18:15:37] [Server thread/INFO]: [Multiverse-Core-Debug] Handling gamemode for player: XXXXX, Changing to SURVIVAL

and here part of the config code for multiverse, maybe there are values to change here to avoid the coordinates of multiverse spawn I don't know

random: ==: MVWorld hidden: 'false' alias: random color: WHITE style: NORMAL pvp: 'true' scale: '1.0' respawnWorld: '' allowWeather: 'true' difficulty: EASY spawning: ==: MVSpawnSettings animals: ==: MVSpawnSubSettings spawn: 'true' spawnrate: '-1' exceptions: [] monsters: ==: MVSpawnSubSettings spawn: 'true' spawnrate: '-1' exceptions: [] entryfee: ==: MVEntryFee amount: '0.0' hunger: 'true' autoHeal: 'true' adjustSpawn: 'true' portalForm: ALL gameMode: SURVIVAL keepSpawnInMemory: 'true' spawnLocation: ==: MVSpawnLocation x: 0.0 y: 76.0 z: 0.0 pitch: 0.0 yaw: 0.0 autoLoad: 'true' bedRespawn: 'true' worldBlacklist: [] environment: NORMAL seed: '2184828264379404155' generator: 'null' playerLimit: '-1' allowFlight: 'true'

DeathGOD7 commented 8 months ago
# If true, Multiverse will use the firstspawnworld value as the world new players will join.
# Set to false if you use another spawn plugin.
  firstspawnoverride: 'true'

Change this to false if you want first spawn to be handled by Unexpected Spawn

gortador commented 8 months ago

I modified as you said, unfortunately each time I return to the "random" world with a portal generated by multiverse portal, I find myself in the same place each time whereas I should each time find myself in a different place of the map, because I configured unexpectedspawn with a random spawn at each connection

on-death: true bed-respawn-enabled: true on-first-join: true always-on-join: true

it's as if multiverse core and multiverse portal did not allow spawning in a location other than that specified in the files, even if I deactivated the option that you asked me

gortador commented 8 months ago

there may be an option in the multiverse core worlds.yml file that determines whether it should use the saved spawn:

adjustSpawn: 'false'

can you confirm? there is the code for random :

random: ==: MVWorld hidden: 'false' alias: '' color: WHITE style: NORMAL pvp: 'true' scale: '1.0' respawnWorld: '' allowWeather: 'true' difficulty: EASY spawning: ==: MVSpawnSettings animals: ==: MVSpawnSubSettings spawn: 'true' spawnrate: '-1' exceptions: [] monsters: ==: MVSpawnSubSettings spawn: 'true' spawnrate: '-1' exceptions: [] entryfee: ==: MVEntryFee amount: '0.0' hunger: 'true' autoHeal: 'true' adjustSpawn: 'false' portalForm: ALL gameMode: SURVIVAL keepSpawnInMemory: 'true' spawnLocation: ==: MVSpawnLocation x: -178.0 y: 64.0 z: 48.0 pitch: 0.0 yaw: 0.0 autoLoad: 'true' bedRespawn: 'true' worldBlacklist: [] environment: NORMAL seed: '-3815635624095282038' generator: 'null' playerLimit: '-1' allowFlight: 'true'

DeathGOD7 commented 8 months ago

adjustSpawn = for not letting users spawn on void / air (way above ground) or inside block or above water/lava and so on keepSpawnInMemory = keeps spawn loaded in memory

The usual thing would be Multiverse overriding the respawn event of Unexpected Spawn due to its priority lvl.

I could update the priority but its bad idea.

gortador commented 8 months ago

This still doesn't work, I'm still teleported to the same coordinates, even with the values you gave me.

Maybe is a great idea to update the priority ?

Or have you another solution ?

gortador commented 8 months ago

Have you a solution for me ?

Edit: i found this, maybe i need to change something in luckperms ? [11:33:08] [Server thread/INFO]: [UnexpectedSpawn] Player ยงยงยงยงยงยง has (unexpectedspawn.bypass) permission. So skipping random join spawn.

DeathGOD7 commented 7 months ago

Have you a solution for me ?

Edit: i found this, maybe i need to change something in luckperms ? [11:33:08] [Server thread/INFO]: [UnexpectedSpawn] Player ยงยงยงยงยงยง has (unexpectedspawn.bypass) permission. So skipping random join spawn.

Ohh you got OP perms... so it will give you unexpectedspawn.bypass automatically. Try to remove that perms with luck perms or remove op.

* remove perms = deny that perms for yourself

PS : Sorry for the late response, didn't see the GitHub notifs about the issue update.