Code: Error: Using $this when not in object context PHP: class CustomCommands{ public static function checkCommands(){ if($this->getConfig()->getNested("help-cmd.custom") === true){ $this->getServer()->getCommandMap()->getCommand("help")->unregister($this->getServer()->getCommandMap()); Already tryed nearly everything... __construct(), extends and so on, but it won't let me use $this. Anyone can help me?