Zrips / CMI

117 stars 99 forks source link

Load CMI homes AFTER all server worlds are loaded. #5451

Closed Kesims closed 3 years ago

Kesims commented 3 years ago

Description of issue: Homes does not work in worlds, that are loaded after CMI on server startup. It says that world does not exist in /home, altough it does, but it was just loaded after CMI. I think it also messes up other things, like randomTeleport (but I dont use it, so I have not ran into problems with that).


Here is an example from my server console on startup - CMI loads before bskyblock_world, so it thinks it does not exist:

[16:33:42 INFO]: [CMILib] Enabling CMILib v1.0.0.2
[16:33:42 INFO]: [CMI] Enabling CMI v8.8.3.2
[16:33:43 INFO]: ┏━━━┓ ┏━┓┏━┓ ┏━━┓
[16:33:43 INFO]: ┃┏━┓┃ ┃ ┗┛ ┃ ┗┫┣┛
[16:33:43 INFO]: ┃┃ ┗┛ ┃┏┓┏┓┃  ┃┃
[16:33:43 INFO]: ┃┃ ┏┓ ┃┃┃┃┃┃  ┃┃
[16:33:43 INFO]: ┃┗━┛┃ ┃┃┃┃┃┃ ┏┫┣┓
[16:33:43 INFO]: ┗━━━┛ ┗┛┗┛┗┛ ┗━━┛
[16:33:43 INFO]: _______________________________________________________
[16:33:43 INFO]:   Integrating PaperSpigot async methods
[16:33:43 INFO]:   20 Enabled and 35 Disabled modules
[16:33:44 INFO]:   Loaded (4) portals into memory. Took 12ms
[16:33:44 INFO]:   Initialized Cipher256 AES
[16:33:44 INFO]:   Loaded (54) regular alias into memory. Took 47ms
[16:33:44 INFO]:   Loaded (1) custom text's into memory. Took 3ms
[16:33:44 INFO]:   3.34.0 data base type detected
[16:33:44 INFO]:   Started SqLite data base. Took 268ms
[16:33:44 INFO]:   Vault was not found, you will have limited economy support
[16:33:44 INFO]:   Loaded (5) warning categories into memory. Took 1ms
[16:33:44 INFO]:   Loaded (4) warning commands into memory. Took 0ms
[16:33:44 INFO]:   Loaded (131) custom mob heads into memory. Took 11ms
[16:33:44 INFO]:   Loaded (0) cooldowns into memory. Took 21ms
[16:33:44 INFO]:   (RandomTeleportation) Can't find world with (bskyblock_world_the_end) name
[16:33:44 INFO]:   (RandomTeleportation) Can't find world with (bskyblock_world_nether) name
[16:33:44 INFO]:   (RandomTeleportation) Can't find world with (bskyblock_world) name
[16:33:44 INFO]:   (RandomTeleportation) Can't find world with (vesmir) name
[16:33:44 INFO]:   (RandomTeleportation) Can't find world with (MobTrap) name
[16:33:44 INFO]:   Initializing BungeeCord
[16:33:44 WARN]: Initializing Legacy Material Support. Unless you have legacy plugins and/or data this is a bug!
[16:33:47 INFO]:   Loaded (5) kits into memory. Took 2380ms
[16:33:47 INFO]:   Loaded (7) ranks into memory. Took 9ms
[16:33:47 INFO]:   Loaded (8) playtime rewards into memory. Took 2ms
[16:33:47 INFO]:   Loaded (4149) player data into memory. Took 219ms
[16:33:47 INFO]:   Loaded (0) playtime records into memory. Took 0ms
[16:33:47 INFO]:   Loaded (0) playtime reward records into memory. Took 1ms
[16:33:47 INFO]:   Loaded (1) custom alias into memory. Took 2ms
[16:33:47 INFO]:   Registered events. Took 118ms
[16:33:47 INFO]:   Loaded (0) event action commands into memory. Took 5ms
[16:33:47 INFO]:   Updated (EN) language file. Took 110ms
[16:33:47 INFO]:   Updated (CZ) language file. Took 97ms
[16:33:47 INFO]:   Loaded (859) worth values into memory. Took 32ms
[16:33:47 INFO]:   Loaded (2) warps into memory. Took 3ms
[16:33:47 INFO]:   Starting world timer.
[16:33:47 INFO]:   Initializing world manager.
[16:33:47 INFO]:   Loaded (5) schedules into memory. Took 18ms
[16:33:47 INFO]:   Loaded GeoIP
[16:33:47 INFO]:   Loaded (0) skin cache entries into memory. Took 0ms
[16:33:48 INFO]:   Loaded (8) custom recipes into memory. Took 187ms
[16:33:48 INFO]:   Version 8.8.3.2 has been enabled
[16:33:48 INFO]: ‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾
[16:33:48 INFO]: Starting GS4 status listener
[16:33:48 INFO]: Thread Query Listener started
[16:33:48 INFO]: Starting remote control listener
[16:33:48 INFO]: Query running on 0.0.0.0:25596
[16:33:48 INFO]: Thread RCON Listener started
[16:33:48 INFO]: RCON running on 0.0.0.0:25575
[16:33:48 INFO]: Running delayed init tasks
[16:33:48 INFO]: [BentoBox] Enabling game mode addons...
[16:33:48 INFO]: [BentoBox] Enabling BSkyBlock (1.14.4)...
[16:33:48 INFO]: [BentoBox] [BSkyBlock] Creating BSkyBlock world ...
[16:33:48 INFO]: -------- World Settings For [bskyblock_world] --------
[16:33:48 INFO]: Allow Zombie Pigmen to spawn from portal blocks: true
[16:33:48 INFO]: Entity Tracking Range: Pl 48 / An 30 / Mo 38 / Mi 32 / Other 24
[16:33:48 INFO]: Item Merge Radius: 4.0
[16:33:48 INFO]: Item Despawn Rate: 3200
[16:33:48 INFO]: View Distance: 6
[16:33:48 INFO]: Zombie Aggressive Towards Villager: true
[16:33:48 INFO]: Arrow Despawn Rate: 300 Trident Respawn Rate:500
[16:33:48 INFO]: Mob Spawn Range: 4
[16:33:48 INFO]: Nerfing mobs spawned from spawners: false
[16:33:48 INFO]: Cactus Growth Modifier: 100%
[16:33:48 INFO]: Cane Growth Modifier: 100%
[16:33:48 INFO]: Melon Growth Modifier: 100%
[16:33:48 INFO]: Mushroom Growth Modifier: 100%
[16:33:48 INFO]: Pumpkin Growth Modifier: 100%
[16:33:48 INFO]: Sapling Growth Modifier: 100%
[16:33:48 INFO]: Beetroot Growth Modifier: 100%
[16:33:48 INFO]: Carrot Growth Modifier: 100%
[16:33:48 INFO]: Potato Growth Modifier: 100%
[16:33:48 INFO]: Wheat Growth Modifier: 100%
[16:33:48 INFO]: NetherWart Growth Modifier: 100%
[16:33:48 INFO]: Vine Growth Modifier: 100%
[16:33:48 INFO]: Cocoa Growth Modifier: 100%
[16:33:48 INFO]: Bamboo Growth Modifier: 100%
[16:33:48 INFO]: SweetBerry Growth Modifier: 100%
[16:33:48 INFO]: Kelp Growth Modifier: 100%
[16:33:48 INFO]: Experience Merge Radius: 5.0
[16:33:48 INFO]: Tile Max Tick Time: 50ms Entity max Tick Time: 50ms
[16:33:48 INFO]: Hopper Transfer: 10 Hopper Check: 5 Hopper Amount: 1
[16:33:48 INFO]: Entity Activation Range: An 16 / Mo 28 / Ra 36 / Mi 16 / Tiv false
[16:33:48 INFO]: Custom Map Seeds:  Village: 10387312 Desert: 14357617 Igloo: 14357618 Jungle: 14357619 Swamp: 14357620 Monument: 10387313 Ocean: 14357621 Shipwreck: 165745295 End City: 10387313 Slime: 987234911 Bastion: 30084232 Fortress: 30084232 Mansion: 10387319 Fossil: 14357921 Portal: 34222645

