BentoBoxWorld / Greenhouses

BentoBox Add-on to enable personal biomes in a glass greenhouse
Eclipse Public License 2.0
13 stars 9 forks source link

Addon not working or working only when it wants to #64

Closed KlayaR closed 3 years ago

KlayaR commented 3 years ago

Hello,

I have an issue with the addon. My server is in 1.16.3, I have all the last updates for the addons. The plugin is showing in /bbox version, but not in any commands. Even in the help list or when I start typing bsbadmin. Sometime it works, sometimes it doesn't. And that with any version

Thank you

tastybento commented 3 years ago

I'm sorry it isn't working for you. It sounds like it could be a permissions problem, but I need more information to try and fix this. Share the following:

  1. Do bbox version in the console. Copy and paste the output in a reply here.
  2. Do plugins in the console. Copy and paste the output in a reply here.
  3. What permissions plugin do you use, if any?
  4. If you are Op, does the command always work? You say you do /bsbadmin, but are you Op when you do that?
KlayaR commented 3 years ago

Hey.

The version: image

The plugins on the server: image

And all tests are done being OP. For exemple this morning, everything was working, and now in the commands, Greenhouse doens't even show =(

KlayaR commented 3 years ago

image image

KlayaR commented 3 years ago

Basically right now we are setting a new skyblock server to replace the one we have. If you wanna come take a look to figure it out, feel free to tell me

tastybento commented 3 years ago

I think I know the issue. If you do /bbox reload then Greenhouses does not always reload and disables itself. I bet if you look in the console log you'll see some error about not being able to save the config file? To avoid this, do a plugin reload, or restart the server.

KlayaR commented 3 years ago

I tried that too. Even a full restart doesn't fix it

KlayaR commented 3 years ago

image This a screenshot of what a plugman reaload do. I don't see any errors for greenhouses

KlayaR commented 3 years ago

I restarted the server and still no Greenhouses...

KlayaR commented 3 years ago

The server is meant to open on saturday night. Is there any way you or ono of the other dev are available to work with us on this? Github is amazing but it's not the fastest way in that situation. Thank you

tastybento commented 3 years ago

I'm the dev on this and I can try. My real-life job is the current issue and taking all my time right now!

The only reason why the command would not be appearing is if Greenhouses has not hooked in the game mode. That is defined in the config.yml:

greenhouses:
  # BentoBox GameModes that will use Greenhouses
  game-modes:
  - bskyblock

I improved this config reading and added console logging that when Greenhouses loads it will state what game modes it has found and hooked into. It'll look like this:

[11:47:55 INFO]: [BentoBox] Enabling Greenhouses...
[11:47:55 INFO]: [BentoBox] [Greenhouses] Loaded 14 biome recipes.
[11:47:55 INFO]: [BentoBox] [Greenhouses] Hooking into BSkyBlock

If Greenhouses cannot find any game modes to hook into then it will throw an error and disable itself:

[11:47:40 INFO]: [BentoBox] Enabling Greenhouses...
[11:47:40 INFO]: [BentoBox] [Greenhouses] Loaded 14 biome recipes.
[11:47:40 ERROR]: [BentoBox] [Greenhouses] Greenhouses could not hook into any game modes! Check config.yml
[11:47:40 INFO]: [BentoBox] Greenhouses is disabled.

I also fixed the reload bug. The config.yml was being saved every time the server was shut down or reloaded and that may have been causing weirdness because it would have overwritten any changes you made to the config.yml.

So, try the latest build, and tell me what you see.

KlayaR commented 3 years ago

image Thank you! =D =D

KlayaR commented 3 years ago

https://www.youtube.com/watch?v=wge3q_iclCo&feature=youtu.be The trusted robot Brit Voice