I am currently working on a plugin which will let non oped users easily get armor, food, and swords without having to ask for it, I will be using this for a PvP server and I decided to share it with you guys, can anyone help me? this is what I have so far: PHP: <?php/*_PocketMine Plugin_name=PlayerGiveSelfdescrption= Player can give himself certain food, armor, and weapons by using commandsversion=1.0author=NIMclass=giveapiversion=11*/class give implements Plugin{ private $api; public function __construct(ServerAPI $api, $server = false){$this->api = $api;}public function init(){$this->api->console->register("sword","gives a stone sword to that user",array($this, "sword")); $this->api->console->register("food","gives a potato to that user",array($this, "food")); $this->api->console->register("armor","gives chain boots to that user",array($this, "armor"));} public function sword($cmd, $params, $issuer, $alias, $args, $issuer){ $this->api->console->run("give " . $issuer->username . " 272 1"); $issuer->sendChat("[Server] You Have Recieved a Sword!"); }public function food($cmd, $params, $issuer, $alias, $args, $issuer){ $this->api->console->run("give " . $issuer->username . " 392 5"); $issuer->sendChat("[Server] You Have Recieved Food!"); } public function armor($cmd, $params, $issuer, $alias, $args, $issuer){ $this->api->console->run("give " . $issuer->username . " 305 1"); $issuer->sendChat("[Server] You Have Recieved Armor!"); }}
$this->api->console->register("food","gives a potatoe to that user",array($this, "give")); You spelt potato wrong.
You are banned for using an alt account ^^^ to interact with your main account. Actions included: following the main and bumping the main accounts threads. I suggest you wait for the ban to expire if you don't want it extended for ban evasion Further use of your sock will result in its perm banning.