PHP: class RefreshSigns extends PluginTask { public $prefix = TE::WHITE . "-=" . TE::RED. TE::BOLD . "TeamPvP" . TE::WHITE . "=-"; public function __construct($plugin) { $this->plugin = $plugin; parent::__construct($plugin); } public function onRun($tick) { $allplayers = $this->plugin->getServer()->getOnlinePlayers(); $level = $this->plugin->getServer()->getDefaultLevel(); $tiles = $level->getTiles(); foreach($tiles as $t) { if($t instanceof Sign) { $text = $t->getText(); if($text[3]==$this->prefix) { $aop = 0; $namemap = str_replace("§6", "", $text[2]); foreach($allplayers as $player){if($player->getLevel()->getFolderName()==$namemap){$aop=$aop+1;}} $ingame = TE::AQUA . "§7[§aJoin§7]"; $config = new Config($this->plugin->getDataFolder() . "/config.yml", Config::YAML); if($config->get($namemap . "PlayTime")!=700) { $ingame = TE::RED . "§7[§4Closed§7]"; } elseif($aop>=16) { $ingame = TE::WHITE . "§7[§6Full§7]"; } $t->setText($ingame,TE::WHITE . $aop . " / 16",$text[2],$this->prefix); } } } }}