pmessentials / PMEssentials

A collection of essential PMMP commands, features and more. Heavily inspired by Essentials
GNU General Public License v2.0
11 stars 11 forks source link

[BUG] #33

Closed SaeedSoheili closed 5 years ago

SaeedSoheili commented 5 years ago

Describe the bug When i start the server plugin disabled.

Versions:

Error:

[07:27:25] [Server thread/INFO]: Enabling PMEssentials v1.0.0-dev [07:27:28] [Server thread/CRITICAL]: pocketmine\plugin\PluginException: "Plugin attempted to register pmessentials\PMEssentials\listener\VanishListener while not enabled" (EXCEPTION) in "src/pocketmine/plugin/PluginManager" at line 722 [07:27:28] [Server thread/DEBUG]: #0 plugins/PMEssentials-master/src/pmessentials/PMEssentials/listener/ListenerBase(20): pocketmine\plugin\PluginManager->registerEvents(object pmessentials\PMEssentials\listener\VanishListener, object pmessentials\PMEssentials\Main) [07:27:28] [Server thread/DEBUG]: #1 plugins/PMEssentials-master/src/pmessentials/PMEssentials/Main(53): pmessentials\PMEssentials\listener\ListenerBase->construct() [07:27:28] [Server thread/DEBUG]: #2 src/pocketmine/plugin/PluginBase(123): pmessentials\PMEssentials\Main->onEnable() [07:27:28] [Server thread/DEBUG]: #3 src/pocketmine/plugin/PluginManager(588): pocketmine\plugin\PluginBase->setEnabled(boolean 1) [07:27:28] [Server thread/DEBUG]: #4 src/pocketmine/Server(2002): pocketmine\plugin\PluginManager->enablePlugin(object pmessentials\PMEssentials\Main) [07:27:28] [Server thread/DEBUG]: #5 src/pocketmine/Server(1988): pocketmine\Server->enablePlugin(object pmessentials\PMEssentials\Main) [07:27:28] [Server thread/DEBUG]: #6 src/pocketmine/Server(2072): pocketmine\Server->enablePlugins(integer 1) [07:27:28] [Server thread/DEBUG]: #7 src/pocketmine/command/defaults/ReloadCommand(49): pocketmine\Server->reload() [07:27:28] [Server thread/DEBUG]: #8 src/pocketmine/command/SimpleCommandMap(270): pocketmine\command\defaults\ReloadCommand->execute(object pocketmine\command\ConsoleCommandSender, string[6] reload, array[0]) [07:27:28] [Server thread/DEBUG]: #9 src/pocketmine/Server(2029): pocketmine\command\SimpleCommandMap->dispatch(object pocketmine\command\ConsoleCommandSender, string[6] reload) [07:27:28] [Server thread/DEBUG]: #10 src/pocketmine/Server(1616): pocketmine\Server->dispatchCommand(object pocketmine\command\ConsoleCommandSender, string[6] reload) [07:27:28] [Server thread/DEBUG]: #11 vendor/pocketmine/snooze/src/SleeperHandler(123): pocketmine\Server->pocketmine{closure}() [07:27:28] [Server thread/DEBUG]: #12 vendor/pocketmine/snooze/src/SleeperHandler(85): pocketmine\snooze\SleeperHandler->processNotifications() [07:27:28] [Server thread/DEBUG]: #13 src/pocketmine/Server(2348): pocketmine\snooze\SleeperHandler->sleepUntil(double 1561966031.5459) [07:27:28] [Server thread/DEBUG]: #14 src/pocketmine/Server(2205): pocketmine\Server->tickProcessor() [07:27:28] [Server thread/DEBUG]: #15 src/pocketmine/Server(1784): pocketmine\Server->start() [07:27:28] [Server thread/DEBUG]: #16 src/pocketmine/PocketMine(274): pocketmine\Server->construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[48] C:\Users\asus\Desktop\MCPENetwork-Prison-Server\, string[56] C:\Users\asus\Desktop\MCPENetwork-Prison-Server\plugins)

[07:27:28] [Server thread/INFO]: Disabling PMEssentials v1.0.0-dev

AndreasHGK commented 5 years ago

does this happen only when you reload or when you actually start the server?

iZeaoGamer commented 5 years ago

Okay, as you can see, he/she is using /reload. Reload reloads the server (Basically restarts, but without stopping the server). This is a bug with the plugin, but I'm not sure if Andreas is going to fix it or not. I think the issuer was referring to reloading the server, as if you look at his error logs, it says pocketmine\command\SimpleCommandMap->dispatch(object pocketmine\command\ConsoleCommandSender, string[6] reload), which means they must've reloaded the server from console. If you don't plan on fixing this, I believe you should close this issue.

AndreasHGK commented 5 years ago

I indeed don't plan on fixing this. Theres already a lot of plugins that have bugs when reloading, that fixing this one wouldn't do much.