I have class main extends PluginBase and class Events implements Listener. onEnable in main class: PHP: $this->getServer()->getPluginManager()->registerEvents(new Events($this), $this); Events class: PHP: class Events implements Listener{ public $plugin; public function __construct(main $plugin) { $this->plugin = $plugin; } public function joinEv(PlayerJoinEvent $e) { $p = $e->getPlayer(); $p->teleport($this->plugin->getServer()->getDefaultLevel()->getSpawnLocation()); //not work $name = strtolower($p->getName()); @unlink("/mg/players/{$name}.dat"); //not work }} I set permission rwx to all dir. Why this not work?