Removing debug

pull/5/merge
Ad5001 5 years ago
parent e02535809b
commit 8fa2835dcd
  1. 1
      src/Ad5001/PlayerSelectors/Main.php
  2. 5
      src/Ad5001/PlayerSelectors/selector/AllPlayers.php

@ -80,7 +80,6 @@ class Main extends PluginBase implements Listener {
foreach($matches[0] as $index => $match){
if(isset(self::$selectors[$matches[1][$index]])){ // Does the selector exist?
// Search for the parameters
echo $matches[1][$index];
$params = self::$selectors[$matches[1][$index]]->acceptsModifiers() ? $this->checkArgParams($matches, $index): [];
// Applying the selector
$newCommandsToExecute = [];

@ -36,10 +36,7 @@ class AllPlayers extends Selector{
foreach(Server::getInstance()->getOnlinePlayers() as $p){
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(!$this->checkDefaultParams($p, $params)) {
echo "Not checked param";
break;
}
if(!$this->checkDefaultParams($p, $params)) break;
$return[] = $p->getName();
}
return $return;

Loading…
Cancel
Save