mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-08-31 07:21:17 +00:00
Fixed some inspections
This commit is contained in:
parent
966e4bf8a1
commit
eaef2bd169
@ -184,7 +184,6 @@ use pocketmine\network\mcpe\protocol\StopSoundPacket;
|
|||||||
use pocketmine\network\mcpe\protocol\TakeItemEntityPacket;
|
use pocketmine\network\mcpe\protocol\TakeItemEntityPacket;
|
||||||
use pocketmine\network\mcpe\protocol\TextPacket;
|
use pocketmine\network\mcpe\protocol\TextPacket;
|
||||||
use pocketmine\network\mcpe\protocol\TransferPacket;
|
use pocketmine\network\mcpe\protocol\TransferPacket;
|
||||||
use pocketmine\network\mcpe\protocol\UnknownPacket;
|
|
||||||
use pocketmine\network\mcpe\protocol\UpdateAttributesPacket;
|
use pocketmine\network\mcpe\protocol\UpdateAttributesPacket;
|
||||||
use pocketmine\network\mcpe\protocol\UpdateBlockPacket;
|
use pocketmine\network\mcpe\protocol\UpdateBlockPacket;
|
||||||
use pocketmine\network\mcpe\protocol\UpdateTradePacket;
|
use pocketmine\network\mcpe\protocol\UpdateTradePacket;
|
||||||
|
@ -46,11 +46,6 @@ abstract class Command{
|
|||||||
/** @var string */
|
/** @var string */
|
||||||
private $label;
|
private $label;
|
||||||
|
|
||||||
/**
|
|
||||||
* @var string[]
|
|
||||||
*/
|
|
||||||
private $aliases = [];
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var string[]
|
* @var string[]
|
||||||
*/
|
*/
|
||||||
|
@ -75,7 +75,6 @@ class EffectCommand extends VanillaCommand{
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
$duration = 300;
|
|
||||||
$amplification = 0;
|
$amplification = 0;
|
||||||
|
|
||||||
if(count($args) >= 3){
|
if(count($args) >= 3){
|
||||||
|
@ -23,8 +23,6 @@ namespace pocketmine\command\defaults;
|
|||||||
|
|
||||||
use pocketmine\command\CommandSender;
|
use pocketmine\command\CommandSender;
|
||||||
use pocketmine\event\TranslationContainer;
|
use pocketmine\event\TranslationContainer;
|
||||||
use pocketmine\plugin\Plugin;
|
|
||||||
use pocketmine\utils\TextFormat;
|
|
||||||
|
|
||||||
class TitleCommand extends VanillaCommand{
|
class TitleCommand extends VanillaCommand{
|
||||||
|
|
||||||
@ -98,5 +96,7 @@ class TitleCommand extends VanillaCommand{
|
|||||||
}
|
}
|
||||||
|
|
||||||
$sender->sendMessage(new TranslationContainer("commands.title.success"));
|
$sender->sendMessage(new TranslationContainer("commands.title.success"));
|
||||||
|
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -30,7 +30,6 @@ use pocketmine\level\format\io\ChunkUtils;
|
|||||||
use pocketmine\level\format\SubChunk;
|
use pocketmine\level\format\SubChunk;
|
||||||
use pocketmine\level\generator\Generator;
|
use pocketmine\level\generator\Generator;
|
||||||
use pocketmine\level\Level;
|
use pocketmine\level\Level;
|
||||||
use pocketmine\level\LevelException;
|
|
||||||
use pocketmine\nbt\NBT;
|
use pocketmine\nbt\NBT;
|
||||||
use pocketmine\nbt\tag\{
|
use pocketmine\nbt\tag\{
|
||||||
ByteArrayTag, ByteTag, CompoundTag, IntArrayTag, IntTag, ListTag, LongTag, StringTag
|
ByteArrayTag, ByteTag, CompoundTag, IntArrayTag, IntTag, ListTag, LongTag, StringTag
|
||||||
|
@ -25,7 +25,6 @@ namespace pocketmine\level\format\io\region;
|
|||||||
|
|
||||||
use pocketmine\level\format\Chunk;
|
use pocketmine\level\format\Chunk;
|
||||||
use pocketmine\level\format\io\ChunkException;
|
use pocketmine\level\format\io\ChunkException;
|
||||||
use pocketmine\level\LevelException;
|
|
||||||
use pocketmine\utils\Binary;
|
use pocketmine\utils\Binary;
|
||||||
use pocketmine\utils\MainLogger;
|
use pocketmine\utils\MainLogger;
|
||||||
|
|
||||||
|
@ -103,7 +103,6 @@ use pocketmine\network\mcpe\protocol\StopSoundPacket;
|
|||||||
use pocketmine\network\mcpe\protocol\TakeItemEntityPacket;
|
use pocketmine\network\mcpe\protocol\TakeItemEntityPacket;
|
||||||
use pocketmine\network\mcpe\protocol\TextPacket;
|
use pocketmine\network\mcpe\protocol\TextPacket;
|
||||||
use pocketmine\network\mcpe\protocol\TransferPacket;
|
use pocketmine\network\mcpe\protocol\TransferPacket;
|
||||||
use pocketmine\network\mcpe\protocol\UnknownPacket;
|
|
||||||
use pocketmine\network\mcpe\protocol\UpdateAttributesPacket;
|
use pocketmine\network\mcpe\protocol\UpdateAttributesPacket;
|
||||||
use pocketmine\network\mcpe\protocol\UpdateBlockPacket;
|
use pocketmine\network\mcpe\protocol\UpdateBlockPacket;
|
||||||
use pocketmine\network\mcpe\protocol\UpdateTradePacket;
|
use pocketmine\network\mcpe\protocol\UpdateTradePacket;
|
||||||
|
@ -24,12 +24,14 @@ namespace pocketmine\network\mcpe\protocol;
|
|||||||
#include <rules/DataPacket.h>
|
#include <rules/DataPacket.h>
|
||||||
|
|
||||||
|
|
||||||
|
use pocketmine\item\Item;
|
||||||
use pocketmine\network\mcpe\NetworkSession;
|
use pocketmine\network\mcpe\NetworkSession;
|
||||||
|
|
||||||
class DropItemPacket extends DataPacket{
|
class DropItemPacket extends DataPacket{
|
||||||
const NETWORK_ID = ProtocolInfo::DROP_ITEM_PACKET;
|
const NETWORK_ID = ProtocolInfo::DROP_ITEM_PACKET;
|
||||||
|
|
||||||
public $type;
|
public $type;
|
||||||
|
/** @var Item */
|
||||||
public $item;
|
public $item;
|
||||||
|
|
||||||
public function decode(){
|
public function decode(){
|
||||||
|
Loading…
x
Reference in New Issue
Block a user