HomeSpawnPlus

HomeSpawnPlus

342k Downloads

homeLocalWorld only works when specific world is implemented

SXRWahrheit opened this issue ยท 3 comments

commented

For the following events.yml entries:

  onHomeCommand:
    - homeLocalWorld
    - homeDefaultWorld

  world:
    prosperus_nether:
      onHomeCommand:
        - homeLocalWorld
        - homeDefaultWorld

Commenting out the lower block causes the plugin to resolve the strategy, when the player is in prosperus_nether, to point to prosperus. Including the world-specific strategy results in intended functionality. The same happens for homeMultiWorld, I think.

[05:44:17] [Server thread/INFO]: Wahrheit issued server command: /hsp reloadconfig
[05:44:17] [Server thread/INFO]: [PLAYERCOMMAND} Wahrheit: [234 54 -11] => "/hsp reloadconfig"
[05:44:20] [Server thread/INFO]: Wahrheit issued server command: /home
[05:44:20] [Server thread/INFO]: [PLAYERCOMMAND} Wahrheit: [234 54 -11] => "/home"
[05:44:20] [Server thread/INFO]: [HomeSpawnPlus] Strategy evaluation started, type=onhomecommand player={BukkitPlayer:Wahrheit}
[05:44:20] [Server thread/INFO]: [HomeSpawnPlus] (strategy homeLocalWorld) result is [loc={prosperus_nether,234,79,-11}, home={id=2644,name=null,playerName=Wahrheit,world=prosperus_nether,x=234.63,y=79,z=-10.37,yaw=-234.61,pitch=10.65,bedHome=false,defaultHome=true}, spawn={null}]
[05:44:20] [Server thread/INFO]: [HomeSpawnPlus] Evaluation chain complete, result = [loc={prosperus_nether,234,79,-11}, home={id=2644,name=null,playerName=Wahrheit,world=prosperus_nether,x=234.63,y=79,z=-10.37,yaw=-234.61,pitch=10.65,bedHome=false,defaultHome=true}, spawn={null}]
[05:44:20] [Server thread/INFO]: [HomeSpawnPlus] result changed to safeLocation, new result = [loc={prosperus_nether,234,54,-11}, home={id=2644,name=null,playerName=Wahrheit,world=prosperus_nether,x=234.63,y=79,z=-10.37,yaw=-234.61,pitch=10.65,bedHome=false,defaultHome=true}, spawn={null}]
[05:44:57] [Server thread/INFO]: Wahrheit issued server command: /hsp reloadconfig
[05:44:57] [Server thread/INFO]: [PLAYERCOMMAND} Wahrheit: [234 54 -11] => "/hsp reloadconfig"
[05:44:59] [Server thread/INFO]: Wahrheit issued server command: /home
[05:44:59] [Server thread/INFO]: [PLAYERCOMMAND} Wahrheit: [234 54 -11] => "/home"
[05:44:59] [Server thread/INFO]: [HomeSpawnPlus] Strategy evaluation started, type=onhomecommand player={BukkitPlayer:Wahrheit}
[05:44:59] [Server thread/INFO]: [HomeSpawnPlus] (strategy homeLocalWorld) result is [loc={prosperus,-7383,21,-5916}, home={id=61,name=null,playerName=Wahrheit,world=prosperus,x=-7382.48,y=21,z=-5915.64,yaw=-1.25,pitch=14.4,bedHome=false,defaultHome=true}, spawn={null}]
[05:44:59] [Server thread/INFO]: [HomeSpawnPlus] Evaluation chain complete, result = [loc={prosperus,-7383,21,-5916}, home={id=61,name=null,playerName=Wahrheit,world=prosperus,x=-7382.48,y=21,z=-5915.64,yaw=-1.25,pitch=14.4,bedHome=false,defaultHome=true}, spawn={null}]
[05:44:59] [Server thread/INFO]: [HomeSpawnPlus] Strategy evaluation started, type=crossworldteleport player={BukkitPlayer:Wahrheit}
[05:44:59] [Server thread/INFO]: [HomeSpawnPlus] (strategy default) result is [loc={null}, home=null, spawn={null}]
[05:44:59] [Server thread/INFO]: [HomeSpawnPlus] Evaluation chain complete, result = explicit default
[05:44:59] [Server thread/INFO]: [HomeSpawnPlus] Strategy evaluation started, type=onteleportobserve player={BukkitPlayer:Wahrheit}

I know you said you've ceased development on this, but I'm hoping you'll let me know if it's just a config issue.

commented

I also tried with and without associatedWorldsUseBaseStrategies, and inheritAssociatedWorlds is false.

commented

Build 641 posted up on andune.com that resolves this issue. Looks like I added the 'associatedWorldsUseBaseStrategies' config option but never wired it up to code. Fixed. :)

commented

Bless. I'm waiting on 1-2 more plugins before pulling the trigger on 1.12, but I'm sure this will be lovely. Will let you know if there are any other issues. Thanks so much for fixing this.