CONFIG SECTION (DELETE IF NOT RELEVANT):


#######################################
## REPLACE WITH RELEVANT CONFIG SECTION  ##
#######################################

---

**Cmi Version (using`/cmi version`): 8.8.3.2** 

**Server Type (Spigot/Paperspigot/etc): Paper-412 (MC: 1.16.4)** 

**Server Version (using `/ver`): 1.16.4** 

**Relevant plugins (Delete if this isn't needed):  Plugins (58): AdvancedChests, AdvancedDevelopmentLibrary, AdvancedEnchantments, AnvilLot, ArmorStandEditor, AsyncWorldEdit, AuctionHouse, BentoBox, BungeeTabListPlus, ChatSentry, ChestShop, Citizens, CMI, CMILib, CommandNPC*, CommandSync*, CoreProtect, CraftingStore, CrateReloaded, CustomCrafting, DiscordSRV, dtlTraders, FlightPlus, HeadZ, HolographicDisplays, InteractiveBoard, ItemGenerators*, JetsAntiAFKPro, JetsHoppers, JetsMinions, JetsRepairTokens, KiteBoard*, MineableSpawners, MobFarmManager, Multiverse-Core, MysqlPlayerDataBridge, PermissionsEx*, PlaceholderAPI, PlayerHeads*, ProtocolLib, SafariNet, SkinsRestorer, SkyFoxUtils, SponsoredSlots, SuperbVote, TabuuCore, TreeAssist, UltraCustomizer, Vault, VillagerOptimiser, VoidGenerator, VoidSpawn, Votifier, Voting, WolfyUtilities, WorldEdit, WorldGuard, WorldGuardExtraFlags**
Zrips commented 3 years ago

Well in this particular case it would not be possible to load after world is loaded due to the fact that BentoBox loads world when all plugins got loaded and only then starts world loading. Plugin is already softdependent on BentoBox, but if plugin loads worlds later on it causes some issues. And you might want to update your minecraft version, using outdated 1.16.4 can cause issues due to it having quite few bugs. Unrelated to main issue, but just a thing to check.

Zrips commented 3 years ago

And i need some more information about this issue in particular. Do you get message informing that world doesn't exist when you try to teleport to it? Or does home location missing entirely from your home list?

Kesims commented 3 years ago

When I use /cmi tppos to teleport to the world, it works fine. obrazek But here is an example of home that "does not exist", though I can teleport to the world just fine.

Kesims commented 3 years ago

It breaks homes for the worlds, that are listed on CMI startup with (RandomTeleportation) Can't find world with (<world-name>) name

With /cmi reload, (RandomTeleportation) Can't find world with (<world-name>) name disappears in console until next server restart, but homes stay borken with "Home location world does not exist".

Also, idk if that can be an important thing, I am using Multiverse-Core version 4.2.3-SNAPSHOT, build 837.

Kesims commented 3 years ago

Do you need more info? Or can I do something for you to make it easier to resolve? :) Idk what exactly would help you, if you need something specific...

