Hello I Have A Question: I know how to say something to the console: PHP: Console ("Type a Number"); Is it possible to store the number that they typed in a variable?
You don't need to be a pro developer to be able to do what I said. There are lots of tutorials for PocketMine-MP on the forum.
Is this a plugin request? You want a player to be able to type a number, and it to show up in the console? And you want to store the number?
Ya it's possible, I can make you a plugin that could do this if you want. It should take like two seconds. Purpose?
Not trying to hate but im kinda confused by the fact that your trying to make a plugin yet dont know (or at least didnt know) what command arguments are....
One of the 10 billion plugin making tutorials should have an explanation but I guess I can anyway: Command arguments are what allow a single command to have multiple options. For example you can use arguments to make a command add or delete people from a config by using a single command like /config add <info> or /config delete <info>. I normally dont use the $args though since Im used to parameters.
If you want examples you can look at tutorials or view the code of my plugins (they use parameters though) However, if you view my plugins code DO NOT just copy and paste it into your own plugin! I WILL report any stolen content that I find. Regardless of if it is stolen from one of my plugins or not.
Feel free to use it in your plugin as long as you leave me credit. PHP: public function init() {$this->api->addHandler("console.command",array($this,"command"));}public function command($data) {if(!($data["issuer"] instanceof Player) && is_numeric($data["cmd"])) {$this->number = $data["cmd"];return false;}}