<commit_before><?php
namespace MyPlot\subcommand;

use pocketmine\command\CommandSender;
use pocketmine\Player;
use pocketmine\utils\TextFormat;

class ListSubCommand extends SubCOmmand {
    public function canUse(CommandSender $sender) {
        return ($sender instanceof Player) and $sender->hasPermission("myplot.command.list");
    }
    
    public function execute(CommandSender $sender, array $args) {
        if($sender->hasPermission("myplot.admin.list")) {
            $this->translateString("list.header"));
            if(count($args) == 1) {
                $plots = $this->getPlugin()->getPlotsByOwner($sender->getName());
                foreach($plots as $plot) {
                    $name = $plot->name;
                    $x = $plot->X;
                    $z = $plot->Z;
                    
                    $this->translateString("list.found", [$name, $x, $z]));
                }
            }else{
                $plots = $this->getPlugin()->getPlotsByOwner($sender->getName());
                foreach($plots as $plot) {
                    $name = $plot->name;
                    $x = $plot->X;
                    $z = $plot->Z;
                    
                    $this->translateString("list.found", [$name, $x, $z]));
                }
            }
        }elseif($sender->hasPermission("myplot.command.list")) {
            $this->translateString("list.header"));<commit_msg>Update ListSubCommand.php<commit_after><?php
namespace MyPlot\subcommand;

use pocketmine\command\CommandSender;
use pocketmine\Player;
use pocketmine\utils\TextFormat;

class ListSubCommand extends SubCOmmand {
    public function canUse(CommandSender $sender) {
        return ($sender instanceof Player) and $sender->hasPermission("myplot.command.list");
    }
    
    public function execute(CommandSender $sender, array $args) {
        if($sender->hasPermission("myplot.admin.list")) {
            if(count($args) == 1) {
                $plots = $this->getPlugin()->getPlotsByOwner($sender->getName());
                foreach($plots as $plot) {
                    $name = $plot->name;
                    $x = $plot->X;
                    $z = $plot->Z;
                    
                    $this->translateString("list.found", [$name, $x, $z]));
                }
            }else{
                $plots = $this->getPlugin()->getPlotsByOwner($sender->getName());
                foreach($plots as $plot) {
                    $name = $plot->name;
                    $x = $plot->X;
                    $z = $plot->Z;
                    
                    $this->translateString("list.found", [$name, $x, $z]));
                }
            }
        }elseif($sender->hasPermission("myplot.command.list")) {
{'fraction_non_alphanumeric': 0.14883551673944687, 'fraction_numerical': 0.000727802037845706, 'mean_word_length': 1.7030481809242872, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 39, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '118971', 'n_tokens_mistral': 762, 'n_tokens_neox': 717, 'n_words': 130}