Hi Guys I want To make On My Plugin When You Type Command look like /gift Take from the player money same 100,200,300 .... So how i can do this ?
I just can't understand why some people don't look it up -.- it's much easier than registration > confirm > and making and thread, but if you want it the hard way here it is : PHP: //on commandif(!$sender instanceof Player) return;$econ = $this->getServer()->getPluginManager()->getPlugin("EconomyAPI");if($econ){switch (strtolower ($cmd->getName())){case "gift1":$econ->reduceMoney($sender, 100);//Do stuffBreak;}}