Zrips / CMI

116 stars 98 forks source link

Warps in other worlds dont work after server restart. #4899

Open kFxDaKing opened 3 years ago

kFxDaKing commented 3 years ago

Description of issue:

Players cant teleport to /warp pvp after server restart. (Or any other warp that is in another world) If i remove warp and set it again it works untill restart, it seems its problem with multiverse + cmi. My friend got same problem, but only on server with Bentobox, so maybe there could be some issue?

ERROR (DELETE IF YOU HAVE NO ERROR):

The target world can no longer be found. You can't teleport there!

Cmi Version (using/cmi version):

.... [11:35:45 INFO]: (!) CMI: 8.7.12.7 BungeeCord: MySQL(!) -> 8.8.0.1 .... [11:35:45 INFO]: Server: Tuinity 1.16.4-R0.1-SNAPSHOT .... [11:35:45 INFO]: CMI economy: Zapnuto Vault: 1.7.3-b131(CMIEInjector) CMI Chat: Vypnuto .... [11:35:45 INFO]: Modules -> 50 enabled 3 disabled: playerCombat, votifier, skin

Tried latest version too, with same problem.

Server Type (Spigot/Paperspigot/etc): Paper fork

Server Version (using /ver): This server is running Tuinity version git-Tuinity-"4743c34" (MC: 1.16.4) (Implementing API version 1.16.4-R0.1-SNAPSHOT) Relevant plugins (Delete if this isn't needed):

>....=>.... [11:37:57 INFO]: Plugins (67): AdvancedLottery, AntiWorldFly, AutoMessage, AutoTool, BentoBox, BlockCommand*, BlockParticles, Citizens, ClearLag, CMI, CMIEInjector*, CMILib, CMIPaperLib, CombatLogX, CommandNPC*, CommandsToDiscord*, CoreProtect, CrazyAuctions, CrazyCrates, CrazyEnchantments, CrazyEnvoy, DeluxeMenus, DeluxeTags*, EasyBackup, EntityDetection, EpicChatPrefix*, EpicSpawners, FastAsyncWorldEdit (WorldEdit), HolographicDisplays, HolographicExtension, HolographicPlaceholders, JetsMinions, JetsSellChests, Lib1711*, LiteBans, LuckPerms, MineStore*, Minetrends*, Multiverse-Core, NametagEdit*, NoJoinMessage, NoPlugins, PlaceholderAPI, Plan, PluginManager*, ProtocolLib, RevoltCrates, SAML, ShopGUIPlus, SkinsRestorer, spark, SuperBoosters, SuperbVote, SuperMobCoins, SuperPouches, TAB, TitleManager, TradeSystem, Vault, ViaBackwards, ViaVersion, VillagerOptimiser, VoidSpawn, VoidWorld*, VoteParty, Votifier, WorldGuard

mrfloris commented 3 years ago

When you /setwarp something, and open the warps.yml file, the warp is there?

When you /stop the server, and check, the warp is still there?

When you start the server up and before using /warp.. and type : /mvlist, is the world you have an issue with in the list?

Even when /warp name doesn't work, saying it can't find the world, does it show in the list when you do: /cmi placeholders parse %cmi_server_worlds%

Can you do a /ver on multiverse-core and share the version number, and the world configuration from it's worlds.yml file?

Is there a startup log that shows the world loading before cmi, and showing mv-c loading without issues, and cmi loading without issues?

Are these worlds loaded on startup right away, or are they kept unloaded until the server is done loading and players are using the worlds?

Is the world in the same server as the warp is set in, or some other bungee server's world ? and /setwarp is set on server 1, (but world is on server 2)

Zrips commented 3 years ago

@kFxDaKing Does CMI loads before multiverse by startup logs? And are those worlds being created by multiverse or by this bentobox? If it is, at which point does it actually load worlds in?

kFxDaKing commented 3 years ago

When you /setwarp something, and open the warps.yml file, the warp is there? Yes When you /stop the server, and check, the warp is still there? Yes When you start the server up and before using /warp.. and type : /mvlist, is the world you have an issue with in the list? Yes that world is in the list after server start. Even when /warp name doesn't work, saying it can't find the world, does it show in the list when you do: /cmi placeholders parse %cmi_server_worlds% Yes it show that world Can you do a /ver on multiverse-core and share the version number, and the world configuration from it's worlds.yml file? >.... [09:53:45 INFO]: kFxDaKing issued server command: /mv version .... [09:53:45 INFO]: [Multiverse-Core] [Multiverse-Core] Multiverse-Core Version: 4.1.1-SNAPSHOT-b793 .... [09:53:45 INFO]: [Multiverse-Core] [Multiverse-Core] Bukkit Version: git-Tuinity-"4743c34" (MC: 1.16.4) .... [09:53:45 INFO]: [Multiverse-Core] [Multiverse-Core] Loaded Worlds: [{"MVWorld@1586949381":{"Gen":"BentoBox","Type":"FLAT","Env":"THE_END","Name":"oneblock_world_the_end"}}, {"MVWorld@21694749":{"Gen":"null","Type":"FLAT","Env":"NORMAL","Name":"world"}}, {"MVWorld@2091291631":{"Gen":"null","Type":"NORMAL","Env":"THE_END","Name":"world_the_end"}}, {"MVWorld@1185706336":{"Gen":"BentoBox","Type":"FLAT","Env":"NORMAL","Name":"oneblock_world"}}, {"MVWorld@800801397":{"Gen":"null","Type":"NORMAL","Env":"NETHER","Name":"world_nether"}}, {"MVWorld@1994503550":{"Gen":"BentoBox","Type":"FLAT","Env":"NETHER","Name":"oneblock_world_nether"}}, {"MVWorld@1049655718":{"Gen":"null","Type":"NORMAL","Env":"NORMAL","Name":"battleground"}}, {"MVWorld@462567525":{"Gen":"null","Type":"FLAT","Env":"NORMAL","Name":"events"}}] .... [09:53:45 INFO]: [Multiverse-Core] [Multiverse-Core] Multiverse Plugins Loaded: 0 .... [09:53:45 INFO]: [Multiverse-Core] [Multiverse-Core] Economy being used: CMIEconomy .... [09:53:45 INFO]: [Multiverse-Core] [Multiverse-Core] Permissions Plugin: Bukkit Permissions (SuperPerms) .... [09:53:45 INFO]: [Multiverse-Core] [Multiverse-Core] Dumping Config Values: (version 2.9) .... [09:53:45 INFO]: [Multiverse-Core] [Multiverse-Core] enforceaccess: false .... [09:53:45 INFO]: [Multiverse-Core] [Multiverse-Core] prefixchat: true .... [09:53:45 INFO]: [Multiverse-Core] [Multiverse-Core] prefixchatformat: [%world%]%chat% .... [09:53:45 INFO]: [Multiverse-Core] [Multiverse-Core] useasyncchat: true .... [09:53:45 INFO]: [Multiverse-Core] [Multiverse-Core] teleportintercept: true .... [09:53:45 INFO]: [Multiverse-Core] [Multiverse-Core] firstspawnoverride: true .... [09:53:45 INFO]: [Multiverse-Core] [Multiverse-Core] displaypermerrors: true .... [09:53:45 INFO]: [Multiverse-Core] [Multiverse-Core] globaldebug: 0 .... [09:53:45 INFO]: [Multiverse-Core] [Multiverse-Core] silentstart: false .... [09:53:45 INFO]: [Multiverse-Core] [Multiverse-Core] messagecooldown: 5000 .... [09:53:45 INFO]: [Multiverse-Core] [Multiverse-Core] version: 2.9 .... [09:53:45 INFO]: [Multiverse-Core] [Multiverse-Core] firstspawnworld: world .... [09:53:45 INFO]: [Multiverse-Core] [Multiverse-Core] teleportcooldown: 1000 .... [09:53:45 INFO]: [Multiverse-Core] [Multiverse-Core] defaultportalsearch: false .... [09:53:45 INFO]: [Multiverse-Core] [Multiverse-Core] portalsearchradius: 128 .... [09:53:45 INFO]: [Multiverse-Core] [Multiverse-Core] autopurge: true .... [09:53:45 INFO]: [Multiverse-Core] [Multiverse-Core] Special Code: FRN002

Here is worlds.yml - https://hastebin.com/vaginazesi.yaml - Problem is with world called "battleground"

Is there a startup log that shows the world loading before cmi, and showing mv-c loading without issues, and cmi loading without issues? https://hastebin.com/evafocuxor.yaml Are these worlds loaded on startup right away, or are they kept unloaded until the server is done loading and players are using the worlds? I dont know, but that world works when i do /mv tp name worldname. Is the world in the same server as the warp is set in, or some other bungee server's world ? and /setwarp is set on server 1, (but world is on server 2) Yes, its on the same server.

kFxDaKing commented 3 years ago

@kFxDaKing Does CMI loads before multiverse by startup logs? And are those worlds being created by multiverse or by this bentobox? If it is, at which point does it actually load worlds in?

Here is startup log - https://hastebin.com/evafocuxor.yaml

Zrips commented 3 years ago

@kFxDaKing Your link doesn't really show anything. You can try using https://pastebin.com/

kFxDaKing commented 3 years ago

Oh sorry. https://pastebin.com/6SYtT90e

kFxDaKing commented 3 years ago

Hello, any progress? I still have to re-set warp everyday :/

R4z0rX commented 3 years ago

Hi! It's because CMI is enabling itself before Multiverse, so worlds are not loaded yet. From @kFxDaKing 's log:

[04:00:55] [Server thread/INFO]: [CMI] Enabling CMI v8.7.12.7
...
[04:00:57] [Server thread/INFO]:   (RandomTeleportation) Can't find world with (oneblock_world) name
...
[04:01:00] [Server thread/INFO]: [Multiverse-Core] Enabling Multiverse-Core v4.1.1-SNAPSHOT-b793
...
[04:01:00] [Server thread/INFO]: -------- World Settings For [oneblock_world] --------
...
[04:01:00] [Server thread/INFO]: [Multiverse-Core] 8 - World(s) loaded.
[04:01:00] [Server thread/INFO]: [Multiverse-Core] Version 4.1.1-SNAPSHOT-b793 (API v24) Enabled - By dumptruckman, Rigby, fernferret, 

I have the same issue (and this guy too #4945). In my logs I see some plugins like BetterSleeping3 and AdvancedRegionMarket delaying their own enable until Multiverse finished loading worlds. Here's my cropped log so you can see what I'm talking about: https://pastebin.com/ipaKh2sw

I've tried modifying plugin.yml from CMI and Multiverse with softdepend, loadbefore, etc., with no luck. I've contacted the guys from MV, this is their response:

There isnt really a way to order the plugin loading, other than for the other plugin to be aware about mv and load after that, for example as you can see BetterSleeping3 does that or mv could try in the future to load world during the LOAD phase if that plugin dev is active, you can ask him to detect mv loading first before trying to load worlds

Maybe @Zrips can fix this by handling it like BS3 and ARM do.

kFxDaKing commented 3 years ago

I tried loadbefore CMI inv MV too with no luck.