improved TheM plugins unload methods

This commit is contained in:
Steffen Schröder
2014-05-07 21:42:23 +02:00
parent 50697bfb4f
commit 8ea0646064
3 changed files with 7 additions and 19 deletions

View File

@ -1,5 +1,7 @@
<?php
namespace TheM;
use ManiaControl\Callbacks\CallbackListener;
use ManiaControl\Commands\CommandListener;
use ManiaControl\ManiaControl;
@ -70,9 +72,6 @@ class DynamicPointlimitPlugin implements CallbackListener, CommandListener, Plug
* Unload the plugin and its resources
*/
public function unload() {
$this->maniaControl->callbackManager->unregisterCallbackListener($this);
unset($this->maniaControl);
}
/**