mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-07 02:08:21 +00:00
MCPE protocol gets its own namespace
This commit is contained in:
@ -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{
|
||||
|
@ -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);
|
||||
|
Reference in New Issue
Block a user