public function joinFaction(Faction $faction) { $faction->addPlayer($this->getPlayer(), "Member"); $this->updateFaction(); $this->updateTag(); }
public function loadAll() { $this->getServer()->getLogger()->info($this->formatMessage("Loading Factions...")); $file = explode("*", file_get_contents($this->getDataFolder() . "Factions.fp")); foreach ($file as $faction) { Faction::import($faction, $this); } $this->getServer()->getLogger()->info($this->formatMessage("Factions Loaded!", true)); }