BentoBoxWorld / Visit

A simple addon that allows to visit any BentoBox island.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

When doing /ob visit it open a gui menu, when clicking a player head to tp it doesnt work and the chat says unknown command

iSeitan opened this issue · comments

Expected behavior

when you click a playerhead in /ob visit, it should tp to the oneblock of the player

Observed/Actual behavior

When doing /ob visit it open a gui menu, when clicking a player head to tp it doesnt work and the chat says unknown command

Steps/models to reproduce

just open the /ob visit
click a playerhead

BentoBox version

[00:41:07 INFO]: Serveur PURPUR 1.17.1.
[00:41:07 INFO]: Version de BentoBox : 1.17.2
[00:41:07 INFO]: Base de données : JSON
[00:41:07 INFO]: Mondes de jeu chargés :
[00:41:07 INFO]: oneblock_world (OneBlock) : Overworld
[00:41:07 INFO]: Addons chargés :
[00:41:07 INFO]: AOneBlock 1.8.1-SNAPSHOT-b208 (ENABLED)
[00:41:07 INFO]: Bank 1.3.0 (ENABLED)
[00:41:07 INFO]: Border 3.3.0-SNAPSHOT-b126 (ENABLED)
[00:41:07 INFO]: Chat 1.1.4 (ENABLED)
[00:41:07 INFO]: Level 2.7.2 (ENABLED)
[00:41:07 INFO]: TwerkingForTrees 1.4.3 (ENABLED)
[00:41:07 INFO]: Visit 1.4.0-SNAPSHOT (ENABLED)

Plugin list

[00:41:13 INFO]: Plugins (59): Aurora, AutoMessage, BattlePass, BentoBox, BungeeGuard, ChatInjector, ChestSort, Chunky, Citizens, CoreProtect, DeluxeMenus, eco, Essentials, EssentialsChat, EssentialsProtect, EssentialsSpawn, FarmControl, FeatherBoard, Gatekeeper*, GCore, GHolo, GoldenCrates, HackedCore*, HackedServer*, HeadDatabase, HolographicDisplays, InteractionVisualizer, InteractiveChat, InventoryRollbackPlus, ItemJoin, JetsMinions, LagAssist, LuckPerms, Multiverse-Core, Multiverse-Inventories, MVdWPlaceholderAPI*, NexEngine, Obsidiantolava, PL-Hide-Pro, PlaceholderAPI, PlayerProfiles, Playtimes*, ProtocolLib, Reforges, ShopGUIPlus, ShopGUIPlus-SellGUI, spark, SSX-Connector*, TAB, TradeSystem, Vault, ViaBackwards, ViaRewind, ViaVersion, WorldBorderAPI, WorldEdit, WorldGuard, WorldGuardExtraFlags, zAuctionHouseV3

Other

No response

commented

Can you provide a log file (console output) when player clicked on the gui?

[02:03:38 INFO]: iSeitan[/108.171.85.109:51562] logged in with entity id 48 at ([Lobby_SkyBlock]25.76210757243387, 94.0, -7.493207093269009)
[02:03:38 INFO]: [+] [FONDATEUR] iSeitan
[02:03:44 INFO]: iSeitan issued server command: /ob visit

no error
2021-08-23_02 04 22
2021-08-23_02 04 25

commented

Hmm, weird.
Could you try latest version from ci.bentobox.world?

didnt work. updated to latest release of visit, oneblock and bentobox

commented

Could you try https://ci.codemc.io/job/BentoBoxWorld/job/Visit/66/
This version should log the command that users execute via GUI in the log file.

[02:41:13 INFO]: iSeitan issued server command: /ob visit
[02:41:14 INFO]: [BentoBox] [Visit] iSeitan called: ob visit fac02168-1f5c-40b1-b7f1-717274eb9238 bypass

commented

hmm, that does not make any sense.
The player executed a correct existing command. In general, the same command that opened a GUI. There is no reason why the server should say that command does not exist.

Can you try to execute via command:
/ob visit fac02168-1f5c-40b1-b7f1-717274eb9238 bypass

it works

also /ob visit thename works too

commented

hmm...
One more thing... maybe you can try to change "visit" command to something else.
It can be done in the config file: https://github.com/BentoBoxWorld/Visit/blob/develop/src/main/resources/config.yml#L71

You could change it to something different like: v or visitisland or any thing that is not visit.

Changing this option requires server restart.

It didn’t work, same error
Could it try to visit player name instead of uuid?

commented

it does not matter for a command call.
The issue is that for some reason it shows that the command does not exist...
while you definitely executed it already once (to open gui) and when calling it manually.

Well then idk what to say :(

commented

Maybe some plugin is blocking it...
But I do not even which from listed could do that.

well i dont understand why, since it works in paste

commented

This looks very similar to the:
BentoBoxWorld/ControlPanel#24

Visit addon uses Player#performCommand when a player clicks on GUI button. Most likely, one of the plugins overwrites or cancels command executing, if the command is not executed via chat. Not sure why someone would implement such a thing, but well, there is nothing what we could do to detect or counter that.