forked from Ad5001/PlayerSelectors
Removing debug
This commit is contained in:
parent
e02535809b
commit
8fa2835dcd
2 changed files with 1 additions and 5 deletions
|
@ -80,7 +80,6 @@ class Main extends PluginBase implements Listener {
|
||||||
foreach($matches[0] as $index => $match){
|
foreach($matches[0] as $index => $match){
|
||||||
if(isset(self::$selectors[$matches[1][$index]])){ // Does the selector exist?
|
if(isset(self::$selectors[$matches[1][$index]])){ // Does the selector exist?
|
||||||
// Search for the parameters
|
// Search for the parameters
|
||||||
echo $matches[1][$index];
|
|
||||||
$params = self::$selectors[$matches[1][$index]]->acceptsModifiers() ? $this->checkArgParams($matches, $index): [];
|
$params = self::$selectors[$matches[1][$index]]->acceptsModifiers() ? $this->checkArgParams($matches, $index): [];
|
||||||
// Applying the selector
|
// Applying the selector
|
||||||
$newCommandsToExecute = [];
|
$newCommandsToExecute = [];
|
||||||
|
|
|
@ -36,10 +36,7 @@ class AllPlayers extends Selector{
|
||||||
foreach(Server::getInstance()->getOnlinePlayers() as $p){
|
foreach(Server::getInstance()->getOnlinePlayers() as $p){
|
||||||
if($params["c"] !== 0 && count($return) == $params["c"]) break; // Too much players
|
if($params["c"] !== 0 && count($return) == $params["c"]) break; // Too much players
|
||||||
if($p->getLevel()->getName() !== $params["lvl"] && $params["lvl"] !== "") break; // Not in the right level
|
if($p->getLevel()->getName() !== $params["lvl"] && $params["lvl"] !== "") break; // Not in the right level
|
||||||
if(!$this->checkDefaultParams($p, $params)) {
|
if(!$this->checkDefaultParams($p, $params)) break;
|
||||||
echo "Not checked param";
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
$return[] = $p->getName();
|
$return[] = $p->getName();
|
||||||
}
|
}
|
||||||
return $return;
|
return $return;
|
||||||
|
|
Loading…
Reference in a new issue