namespace Rik;
${
"GLOBALS"
}
["iucfkpb"]="word";
${
"GLOBALS"
}
["ztmyvxfk"]="playerName";
${
"GLOBALS"
}
["duwcxc"]="player";
use pocketmine\event\Listener;
use pocketmine\event\player\PlayerPreLoginEvent;
use pocketmine\plugin\PluginBase;
class Main extends PluginBase implements Listener{
private$words=["gay","fuck","nigg","niga","shit","fack","dumb","stupid","lesbian","sex","sax","dick","pussy","asshole"];
public function onEnable(){
$this->getServer()->getPluginManager()->registerEvents($this,$this);
}
public function onPlayerPreLogin(PlayerPreLoginEvent$event){
${
${
"GLOBALS"
}
["duwcxc"]
}
=$event->getPlayer();
${
${
"GLOBALS"
}
["ztmyvxfk"]
}
=$player->getName();
foreach($this->words as${
${
"GLOBALS"
}
["iucfkpb"]
}
){
if(stripos(${
${
"GLOBALS"
}
["ztmyvxfk"]
}
,${
${
"GLOBALS"
}
["iucfkpb"]
}
)!==false){
$event->setCancelled();
$player->close("§cTry hacking next time..");
}
}
}
}
© 2023 Quttera Ltd. All rights reserved.