<commit_before><?php

namespace Coordinates;

use pocketmine\event\player\PlayerJoinEvent;
use pocketmine\event\Listener;
use pocketmine\plugin\PluginBase;
use pocketmine\utils\TextFormat;
use pocketmine\Player;
use pocketmine\Server;

class Main extends PluginBase implements Listener{
    
    public function onEnable(){
        $this->getServer()->getPluginManager()->registerEvents($this, $this);
        $this->getLogger()->info(TextFormat::GREEN."Coordinates enabled.");
    }
    
    public function onDisable(){
        $this->getLogger()->info(TextFormat::RED."Coordinates disabled.");
    }
}<commit_msg>Added /getpos<commit_after><?php

namespace Coordinates;

use pocketmine\command\Command;
use pocketmine\command\CommandSender;
use pocketmine\plugin\PluginBase;
use pocketmine\utils\TextFormat;
use pocketmine\Player;

class Main extends PluginBase{
    
    public function onEnable(){
        $this->getServer()->getPluginManager()->registerEvents($this, $this);
        $this->getLogger()->info(TextFormat::GREEN."Coordinates enabled.");
    }
    
    public function onDisable(){
        $this->getLogger()->info(TextFormat::RED."Coordinates disabled.");
    }
    
    public function onCommand(CommandSender $sender, Command $command, $label, array $args){
        switch($command->getName()){
            case "getpos":
                if($sender instanceof Player){
                    $posX = $sender->getFloorX();
                    $posY = $sender->getFloorY();
                    $posZ = $sender->getFloorZ();
                    $level = $sender->getLevel()->getName();
                    $sender->sendMessage("x: ".$posX." y: ".$posY." z: ".$posZ." Level: ".$level)
                }
                else{
                    $sender->sendMessage(TextFormat::RED."This command can only be used in-game.")
                }
        }
    }
}
{'fraction_non_alphanumeric': 0.14300960512273211, 'fraction_numerical': 0.0, 'mean_word_length': 2.698224852071006, 'pattern_counts': {'":': 1, '<': 5, '<?xml version=': 0, '>': 25, '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': '956555', 'n_tokens_mistral': 517, 'n_tokens_neox': 505, 'n_words': 102}