Zrips commented 3 years ago

Will make some changes relating to home location recognition with next update. You could provide actual saved line from database with homes from player who can't access them, maybe it will be more clear why its failing

Kesims commented 3 years ago

Here: Home%%bskyblock_world:2955.69:130.0:-6547.47:87.08:-90.8

Seems like it is saved OK here, it just thinks that the world does not exist I guess... weird...

Oh, yeah, and I updated to 1.16.5, but the issue still seems to be same, just to point out that its probbably not a 1.16.4 issue :/

Oh, you posted new update, great, ill let u know if it fixed the issue in under 12h :)

Zrips commented 3 years ago

19 hours later!!!

Kesims commented 3 years ago

Hello, sorry for the late response, terrible friday... :/ Sadly, the issue seems to still appear.

Zrips commented 3 years ago

What output you have from /cmi status

Kesims commented 3 years ago

16:57:12 INFO: Platforma: amd64 (Linux) Bežiace záznamy: 169 16:57:12 INFO: TPS: 19,98 (19,97 19,97 19,96 19,96) 16:57:12 INFO: Využití CPU: 0,00% (12 cores) 16:57:12 INFO: Čas chodu: 9 hodín 35 minút 56 sekund 16:57:12 INFO: Použijtá pamät: 44,30% (5897,00/13312 MB) 16:57:12 INFO: Verze javy: 11.0.9(1+1-post-Debian-1deb10u2) Build: 16:57:12 INFO: Použijtie disku: 27,52% (120/436 GB) 16:57:12 INFO: 1. spawn 625 Chunkov 139 Entity 114 pokrytie 0 hráčov 16:57:12 INFO: 2. spawn_nether 225 Chunkov 46 Entity 0 pokrytie 0 hráčov 16:57:12 INFO: 3. spawn_the_end 225 Chunkov 56 Entity 0 pokrytie 0 hráčov 16:57:12 INFO: 4. vesmir 625 Chunkov 45 Entity 128 pokrytie 0 hráčov 16:57:12 INFO: 5. bskyblock_world_nether 225 Chunkov 0 Entity 6 pokrytie 0 hráčov 16:57:12 INFO: 6. bskyblock_world_the_end 850 Chunkov 28 Entity 172 pokrytie 1 hráčov 16:57:12 INFO: 7. MobTrap 225 Chunkov 38 Entity 56 pokrytie 0 hráčov 16:57:12 INFO: 8. bskyblock_world 2857 Chunkov 2455 Entity 4456 pokrytie 5 hráčov

b01w commented 3 years ago

CMI isnt detecting any of my worlds after updating to latest, wtf is going on. /spawn doesnt work anymore. /homes list them but you cant tp since it cant detect the worlds. Hello?

b01w commented 3 years ago

It also shows this weird thing in chat image

b01w commented 3 years ago

Found that cmi is loading before multiverse which may be the issue?

CloudeLecaw commented 3 years ago

normaly this cant be. this means your server is not accepting SoftDependencies or your not using the official Multiverse-Core

Here u find the Link to multiverse-core jenkins. https://ci.onarandombox.com/job/Multiverse-Core/

Current build is Multiverse-Core-4.2.3_Build 842 . . here a list of CMIs soft dependencies. u see Multiverse-Core is allready on it. not the old Multiverse

softdepend: [AdvancedMobArena, WorldEdit, WorldGuard, Multiverse-Core, CMIPaperLib, DiscordSRV, Essentials, ProtocolLib, LWC, Vault, mcMMO, PlayerVaults, PermissionsEx, PowerfulPerms, bPermissions, GroupManagerX, zPermissions, LuckPerms, PlaceholderAPI, Votifier, MultiWorld, My_Worlds, TheWorld, dynmap, Jobs, MVdWPlaceholderAPI, Citizens, PlotSquared, ReWorld, BentoBox, Multiverse, JetsMinions, Slimefun, NoCheatPlus, PlayerWorlsPro]

Zrips commented 3 years ago

Revisited this issue and everything seams to be working as it should, homes and warp points work just fine for bentobox worlds. If you still experience this issue open a ticket with maybe some new information how to reproduce this issue, but at the moment this simply works.