give sho stick 1 {display:{Name:"§r§6§lNormal stick"}}
give sho gold_sword 1 {ench:[{id:9s,lvl:2s}]}
| #!/usr/bin/env php | |
| <?php | |
| if(!defined("STDIN")) define("STDIN", fopen("php://stdin", "R")); | |
| $host = "localhost"; | |
| $user = "root"; | |
| $password = ""; | |
| $schema = ""; | |
| $opts = getopt("h:u:p:s:"); |
| <?php | |
| namespace shoghicp\MinecraftSimulator\task; | |
| use pocketmine\Player; | |
| use pocketmine\scheduler\PluginTask; | |
| use shoghicp\MinecraftSimulator\Loader; | |
| class MarqueeTask extends PluginTask{ |
| <?php | |
| $world = $this->getServer()->getDefaultLevel(); | |
| $radius = 136; | |
| $total = (($radius * 2) + 1) ** 2; | |
| $count = 0; | |
| $bList = clone \pocketmine\block\Block::$list; | |
| $search = []; |
| $FB = "█"; | |
| $GR = TextFormat::DARK_GREEN; | |
| $BL = TextFormat::BLACK; | |
| $line1 = $GR . str_repeat($FB, 10); | |
| $line2 = $GR . str_repeat($FB, 10); | |
| $line3 = $GR . $FB . $FB . $BL . $FB . $FB . $GR . $FB . $FB . $BL . $FB . $FB . $GR . $FB . $FB; | |
| $line4 = $GR . $FB . $FB . $BL . $FB . $FB . $GR . $FB . $FB . $BL . $FB . $FB . $GR . $FB . $FB; | |
| $line5 = $GR . $FB . $FB . $FB . $FB . $BL . $FB . $FB . $GR . $FB . $FB . $FB . $FB; | |
| $line6 = $GR . $FB . $FB . $FB . $BL . $FB . $FB . $FB . $FB . $GR . $FB . $FB . $FB; | |
| $line7 = $GR . $FB . $FB . $FB . $BL . $FB . $FB . $FB . $FB . $GR . $FB . $FB . $FB; |
| <?php | |
| /** | |
| * @name VirtualInventories | |
| * @main VirtualInventories\Loader | |
| * @version 1.0.0 | |
| * @api 1.12.0 | |
| * @description Way to open virtual custom inventories | |
| * @author iksaku | |
| */ |
| #!/bin/bash | |
| USER="root" | |
| PASSWORD="" | |
| FILES="/Users/tenold/Backups/MySQL/*" | |
| for f in $FILES | |
| do | |
| echo "Processing $f file..." |
You want to override the tell command, that has also the w and msg aliases by default.
The class that will override these commands is MyTellCommand (extends PluginCommand).
To do this, you've to set the original command in a state that allows it to be overriden. Also, aliases will be registered directly, but since all the work was done for the first registration, it's pretty simple.
//We are in the context of a plugin