BentoBoxWorld / ControlPanel

Eclipse Public License 2.0
0 stars 2 forks source link

Commands not working #24

Closed myavuzokumus closed 2 years ago

myavuzokumus commented 2 years ago

Expected behavior

When I clicked on the icons in the menu, I expected the commands to work.

Observed/Actual behavior

image It was working normally but I guess it broke after upgrading to 1.18.1. I have no complete knowledge of the subject. But when I click it, it gives these errors in the console and nothing happened.

I think it's related to this issue. #19

Steps/models to reproduce

Try clicking on the items in the menu and executing the commands.

BentoBox version

image

Plugin list

No response

Other

No response

myavuzokumus commented 2 years ago

What exactly is the problem?

BONNe commented 2 years ago

Hmm, I cannot reproduce this issue. Could you share files that are located in: /plugins/bentobox/database/ControlPanelObject?

myavuzokumus commented 2 years ago

Hmm, I cannot reproduce this issue. Could you share files that are located in: /plugins/bentobox/database/ControlPanelObject?

BSkyBlock_default.zip

BONNe commented 2 years ago

Hmm, I am still not able to reproduce even with your config.

may be players does not have permission to run these commands?

myavuzokumus commented 2 years ago

I can't even use it myself. I have all the permissions. :D You are trying in version 1.18.1 right?

BONNe commented 2 years ago

screenshot-bentobox-version

BONNe commented 2 years ago

ControlPanel 1.13.1 contains only locales changes, so it may not affect. BetoBox 1.20 does not contain any changes to the command calls. At least I do not know about them, if they exists.

May be you have some command manager that prevents commands from executing properly?

myavuzokumus commented 2 years ago

image (I tried to have sudo command executed via console, it still didn't work.)

I don't understand, why is it happening?

At the same time, it sends an unknown command warning in the game.

BONNe commented 2 years ago

Well, the admin command starts with [server]

But in general, I have no idea what could cause that. Maybe a server engine. What exactly do you use and which version?

And do you have the custom command "aliases" for commands?

myavuzokumus commented 2 years ago

If you're talking about server software, I'm using Pufferfish Build 38. And no.

BONNe commented 2 years ago

Well, that is weird, I tried with the same build and everything works correctly.

I am out of ideas why it may not work.

If you try something that is not "bentobox" command, like "balance", "home", "spawn". Do they work?

myavuzokumus commented 2 years ago

Yes, working. Only bentobox commands not working.

BONNe commented 2 years ago

Hmm, And do the commands work if you replace [label] with GameModePlayer command?

myavuzokumus commented 2 years ago

No.

BONNe commented 2 years ago

@tastybento do you have ideas?

tastybento commented 2 years ago

I need to study this - I'm sorry, I will have a tough time looking at it during the week due to work IRL. But I will look at it when I can.

myavuzokumus commented 2 years ago

Hmm, And do the commands work if you replace [label] with GameModePlayer command?

I didn't want to extra open issue about this. I think the command problem is also in the "Gamemode type" selection menu of the "challenges" addon.

When click button on menu, said "Unknown command."

BONNe commented 2 years ago

Can you share your plugin list?

myavuzokumus commented 2 years ago

And you are right.

Obviously I always check my plugins when this is the case. But I never thought it would cause this.

Plugin called "GCore" prevents this. I think everything is fine now. Sorry for the issue. I wanted to open it because the person who opened the previous issue had this kind of problem.

myavuzokumus commented 2 years ago

@BONNe But I don't understand, why is it blocking it? I need to use this plugin.

Can you get in the way of that?

Because it only happens in "some" Bentobox menus. There is no problem in the menu of other plugins.

BONNe commented 2 years ago

Control Panel is very simple in its nature. It just uses simple command call: Player.performCommand(<command>)

If the issue is with a plugin, then, most likely, it is either overwriting NMS Player.performCommand(<command>) and then the developer is doing something wrongly, or it is canceling PlayerCommandPreprocessEvent.

There is nothing BentoBox can do in both situations. However, it is very weird, that plugin would cancel commands from other plugins. You should report it to the plugin developer, as he should not cancel commands, that do not belong to him.

Unless, that is a point of that plugin, and it probably is a plugin configuration thing.

myavuzokumus commented 2 years ago

This problem fixed by Gcore developer.