<commit_before><?php

namespace skintools;

use pocketmine\plugin\PluginBase;
use skintools\event\SkinToolsListener;

class SkinTools extends PluginBase{
    public function onEnable(){
	$this->registerAll();
        $this->getServer()->getLogger()->info("§aEnabling ".$this->getDescription()->getFullName()."...");
    }
    public function onDisable(){
        $this->getServer()->getLogger()->info("§cDisabling ".$this->getDescription()->getFullName()."...");
    }
    private function registerAll(){
    	$this->getServer()->getPluginManager()->registerEvents(new SkinToolsListener($this), $this);
    }
}<commit_msg>Update SkinTools.php<commit_after><?php

namespace skintools;

use pocketmine\plugin\PluginBase;
use pocketmine\Player;
use skintools\command\SkinToolsCommand;
use skintools\event\SkinToolsListener;

class SkinTools extends PluginBase{
    public $skintools;
    public function onEnable(){
	$this->registerAll();
        $this->getServer()->getLogger()->info("§aEnabling ".$this->getDescription()->getFullName()."...");
    }
    public function onDisable(){
        $this->getServer()->getLogger()->info("§cDisabling ".$this->getDescription()->getFullName()."...");
    }
    private function registerAll(){
    	$this->skintools = array();
    	$this->getServer()->getCommandMap()->register("skintools", new SkinToolsCommand($this), $this);
    	$this->getServer()->getPluginManager()->registerEvents(new SkinToolsListener($this), $this);
    }
    public function setStolenSkin(Player $player1, Player $player2){
    	$player1->setSkin($player2->getSkinData());
    }
    public function setTouchMode(Player $player, $touchMode = true){
    	if(is_bool($skinOnTouch)) $this->skintools["touchMode"][strtolower($player->getName())] = $touchMode;
    }
    public function hasTouchMode(Player $player){
    	return $this->skintools["touchMode"][strtolower($player->getName())] === true;
    }
}
{'fraction_non_alphanumeric': 0.18049034950443402, 'fraction_numerical': 0.0020865936358894104, 'mean_word_length': 4.865443425076452, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 41, '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': '4875604', 'n_tokens_mistral': 579, 'n_tokens_neox': 571, 'n_words': 92}