From e913b168045a9cf0931fc1e45297705b4e326b4e Mon Sep 17 00:00:00 2001 From: SOF3 Date: Mon, 3 Oct 2016 00:58:34 +0800 Subject: [PATCH] Fixed some lines indented with 4 spaces rather than tabs --- src/pocketmine/Collectable.php | 16 ++++++------- src/pocketmine/Player.php | 2 +- src/pocketmine/Server.php | 6 ++--- src/pocketmine/Worker.php | 4 ++-- src/pocketmine/block/ActivatorRail.php | 14 +++++------ src/pocketmine/block/Block.php | 2 +- src/pocketmine/block/BlockIds.php | 14 +++++------ src/pocketmine/block/CocoaBlock.php | 14 +++++------ src/pocketmine/block/DaylightSensor.php | 14 +++++------ src/pocketmine/block/DetectorRail.php | 14 +++++------ src/pocketmine/block/Fence.php | 2 +- src/pocketmine/block/FlowerPot.php | 2 +- src/pocketmine/block/Lever.php | 14 +++++------ src/pocketmine/block/LitRedstoneLamp.php | 14 +++++------ src/pocketmine/block/LitRedstoneTorch.php | 14 +++++------ src/pocketmine/block/NetherBrickFence.php | 8 +++---- src/pocketmine/block/NoteBlock.php | 14 +++++------ src/pocketmine/block/PoweredRail.php | 14 +++++------ src/pocketmine/block/Quartz.php | 2 +- src/pocketmine/block/Rail.php | 14 +++++------ src/pocketmine/block/RedstoneLamp.php | 14 +++++------ src/pocketmine/block/RedstoneTorch.php | 14 +++++------ src/pocketmine/block/StoneBricks.php | 2 +- src/pocketmine/block/StoneButton.php | 14 +++++------ src/pocketmine/block/TallGrass.php | 2 +- src/pocketmine/block/TrappedChest.php | 4 ++-- src/pocketmine/block/Tripwire.php | 14 +++++------ src/pocketmine/block/TripwireHook.php | 14 +++++------ .../block/WeightedPressurePlateHeavy.php | 14 +++++------ .../block/WeightedPressurePlateLight.php | 14 +++++------ src/pocketmine/block/WoodenButton.php | 14 +++++------ src/pocketmine/block/WoodenPressurePlate.php | 2 +- .../event/player/PlayerInteractEvent.php | 2 +- src/pocketmine/inventory/CraftingManager.php | 2 +- src/pocketmine/inventory/PlayerInventory.php | 2 +- src/pocketmine/item/Item.php | 2 +- src/pocketmine/item/ItemIds.php | 24 +++++++++---------- src/pocketmine/level/Level.php | 10 ++++---- .../level/format/mcregion/Chunk.php | 6 ++--- .../level/generator/object/SpruceTree.php | 10 ++++---- .../level/particle/DestroyBlockParticle.php | 6 ++--- .../level/particle/FloatingTextParticle.php | 10 ++++---- .../level/particle/GenericParticle.php | 6 ++--- .../level/particle/MobSpawnParticle.php | 8 +++---- src/pocketmine/level/particle/Particle.php | 2 +- src/pocketmine/level/sound/GenericSound.php | 14 +++++------ src/pocketmine/level/sound/Sound.php | 2 +- src/pocketmine/nbt/NBT.php | 2 +- src/pocketmine/nbt/tag/StringTag.php | 2 +- .../network/protocol/FullChunkDataPacket.php | 8 +++---- .../network/protocol/PlayStatusPacket.php | 2 +- .../network/protocol/UpdateBlockPacket.php | 2 +- src/pocketmine/network/query/QueryHandler.php | 2 +- src/pocketmine/tile/FlowerPot.php | 12 +++++----- src/pocketmine/utils/BinaryStream.php | 18 +++++++------- src/pocketmine/utils/TextFormat.php | 2 +- 56 files changed, 238 insertions(+), 238 deletions(-) diff --git a/src/pocketmine/Collectable.php b/src/pocketmine/Collectable.php index c05a1aed3..fce2fe588 100644 --- a/src/pocketmine/Collectable.php +++ b/src/pocketmine/Collectable.php @@ -23,13 +23,13 @@ namespace pocketmine; abstract class Collectable extends \Threaded implements \Collectable{ - private $isGarbage = false; - - public function isGarbage() : bool{ - return $this->isGarbage; - } + private $isGarbage = false; - public function setGarbage(){ - $this->isGarbage = true; - } + public function isGarbage() : bool{ + return $this->isGarbage; + } + + public function setGarbage(){ + $this->isGarbage = true; + } } diff --git a/src/pocketmine/Player.php b/src/pocketmine/Player.php index acee86a7a..e02509326 100644 --- a/src/pocketmine/Player.php +++ b/src/pocketmine/Player.php @@ -1614,7 +1614,7 @@ class Player extends Human implements CommandSender, InventoryHolder, ChunkLoade } } } - + $nbt = $this->server->getOfflinePlayerData($this->username); $this->playedBefore = ($nbt["lastPlayed"] - $nbt["firstPlayed"]) > 1; // microtime(true) - microtime(true) may have less than one millisecond difference if(!isset($nbt->NameTag)){ diff --git a/src/pocketmine/Server.php b/src/pocketmine/Server.php index e0233e098..73222ec5a 100644 --- a/src/pocketmine/Server.php +++ b/src/pocketmine/Server.php @@ -1701,7 +1701,7 @@ class Server{ return count($recipients); } - + /** * @param string $popup * @param Player[]|null $recipients @@ -1719,7 +1719,7 @@ class Server{ } } } - + /** @var Player[] $recipients */ foreach($recipients as $recipient){ $recipient->sendPopup($popup); @@ -2341,7 +2341,7 @@ class Server{ } $d = Utils::getRealMemoryUsage(); - + $u = Utils::getMemoryUsage(true); $usage = round(($u[0] / 1024) / 1024, 2) . "/" . round(($d[0] / 1024) / 1024, 2) . "/" . round(($u[1] / 1024) / 1024, 2) . "/".round(($u[2] / 1024) / 1024, 2)." MB @ " . Utils::getThreadCount() . " threads"; diff --git a/src/pocketmine/Worker.php b/src/pocketmine/Worker.php index 0d2f2c098..e9c897df5 100644 --- a/src/pocketmine/Worker.php +++ b/src/pocketmine/Worker.php @@ -28,7 +28,7 @@ abstract class Worker extends \Worker{ /** @var \ClassLoader */ protected $classLoader; - + protected $isKilled = false; public function getClassLoader(){ @@ -73,7 +73,7 @@ abstract class Worker extends \Worker{ $this->isKilled = true; $this->notify(); - + if($this->isRunning()){ $this->shutdown(); $this->notify(); diff --git a/src/pocketmine/block/ActivatorRail.php b/src/pocketmine/block/ActivatorRail.php index 9507a01ef..642d0c4ab 100644 --- a/src/pocketmine/block/ActivatorRail.php +++ b/src/pocketmine/block/ActivatorRail.php @@ -23,13 +23,13 @@ namespace pocketmine\block; class ActivatorRail extends Solid { - protected $id = self::ACTIVATOR_RAIL; + protected $id = self::ACTIVATOR_RAIL; - public function __construct($meta = 0){ - $this->meta = $meta; - } + public function __construct($meta = 0){ + $this->meta = $meta; + } - public function getName(){ - return "Activator Rail"; - } + public function getName(){ + return "Activator Rail"; + } } diff --git a/src/pocketmine/block/Block.php b/src/pocketmine/block/Block.php index 82c86edc9..ef1bfdced 100644 --- a/src/pocketmine/block/Block.php +++ b/src/pocketmine/block/Block.php @@ -207,7 +207,7 @@ class Block extends Position implements BlockIds, Metadatable{ self::$list[self::TRAPPED_CHEST] = TrappedChest::class; self::$list[self::WEIGHTED_PRESSURE_PLATE_LIGHT] = WeightedPressurePlateLight::class; self::$list[self::WEIGHTED_PRESSURE_PLATE_HEAVY] = WeightedPressurePlateHeavy::class; - + self::$list[self::DAYLIGHT_SENSOR] = DaylightSensor::class; self::$list[self::REDSTONE_BLOCK] = Redstone::class; diff --git a/src/pocketmine/block/BlockIds.php b/src/pocketmine/block/BlockIds.php index d40364295..6f5c7bbdd 100644 --- a/src/pocketmine/block/BlockIds.php +++ b/src/pocketmine/block/BlockIds.php @@ -22,7 +22,7 @@ namespace pocketmine\block; interface BlockIds{ - + const AIR = 0; const STONE = 1; const GRASS = 2; @@ -182,22 +182,22 @@ interface BlockIds{ const DOUBLE_WOOD_SLAB = 157; const DOUBLE_WOODEN_SLAB = 157; const DOUBLE_WOOD_SLABS = 157; const DOUBLE_WOODEN_SLABS = 157; const WOOD_SLAB = 158; const WOODEN_SLAB = 158; const WOOD_SLABS = 158; const WOODEN_SLABS = 158; const STAINED_CLAY = 159; const STAINED_HARDENED_CLAY = 159; - + const LEAVES2 = 161; const WOOD2 = 162; const TRUNK2 = 162; const LOG2 = 162; const ACACIA_WOOD_STAIRS = 163; const ACACIA_WOODEN_STAIRS = 163; const DARK_OAK_WOOD_STAIRS = 164; const DARK_OAK_WOODEN_STAIRS = 164; const SLIME_BLOCK = 165; - + const IRON_TRAPDOOR = 167; - + const HAY_BALE = 170; const CARPET = 171; const HARDENED_CLAY = 172; const COAL_BLOCK = 173; const PACKED_ICE = 174; const DOUBLE_PLANT = 175; - + const INVERTED_DAYLIGHT_SENSOR = 178; const DAYLIGHT_SENSOR_INVERTED = 178; const RED_SANDSTONE = 179; const RED_SANDSTONE_STAIRS = 180; @@ -208,7 +208,7 @@ interface BlockIds{ const JUNGLE_FENCE_GATE = 185; const FENCE_GATE_JUNGLE = 185; const DARK_OAK_FENCE_GATE = 186; const FENCE_GATE_DARK_OAK = 186; const ACACIA_FENCE_GATE = 187; const FENCE_GATE_ACACIA = 187; - + const SPRUCE_DOOR_BLOCK = 193; const BIRCH_DOOR_BLOCK = 194; const JUNGLE_DOOR_BLOCK = 195; @@ -216,7 +216,7 @@ interface BlockIds{ const DARK_OAK_DOOR_BLOCK = 197; const GRASS_PATH = 198; const ITEM_FRAME_BLOCK = 199; - + const PODZOL = 243; const BEETROOT_BLOCK = 244; const STONECUTTER = 245; diff --git a/src/pocketmine/block/CocoaBlock.php b/src/pocketmine/block/CocoaBlock.php index 391ba9463..e18638e10 100644 --- a/src/pocketmine/block/CocoaBlock.php +++ b/src/pocketmine/block/CocoaBlock.php @@ -23,13 +23,13 @@ namespace pocketmine\block; class CocoaBlock extends Solid { - protected $id = self::COCOA_BLOCK; + protected $id = self::COCOA_BLOCK; - public function __construct($meta = 0){ - $this->meta = $meta; - } + public function __construct($meta = 0){ + $this->meta = $meta; + } - public function getName(){ - return "Cocoa Block"; - } + public function getName(){ + return "Cocoa Block"; + } } diff --git a/src/pocketmine/block/DaylightSensor.php b/src/pocketmine/block/DaylightSensor.php index 590952b42..9e0977e4e 100644 --- a/src/pocketmine/block/DaylightSensor.php +++ b/src/pocketmine/block/DaylightSensor.php @@ -23,13 +23,13 @@ namespace pocketmine\block; class DaylightSensor extends Solid { - protected $id = self::DAYLIGHT_SENSOR; + protected $id = self::DAYLIGHT_SENSOR; - public function __construct($meta = 0){ - $this->meta = $meta; - } + public function __construct($meta = 0){ + $this->meta = $meta; + } - public function getName(){ - return "Daylight Sensor"; - } + public function getName(){ + return "Daylight Sensor"; + } } diff --git a/src/pocketmine/block/DetectorRail.php b/src/pocketmine/block/DetectorRail.php index 7a573bd3b..203ad347c 100644 --- a/src/pocketmine/block/DetectorRail.php +++ b/src/pocketmine/block/DetectorRail.php @@ -23,13 +23,13 @@ namespace pocketmine\block; class DetectorRail extends Solid { - protected $id = self::DETECTOR_RAIL; + protected $id = self::DETECTOR_RAIL; - public function __construct($meta = 0){ - $this->meta = $meta; - } + public function __construct($meta = 0){ + $this->meta = $meta; + } - public function getName(){ - return "Detector Rail"; - } + public function getName(){ + return "Detector Rail"; + } } diff --git a/src/pocketmine/block/Fence.php b/src/pocketmine/block/Fence.php index 510ea39f7..3011af23f 100644 --- a/src/pocketmine/block/Fence.php +++ b/src/pocketmine/block/Fence.php @@ -32,7 +32,7 @@ class Fence extends Transparent{ const FENCE_JUNGLE = 3; const FENCE_ACACIA = 4; const FENCE_DARKOAK = 5; - + protected $id = self::FENCE; public function __construct($meta = 0){ diff --git a/src/pocketmine/block/FlowerPot.php b/src/pocketmine/block/FlowerPot.php index 43fc10441..828c1875b 100644 --- a/src/pocketmine/block/FlowerPot.php +++ b/src/pocketmine/block/FlowerPot.php @@ -113,7 +113,7 @@ class FlowerPot extends Flowable{ $this->setDamage(self::STATE_FULL); //specific damage value is unnecessary, it just needs to be non-zero to show an item. $this->getLevel()->setBlock($this, $this, true, false); $pot->setItem($item); - + if($player instanceof Player){ if($player->isSurvival()){ $item->setCount($item->getCount() - 1); diff --git a/src/pocketmine/block/Lever.php b/src/pocketmine/block/Lever.php index 993cd52b8..04203e2aa 100644 --- a/src/pocketmine/block/Lever.php +++ b/src/pocketmine/block/Lever.php @@ -23,13 +23,13 @@ namespace pocketmine\block; class Lever extends Solid { - protected $id = self::LEVER; + protected $id = self::LEVER; - public function __construct($meta = 0){ - $this->meta = $meta; - } + public function __construct($meta = 0){ + $this->meta = $meta; + } - public function getName(){ - return "Lever"; - } + public function getName(){ + return "Lever"; + } } diff --git a/src/pocketmine/block/LitRedstoneLamp.php b/src/pocketmine/block/LitRedstoneLamp.php index fe989d45f..5257a1041 100644 --- a/src/pocketmine/block/LitRedstoneLamp.php +++ b/src/pocketmine/block/LitRedstoneLamp.php @@ -23,13 +23,13 @@ namespace pocketmine\block; class LitRedstoneLamp extends Solid { - protected $id = self::LIT_REDSTONE_LAMP; + protected $id = self::LIT_REDSTONE_LAMP; - public function __construct($meta = 0){ - $this->meta = $meta; - } + public function __construct($meta = 0){ + $this->meta = $meta; + } - public function getName(){ - return "Lit Redstone Lamp"; - } + public function getName(){ + return "Lit Redstone Lamp"; + } } diff --git a/src/pocketmine/block/LitRedstoneTorch.php b/src/pocketmine/block/LitRedstoneTorch.php index 3ae7410c1..46d05fc1a 100644 --- a/src/pocketmine/block/LitRedstoneTorch.php +++ b/src/pocketmine/block/LitRedstoneTorch.php @@ -23,13 +23,13 @@ namespace pocketmine\block; class LitRedstoneTorch extends Solid { - protected $id = self::REDSTONE_TORCH; + protected $id = self::REDSTONE_TORCH; - public function __construct($meta = 0){ - $this->meta = $meta; - } + public function __construct($meta = 0){ + $this->meta = $meta; + } - public function getName(){ - return "Lit Redstone Torch"; - } + public function getName(){ + return "Lit Redstone Torch"; + } } diff --git a/src/pocketmine/block/NetherBrickFence.php b/src/pocketmine/block/NetherBrickFence.php index 62a182375..7d06e9f42 100644 --- a/src/pocketmine/block/NetherBrickFence.php +++ b/src/pocketmine/block/NetherBrickFence.php @@ -30,7 +30,7 @@ class NetherBrickFence extends Transparent { public function __construct($meta = 0){ $this->meta = $meta; } - + public function getBreakTime(Item $item){ if ($item instanceof Air){ //Breaking by hand @@ -45,15 +45,15 @@ class NetherBrickFence extends Transparent { public function getHardness(){ return 2; } - + public function getToolType(){ return Tool::TYPE_PICKAXE; } - + public function getName(){ return "Nether Brick Fence"; } - + public function canConnect(Block $block){ //TODO: activate comments when the NetherBrickFenceGate class has been created. return ($block instanceof NetherBrickFence /* or $block instanceof NetherBrickFenceGate */) ? true : $block->isSolid() and !$block->isTransparent(); diff --git a/src/pocketmine/block/NoteBlock.php b/src/pocketmine/block/NoteBlock.php index d44a92263..0ae5cdda3 100644 --- a/src/pocketmine/block/NoteBlock.php +++ b/src/pocketmine/block/NoteBlock.php @@ -23,13 +23,13 @@ namespace pocketmine\block; class NoteBlock extends Solid { - protected $id = self::NOTE_BLOCK; + protected $id = self::NOTE_BLOCK; - public function __construct($meta = 0){ - $this->meta = $meta; - } + public function __construct($meta = 0){ + $this->meta = $meta; + } - public function getName(){ - return "Note Block"; - } + public function getName(){ + return "Note Block"; + } } diff --git a/src/pocketmine/block/PoweredRail.php b/src/pocketmine/block/PoweredRail.php index ec8eb9238..a34d67a54 100644 --- a/src/pocketmine/block/PoweredRail.php +++ b/src/pocketmine/block/PoweredRail.php @@ -22,13 +22,13 @@ namespace pocketmine\block; class PoweredRail extends Solid { - protected $id = self::POWERED_RAIL; + protected $id = self::POWERED_RAIL; - public function __construct($meta = 0){ - $this->meta = $meta; - } + public function __construct($meta = 0){ + $this->meta = $meta; + } - public function getName(){ - return "Powered Rail"; - } + public function getName(){ + return "Powered Rail"; + } } diff --git a/src/pocketmine/block/Quartz.php b/src/pocketmine/block/Quartz.php index cbf0c432c..d910f2e69 100644 --- a/src/pocketmine/block/Quartz.php +++ b/src/pocketmine/block/Quartz.php @@ -30,7 +30,7 @@ class Quartz extends Solid{ const QUARTZ_CHISELED = 1; const QUARTZ_PILLAR = 2; const QUARTZ_PILLAR2 = 3; - + protected $id = self::QUARTZ_BLOCK; public function __construct($meta = 0){ diff --git a/src/pocketmine/block/Rail.php b/src/pocketmine/block/Rail.php index 3712bffcf..7121bae83 100644 --- a/src/pocketmine/block/Rail.php +++ b/src/pocketmine/block/Rail.php @@ -23,13 +23,13 @@ namespace pocketmine\block; class Rail extends Solid { - protected $id = self::RAIL; + protected $id = self::RAIL; - public function __construct($meta = 0){ - $this->meta = $meta; - } + public function __construct($meta = 0){ + $this->meta = $meta; + } - public function getName(){ - return "Rail"; - } + public function getName(){ + return "Rail"; + } } diff --git a/src/pocketmine/block/RedstoneLamp.php b/src/pocketmine/block/RedstoneLamp.php index e3e3f16ca..dff45170b 100644 --- a/src/pocketmine/block/RedstoneLamp.php +++ b/src/pocketmine/block/RedstoneLamp.php @@ -23,13 +23,13 @@ namespace pocketmine\block; class RedstoneLamp extends Solid { - protected $id = self::REDSTONE_LAMP; + protected $id = self::REDSTONE_LAMP; - public function __construct($meta = 0){ - $this->meta = $meta; - } + public function __construct($meta = 0){ + $this->meta = $meta; + } - public function getName(){ - return "Redstone Lamp"; - } + public function getName(){ + return "Redstone Lamp"; + } } diff --git a/src/pocketmine/block/RedstoneTorch.php b/src/pocketmine/block/RedstoneTorch.php index 1c752a56e..39bbd11ac 100644 --- a/src/pocketmine/block/RedstoneTorch.php +++ b/src/pocketmine/block/RedstoneTorch.php @@ -23,13 +23,13 @@ namespace pocketmine\block; class RedstoneTorch extends Solid { - protected $id = self::REDSTONE_TORCH; + protected $id = self::REDSTONE_TORCH; - public function __construct($meta = 0){ - $this->meta = $meta; - } + public function __construct($meta = 0){ + $this->meta = $meta; + } - public function getName(){ - return "Redstone Torch"; - } + public function getName(){ + return "Redstone Torch"; + } } diff --git a/src/pocketmine/block/StoneBricks.php b/src/pocketmine/block/StoneBricks.php index 461a39e4e..55d8d168a 100644 --- a/src/pocketmine/block/StoneBricks.php +++ b/src/pocketmine/block/StoneBricks.php @@ -53,7 +53,7 @@ class StoneBricks extends Solid{ ]; return $names[$this->meta & 0x03]; } - + public function getDrops(Item $item){ if($item->isPickaxe() >= Tool::TIER_WOODEN){ return [ diff --git a/src/pocketmine/block/StoneButton.php b/src/pocketmine/block/StoneButton.php index e17a30bbb..3b8e3dce4 100644 --- a/src/pocketmine/block/StoneButton.php +++ b/src/pocketmine/block/StoneButton.php @@ -23,13 +23,13 @@ namespace pocketmine\block; class StoneButton extends Solid { - protected $id = self::STONE_BUTTON; + protected $id = self::STONE_BUTTON; - public function __construct($meta = 0){ - $this->meta = $meta; - } + public function __construct($meta = 0){ + $this->meta = $meta; + } - public function getName(){ - return "Stone Button"; - } + public function getName(){ + return "Stone Button"; + } } diff --git a/src/pocketmine/block/TallGrass.php b/src/pocketmine/block/TallGrass.php index c912a0787..9214a3442 100644 --- a/src/pocketmine/block/TallGrass.php +++ b/src/pocketmine/block/TallGrass.php @@ -46,7 +46,7 @@ class TallGrass extends Flowable{ ]; return $names[$this->meta & 0x03]; } - + public function place(Item $item, Block $block, Block $target, $face, $fx, $fy, $fz, Player $player = null){ $down = $this->getSide(0); if($down->getId() === self::GRASS){ diff --git a/src/pocketmine/block/TrappedChest.php b/src/pocketmine/block/TrappedChest.php index b2ecb204c..e3b81afa4 100644 --- a/src/pocketmine/block/TrappedChest.php +++ b/src/pocketmine/block/TrappedChest.php @@ -22,9 +22,9 @@ namespace pocketmine\block; class TrappedChest extends Chest{ - + //TODO: Redstone! - + protected $id = self::TRAPPED_CHEST; public function getName(){ diff --git a/src/pocketmine/block/Tripwire.php b/src/pocketmine/block/Tripwire.php index 7dd33fd8a..ac3e40cbc 100644 --- a/src/pocketmine/block/Tripwire.php +++ b/src/pocketmine/block/Tripwire.php @@ -23,13 +23,13 @@ namespace pocketmine\block; class Tripwire extends Solid { - protected $id = self::TRIPWIRE; + protected $id = self::TRIPWIRE; - public function __construct($meta = 0){ - $this->meta = $meta; - } + public function __construct($meta = 0){ + $this->meta = $meta; + } - public function getName(){ - return "Tripwire"; - } + public function getName(){ + return "Tripwire"; + } } diff --git a/src/pocketmine/block/TripwireHook.php b/src/pocketmine/block/TripwireHook.php index 38365d376..a94325370 100644 --- a/src/pocketmine/block/TripwireHook.php +++ b/src/pocketmine/block/TripwireHook.php @@ -23,13 +23,13 @@ namespace pocketmine\block; class TripwireHook extends Solid { - protected $id = self::TRIPWIRE_HOOK; + protected $id = self::TRIPWIRE_HOOK; - public function __construct($meta = 0){ - $this->meta = $meta; - } + public function __construct($meta = 0){ + $this->meta = $meta; + } - public function getName(){ - return "Tripwire Hook"; - } + public function getName(){ + return "Tripwire Hook"; + } } diff --git a/src/pocketmine/block/WeightedPressurePlateHeavy.php b/src/pocketmine/block/WeightedPressurePlateHeavy.php index 64a4650ac..5592bea3a 100644 --- a/src/pocketmine/block/WeightedPressurePlateHeavy.php +++ b/src/pocketmine/block/WeightedPressurePlateHeavy.php @@ -23,13 +23,13 @@ namespace pocketmine\block; class WeightedPressurePlateHeavy extends Solid { - protected $id = self::WEIGHTED_PRESSURE_PLATE_HEAVY; + protected $id = self::WEIGHTED_PRESSURE_PLATE_HEAVY; - public function __construct($meta = 0){ - $this->meta = $meta; - } + public function __construct($meta = 0){ + $this->meta = $meta; + } - public function getName(){ - return "Weighted Pressure Plate Heavy"; - } + public function getName(){ + return "Weighted Pressure Plate Heavy"; + } } diff --git a/src/pocketmine/block/WeightedPressurePlateLight.php b/src/pocketmine/block/WeightedPressurePlateLight.php index 93b73feb9..e1413f42b 100644 --- a/src/pocketmine/block/WeightedPressurePlateLight.php +++ b/src/pocketmine/block/WeightedPressurePlateLight.php @@ -23,13 +23,13 @@ namespace pocketmine\block; class WeightedPressurePlateLight extends Solid { - protected $id = self::WEIGHTED_PRESSURE_PLATE_LIGHT; + protected $id = self::WEIGHTED_PRESSURE_PLATE_LIGHT; - public function __construct($meta = 0){ - $this->meta = $meta; - } + public function __construct($meta = 0){ + $this->meta = $meta; + } - public function getName(){ - return "Weighted Pressure Plate Light"; - } + public function getName(){ + return "Weighted Pressure Plate Light"; + } } diff --git a/src/pocketmine/block/WoodenButton.php b/src/pocketmine/block/WoodenButton.php index 63d625646..a11376d45 100644 --- a/src/pocketmine/block/WoodenButton.php +++ b/src/pocketmine/block/WoodenButton.php @@ -23,13 +23,13 @@ namespace pocketmine\block; class WoodenButton extends Solid { - protected $id = self::WOODEN_BUTTON; + protected $id = self::WOODEN_BUTTON; - public function __construct($meta = 0){ - $this->meta = $meta; - } + public function __construct($meta = 0){ + $this->meta = $meta; + } - public function getName(){ - return "Wooden Button"; - } + public function getName(){ + return "Wooden Button"; + } } diff --git a/src/pocketmine/block/WoodenPressurePlate.php b/src/pocketmine/block/WoodenPressurePlate.php index 792a0e86e..da81ff6a4 100644 --- a/src/pocketmine/block/WoodenPressurePlate.php +++ b/src/pocketmine/block/WoodenPressurePlate.php @@ -22,7 +22,7 @@ namespace pocketmine\block; class WoodenPressurePlate extends Solid{ - + protected $id = self::WOODEN_PRESSURE_PLATE; public function __construct($meta = 0) { diff --git a/src/pocketmine/event/player/PlayerInteractEvent.php b/src/pocketmine/event/player/PlayerInteractEvent.php index 27aa49f32..905601fa8 100644 --- a/src/pocketmine/event/player/PlayerInteractEvent.php +++ b/src/pocketmine/event/player/PlayerInteractEvent.php @@ -52,7 +52,7 @@ class PlayerInteractEvent extends PlayerEvent implements Cancellable{ /** @var \pocketmine\item\Item */ protected $item; - + protected $action; public function __construct(Player $player, Item $item, Vector3 $block, $face, $action = PlayerInteractEvent::RIGHT_CLICK_BLOCK){ diff --git a/src/pocketmine/inventory/CraftingManager.php b/src/pocketmine/inventory/CraftingManager.php index fbbbcd6e5..87db62d85 100644 --- a/src/pocketmine/inventory/CraftingManager.php +++ b/src/pocketmine/inventory/CraftingManager.php @@ -52,7 +52,7 @@ class CraftingManager{ if(count($recipe["Result"]) == 1){ $first = $recipe["Result"][0]; $result = new ShapelessRecipe(Item::get($first["ID"], $first["Damage"], $first["Count"])); - + foreach($recipe["Ingredients"] as $ingredient){ $result->addIngredient(Item::get($ingredient["ID"], $ingredient["Damage"], $ingredient["Count"])); } diff --git a/src/pocketmine/inventory/PlayerInventory.php b/src/pocketmine/inventory/PlayerInventory.php index bf038b4d5..594c2ab02 100644 --- a/src/pocketmine/inventory/PlayerInventory.php +++ b/src/pocketmine/inventory/PlayerInventory.php @@ -399,7 +399,7 @@ class PlayerInventory extends BaseInventory{ $index = $this->getHotbarSlotIndex($i); $pk->hotbar[] = $index <= -1 ? -1 : $index + $this->getHotbarSize(); } - + if($player->getGamemode() & 0x01 === 0x01){ //Send special inventory for creative or spectator $pk2 = new ContainerSetContentPacket(); $pk2->windowid = ContainerSetContentPacket::SPECIAL_CREATIVE; diff --git a/src/pocketmine/item/Item.php b/src/pocketmine/item/Item.php index 14c80a4af..0c6849be8 100644 --- a/src/pocketmine/item/Item.php +++ b/src/pocketmine/item/Item.php @@ -226,7 +226,7 @@ class Item implements ItemIds{ self::clearCreativeItems(); $creativeItems = new Config(Server::getInstance()->getFilePath() . "src/pocketmine/resources/creativeitems.json", Config::JSON, []); - + foreach($creativeItems->getAll() as $item){ self::addCreativeItem(Item::get($item["ID"], $item["Damage"])); } diff --git a/src/pocketmine/item/ItemIds.php b/src/pocketmine/item/ItemIds.php index 6a3e539ff..166e64a57 100644 --- a/src/pocketmine/item/ItemIds.php +++ b/src/pocketmine/item/ItemIds.php @@ -18,13 +18,13 @@ * * */ - + namespace pocketmine\item; - + use pocketmine\block\BlockIds; interface ItemIds extends BlockIds{ - + //All BlockIds are also accessible through this interface. const IRON_SHOVEL = 256; const IRON_PICKAXE = 257; @@ -105,7 +105,7 @@ interface ItemIds extends BlockIds{ const SNOWBALL = 332; const BOAT = 333; const LEATHER = 334; - + const BRICK = 336; const CLAY = 337; const SUGARCANE = 338; const SUGAR_CANE = 338; const SUGAR_CANES = 338; @@ -113,7 +113,7 @@ interface ItemIds extends BlockIds{ const BOOK = 340; const SLIMEBALL = 341; const MINECART_WITH_CHEST = 342; - + const EGG = 344; const COMPASS = 345; const FISHING_ROD = 346; @@ -156,7 +156,7 @@ interface ItemIds extends BlockIds{ const SPAWN_EGG = 383; const BOTTLE_O_ENCHANTING = 384; const ENCHANTING_BOTTLE = 384; const FIRE_CHARGE = 385; - + const EMERALD = 388; const ITEM_FRAME = 389; const FLOWER_POT = 390; @@ -168,7 +168,7 @@ interface ItemIds extends BlockIds{ const GOLDEN_CARROT = 396; const MOB_HEAD = 397; const SKULL = 397; const CARROT_ON_A_STICK = 398; - + const PUMPKIN_PIE = 400; const ENCHANTED_BOOK = 403; @@ -178,7 +178,7 @@ interface ItemIds extends BlockIds{ const NETHER_QUARTZ = 406; const MINECART_WITH_TNT = 407; const MINECART_WITH_HOPPER = 408; - + const HOPPER = 410; const RAW_RABBIT = 411; const COOKED_RABBIT = 412; @@ -191,18 +191,18 @@ interface ItemIds extends BlockIds{ const DIAMOND_HORSE_ARMOR = 419; const LEAD = 420; const LEASH = 420; const NAMETAG = 421; - + const RAW_MUTTON = 423; const COOKED_MUTTON = 424; - + const SPRUCE_DOOR = 427; const BIRCH_DOOR = 428; const JUNGLE_DOOR = 429; const ACACIA_DOOR = 430; const DARK_OAK_DOOR = 431; - + const SPLASH_POTION = 438; - + const BEETROOT = 457; const BEETROOT_SEEDS = 458; const BEETROOT_SEED = 458; const BEETROOT_SOUP = 459; diff --git a/src/pocketmine/level/Level.php b/src/pocketmine/level/Level.php index 64723a155..0bfdcc234 100644 --- a/src/pocketmine/level/Level.php +++ b/src/pocketmine/level/Level.php @@ -426,7 +426,7 @@ class Level implements ChunkManager, Metadatable{ $this->blockCache = []; $this->temporalPosition = null; } - + public function addSound(Sound $sound, array $players = null){ $pk = $sound->encode(); @@ -450,7 +450,7 @@ class Level implements ChunkManager, Metadatable{ } } } - + public function addParticle(Particle $particle, array $players = null){ $pk = $particle->encode(); @@ -1065,7 +1065,7 @@ class Level implements ChunkManager, Metadatable{ $maxX = Math::ceilFloat($bb->maxX); $maxY = Math::ceilFloat($bb->maxY); $maxZ = Math::ceilFloat($bb->maxZ); - + $collides = []; if($targetFirst){ @@ -1581,9 +1581,9 @@ class Level implements ChunkManager, Metadatable{ $this->addParticle(new DestroyBlockParticle($target->add(0.5), $target), $players); } - + $target->onBreak($item); - + $tile = $this->getTile($target); if($tile !== null){ if($tile instanceof InventoryHolder){ diff --git a/src/pocketmine/level/format/mcregion/Chunk.php b/src/pocketmine/level/format/mcregion/Chunk.php index bb8f74d6b..d37225a26 100644 --- a/src/pocketmine/level/format/mcregion/Chunk.php +++ b/src/pocketmine/level/format/mcregion/Chunk.php @@ -46,7 +46,7 @@ class Chunk extends BaseFullChunk{ $this->nbt = new CompoundTag("Level", []); return; } - + $this->nbt = $nbt; if(isset($this->nbt->Entities) and $this->nbt->Entities instanceof ListTag){ @@ -313,7 +313,7 @@ class Chunk extends BaseFullChunk{ return null; } } - + public static function fromFastBinary($data, LevelProvider $provider = null){ try{ @@ -351,7 +351,7 @@ class Chunk extends BaseFullChunk{ return null; } } - + public function toFastBinary(){ return Binary::writeInt($this->x) . diff --git a/src/pocketmine/level/generator/object/SpruceTree.php b/src/pocketmine/level/generator/object/SpruceTree.php index b18ac8986..090958728 100644 --- a/src/pocketmine/level/generator/object/SpruceTree.php +++ b/src/pocketmine/level/generator/object/SpruceTree.php @@ -39,7 +39,7 @@ class SpruceTree extends Tree{ $this->treeHeight = $random->nextBoundedInt(4) + 6; $topSize = $this->treeHeight - (1 + $random->nextBoundedInt(2)); - $lRadius = 2 + $random->nextBoundedInt(2); + $lRadius = 2 + $random->nextBoundedInt(2); $this->placeTrunk($level, $x, $y, $z, $random, $this->treeHeight - $random->nextBoundedInt(3)); @@ -54,7 +54,7 @@ class SpruceTree extends Tree{ $xOff = abs($xx - $x); for($zz = $z - $radius; $zz <= $z + $radius; ++$zz){ $zOff = abs($zz - $z); - if($xOff === $radius and $zOff === $radius and $radius > 0){ + if($xOff === $radius and $zOff === $radius and $radius > 0){ continue; } @@ -62,10 +62,10 @@ class SpruceTree extends Tree{ $level->setBlockIdAt($xx, $yyy, $zz, $this->leafBlock); $level->setBlockDataAt($xx, $yyy, $zz, $this->type); } - } - } + } + } - if($radius >= $maxR){ + if($radius >= $maxR){ $radius = $minR; $minR = 1; if(++$maxR > $lRadius){ diff --git a/src/pocketmine/level/particle/DestroyBlockParticle.php b/src/pocketmine/level/particle/DestroyBlockParticle.php index bf2b069d7..783159c27 100644 --- a/src/pocketmine/level/particle/DestroyBlockParticle.php +++ b/src/pocketmine/level/particle/DestroyBlockParticle.php @@ -26,14 +26,14 @@ use pocketmine\math\Vector3; use pocketmine\network\protocol\LevelEventPacket; class DestroyBlockParticle extends Particle{ - + protected $data; public function __construct(Vector3 $pos, Block $b){ parent::__construct($pos->x, $pos->y, $pos->z); $this->data = $b->getId() + ($b->getDamage() << 12); } - + public function encode(){ $pk = new LevelEventPacket; $pk->evid = LevelEventPacket::EVENT_PARTICLE_DESTROY; @@ -41,7 +41,7 @@ class DestroyBlockParticle extends Particle{ $pk->y = $this->y; $pk->z = $this->z; $pk->data = $this->data; - + return $pk; } } diff --git a/src/pocketmine/level/particle/FloatingTextParticle.php b/src/pocketmine/level/particle/FloatingTextParticle.php index e58ea87ac..800f33366 100644 --- a/src/pocketmine/level/particle/FloatingTextParticle.php +++ b/src/pocketmine/level/particle/FloatingTextParticle.php @@ -53,11 +53,11 @@ class FloatingTextParticle extends Particle{ public function setTitle($title){ $this->title = $title; } - + public function isInvisible(){ return $this->invisible; } - + public function setInvisible($value = true){ $this->invisible = (bool) $value; } @@ -75,7 +75,7 @@ class FloatingTextParticle extends Particle{ } if(!$this->invisible){ - + $pk = new AddEntityPacket(); $pk->eid = $this->entityId; $pk->type = ItemEntity::NETWORK_ID; @@ -94,11 +94,11 @@ class FloatingTextParticle extends Particle{ Entity::DATA_NAMETAG => [Entity::DATA_TYPE_STRING, $this->title . ($this->text !== "" ? "\n" . $this->text : "")], Entity::DATA_SHOW_NAMETAG => [Entity::DATA_TYPE_BYTE, 1], Entity::DATA_NO_AI => [Entity::DATA_TYPE_BYTE, 1] - ]; + ]; $p[] = $pk; } - + return $p; } } diff --git a/src/pocketmine/level/particle/GenericParticle.php b/src/pocketmine/level/particle/GenericParticle.php index d35fdfe4a..657e03475 100644 --- a/src/pocketmine/level/particle/GenericParticle.php +++ b/src/pocketmine/level/particle/GenericParticle.php @@ -25,7 +25,7 @@ use pocketmine\math\Vector3; use pocketmine\network\protocol\LevelEventPacket; class GenericParticle extends Particle{ - + protected $id; protected $data; @@ -34,7 +34,7 @@ class GenericParticle extends Particle{ $this->id = $id & 0xFFF; $this->data = $data; } - + public function encode(){ $pk = new LevelEventPacket; $pk->evid = LevelEventPacket::EVENT_ADD_PARTICLE_MASK | $this->id; @@ -42,7 +42,7 @@ class GenericParticle extends Particle{ $pk->y = $this->y; $pk->z = $this->z; $pk->data = $this->data; - + return $pk; } } diff --git a/src/pocketmine/level/particle/MobSpawnParticle.php b/src/pocketmine/level/particle/MobSpawnParticle.php index 5c3e22021..0b5001158 100644 --- a/src/pocketmine/level/particle/MobSpawnParticle.php +++ b/src/pocketmine/level/particle/MobSpawnParticle.php @@ -25,16 +25,16 @@ use pocketmine\math\Vector3; use pocketmine\network\protocol\LevelEventPacket; class MobSpawnParticle extends Particle{ - + protected $width; protected $height; - + public function __construct(Vector3 $pos, $width = 0, $height = 0){ parent::__construct($pos->x, $pos->y, $pos->z); $this->width = $width; $this->height = $height; } - + public function encode(){ $pk = new LevelEventPacket; $pk->evid = LevelEventPacket::EVENT_PARTICLE_SPAWN; @@ -42,7 +42,7 @@ class MobSpawnParticle extends Particle{ $pk->y = $this->y; $pk->z = $this->z; $pk->data = ($this->width & 0xff) + (($this->height & 0xff) << 8); - + return $pk; } } diff --git a/src/pocketmine/level/particle/Particle.php b/src/pocketmine/level/particle/Particle.php index 2adf99250..c9c70d1a0 100644 --- a/src/pocketmine/level/particle/Particle.php +++ b/src/pocketmine/level/particle/Particle.php @@ -58,7 +58,7 @@ abstract class Particle extends Vector3{ const TYPE_VILLAGER_ANGRY = 30; const TYPE_VILLAGER_HAPPY = 31; const TYPE_ENCHANTMENT_TABLE = 32; - + /** * @return DataPacket|DataPacket[] */ diff --git a/src/pocketmine/level/sound/GenericSound.php b/src/pocketmine/level/sound/GenericSound.php index f5606e966..e9f5fdcf2 100644 --- a/src/pocketmine/level/sound/GenericSound.php +++ b/src/pocketmine/level/sound/GenericSound.php @@ -25,25 +25,25 @@ use pocketmine\math\Vector3; use pocketmine\network\protocol\LevelEventPacket; class GenericSound extends Sound{ - + public function __construct(Vector3 $pos, $id, $pitch = 0){ parent::__construct($pos->x, $pos->y, $pos->z); $this->id = (int) $id; $this->pitch = (float) $pitch * 1000; } - + protected $pitch = 0; protected $id; - + public function getPitch(){ return $this->pitch / 1000; } - + public function setPitch($pitch){ $this->pitch = (float) $pitch * 1000; } - - + + public function encode(){ $pk = new LevelEventPacket; $pk->evid = $this->id; @@ -51,7 +51,7 @@ class GenericSound extends Sound{ $pk->y = $this->y; $pk->z = $this->z; $pk->data = (int) $this->pitch; - + return $pk; } diff --git a/src/pocketmine/level/sound/Sound.php b/src/pocketmine/level/sound/Sound.php index ad04ff68d..9ec5ec4e5 100644 --- a/src/pocketmine/level/sound/Sound.php +++ b/src/pocketmine/level/sound/Sound.php @@ -25,7 +25,7 @@ use pocketmine\math\Vector3; use pocketmine\network\protocol\DataPacket; abstract class Sound extends Vector3{ - + /** * @return DataPacket|DataPacket[] */ diff --git a/src/pocketmine/nbt/NBT.php b/src/pocketmine/nbt/NBT.php index 6d295fd4c..f75cae854 100644 --- a/src/pocketmine/nbt/NBT.php +++ b/src/pocketmine/nbt/NBT.php @@ -108,7 +108,7 @@ class NBT{ } $item = Item::get($tag->id->getValue(), !isset($tag->Damage) ? 0 : $tag->Damage->getValue(), $tag->Count->getValue()); - + if(isset($tag->tag) and $tag->tag instanceof CompoundTag){ $item->setNamedTag($tag->tag); } diff --git a/src/pocketmine/nbt/tag/StringTag.php b/src/pocketmine/nbt/tag/StringTag.php index 25836ecbb..11350649c 100644 --- a/src/pocketmine/nbt/tag/StringTag.php +++ b/src/pocketmine/nbt/tag/StringTag.php @@ -26,7 +26,7 @@ use pocketmine\nbt\NBT; #include class StringTag extends NamedTag{ - + public function getType(){ return NBT::TAG_String; } diff --git a/src/pocketmine/network/protocol/FullChunkDataPacket.php b/src/pocketmine/network/protocol/FullChunkDataPacket.php index 994c386da..38ad4eb31 100644 --- a/src/pocketmine/network/protocol/FullChunkDataPacket.php +++ b/src/pocketmine/network/protocol/FullChunkDataPacket.php @@ -26,7 +26,7 @@ namespace pocketmine\network\protocol; class FullChunkDataPacket extends DataPacket{ const NETWORK_ID = Info::FULL_CHUNK_DATA_PACKET; - + const ORDER_COLUMNS = 0; const ORDER_LAYERED = 1; @@ -41,9 +41,9 @@ class FullChunkDataPacket extends DataPacket{ public function encode(){ $this->reset(); - $this->putInt($this->chunkX); - $this->putInt($this->chunkZ); - $this->putByte($this->order); + $this->putInt($this->chunkX); + $this->putInt($this->chunkZ); + $this->putByte($this->order); $this->putInt(strlen($this->data)); $this->put($this->data); } diff --git a/src/pocketmine/network/protocol/PlayStatusPacket.php b/src/pocketmine/network/protocol/PlayStatusPacket.php index 4ce67ea37..22eaf8fe2 100644 --- a/src/pocketmine/network/protocol/PlayStatusPacket.php +++ b/src/pocketmine/network/protocol/PlayStatusPacket.php @@ -26,7 +26,7 @@ namespace pocketmine\network\protocol; class PlayStatusPacket extends DataPacket{ const NETWORK_ID = Info::PLAY_STATUS_PACKET; - + const LOGIN_SUCCESS = 0; const LOGIN_FAILED_CLIENT = 1; const LOGIN_FAILED_SERVER = 2; diff --git a/src/pocketmine/network/protocol/UpdateBlockPacket.php b/src/pocketmine/network/protocol/UpdateBlockPacket.php index ad2b0503e..673e066bd 100644 --- a/src/pocketmine/network/protocol/UpdateBlockPacket.php +++ b/src/pocketmine/network/protocol/UpdateBlockPacket.php @@ -29,7 +29,7 @@ class UpdateBlockPacket extends DataPacket{ const FLAG_NONE = 0b0000; const FLAG_NEIGHBORS = 0b0001; - const FLAG_NETWORK = 0b0010; + const FLAG_NETWORK = 0b0010; const FLAG_NOGRAPHIC = 0b0100; const FLAG_PRIORITY = 0b1000; diff --git a/src/pocketmine/network/query/QueryHandler.php b/src/pocketmine/network/query/QueryHandler.php index e8d396077..0d06f49e9 100644 --- a/src/pocketmine/network/query/QueryHandler.php +++ b/src/pocketmine/network/query/QueryHandler.php @@ -44,7 +44,7 @@ class QueryHandler{ The Query protocol is built on top of the existing Minecraft PE UDP network stack. Because the 0xFE packet does not exist in the MCPE protocol, we can identify Query packets and remove them from the packet queue. - + Then, the Query class handles itself sending the packets in raw form, because packets can conflict with the MCPE ones. */ diff --git a/src/pocketmine/tile/FlowerPot.php b/src/pocketmine/tile/FlowerPot.php index 0282f600b..099ceaeef 100644 --- a/src/pocketmine/tile/FlowerPot.php +++ b/src/pocketmine/tile/FlowerPot.php @@ -39,7 +39,7 @@ class FlowerPot extends Spawnable{ } parent::__construct($chunk, $nbt); } - + public function canAddItem(Item $item): bool{ if(!$this->isEmpty()){ return false; @@ -61,11 +61,11 @@ class FlowerPot extends Spawnable{ return false; } } - + public function getItem(): Item{ return Item::get((int) ($this->namedtag["item"] ?? 0), (int) ($this->namedtag["mData"] ?? 0), 1); } - + public function setItem(Item $item){ $this->namedtag["item"] = $item->getId(); $this->namedtag["mData"] = $item->getDamage(); @@ -76,15 +76,15 @@ class FlowerPot extends Spawnable{ $this->level->clearChunkCache($this->chunk->getX(), $this->chunk->getZ()); } } - + public function removeItem(){ $this->setItem(Item::get(Item::AIR)); } - + public function isEmpty(): bool{ return $this->getItem()->getId() === Item::AIR; } - + public function getSpawnCompound(): CompoundTag{ return new CompoundTag("", [ new StringTag("id", Tile::FLOWER_POT), diff --git a/src/pocketmine/utils/BinaryStream.php b/src/pocketmine/utils/BinaryStream.php index 06362c7f8..22c57c525 100644 --- a/src/pocketmine/utils/BinaryStream.php +++ b/src/pocketmine/utils/BinaryStream.php @@ -33,7 +33,7 @@ class BinaryStream extends \stdClass{ public $offset; public $buffer; - + public function __construct($buffer = "", $offset = 0){ $this->buffer = $buffer; $this->offset = $offset; @@ -196,19 +196,19 @@ class BinaryStream extends \stdClass{ public function getSlot(){ $id = $this->getSignedShort(); - + if($id <= 0){ return Item::get(0, 0, 0); } - + $cnt = $this->getByte(); - + $data = $this->getShort(); - + $nbtLen = $this->getLShort(); - + $nbt = ""; - + if($nbtLen > 0){ $nbt = $this->get($nbtLen); } @@ -226,14 +226,14 @@ class BinaryStream extends \stdClass{ $this->putShort(0); return; } - + $this->putShort($item->getId()); $this->putByte($item->getCount()); $this->putShort($item->getDamage() === null ? -1 : $item->getDamage()); $nbt = $item->getCompoundTag(); $this->putLShort(strlen($nbt)); $this->put($nbt); - + } public function getString(){ diff --git a/src/pocketmine/utils/TextFormat.php b/src/pocketmine/utils/TextFormat.php index 759d20fd4..b0055fe82 100644 --- a/src/pocketmine/utils/TextFormat.php +++ b/src/pocketmine/utils/TextFormat.php @@ -26,7 +26,7 @@ namespace pocketmine\utils; */ abstract class TextFormat{ const ESCAPE = "\xc2\xa7"; //ยง - + const BLACK = TextFormat::ESCAPE . "0"; const DARK_BLUE = TextFormat::ESCAPE . "1"; const DARK_GREEN = TextFormat::ESCAPE . "2";