MCPE protocol gets its own namespace

This commit is contained in:
Dylan K. Taylor
2017-02-26 16:21:01 +00:00
parent 477cb77002
commit 56990eb28b
132 changed files with 600 additions and 601 deletions

View File

@ -24,7 +24,7 @@ namespace pocketmine\command\defaults;
use pocketmine\command\Command;
use pocketmine\command\CommandSender;
use pocketmine\event\TranslationContainer;
use pocketmine\network\protocol\SetDifficultyPacket;
use pocketmine\network\mcpe\protocol\SetDifficultyPacket;
use pocketmine\Server;
class DifficultyCommand extends VanillaCommand{

View File

@ -23,7 +23,7 @@ namespace pocketmine\command\defaults;
use pocketmine\command\CommandSender;
use pocketmine\event\TranslationContainer;
use pocketmine\network\protocol\Info;
use pocketmine\network\mcpe\protocol\ProtocolInfo;
use pocketmine\plugin\Plugin;
use pocketmine\utils\TextFormat;
@ -51,7 +51,7 @@ class VersionCommand extends VanillaCommand{
$sender->getServer()->getCodename(),
$sender->getServer()->getApiVersion(),
$sender->getServer()->getVersion(),
Info::CURRENT_PROTOCOL
ProtocolInfo::CURRENT_PROTOCOL
]));
}else{
$pluginName = implode(" ", $args);