mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 09:56:06 +00:00
MainLogger can now have debug level disabled
This commit is contained in:
@ -37,6 +37,7 @@ class BlockMetadataStore extends MetadataStore{
|
||||
if(!($block instanceof Block)){
|
||||
throw new \InvalidArgumentException("Argument must be a Block instance");
|
||||
}
|
||||
|
||||
return $block->x . ":" . $block->y . ":" . $block->z . ":" . $metadataKey;
|
||||
}
|
||||
|
||||
|
@ -29,6 +29,7 @@ class EntityMetadataStore extends MetadataStore{
|
||||
if(!($entity instanceof Entity)){
|
||||
throw new \InvalidArgumentException("Argument must be an Entity instance");
|
||||
}
|
||||
|
||||
return $entity->getID() . ":" . $metadataKey;
|
||||
}
|
||||
}
|
@ -29,6 +29,7 @@ class LevelMetadataStore extends MetadataStore{
|
||||
if(!($level instanceof Level)){
|
||||
throw new \InvalidArgumentException("Argument must be a Level instance");
|
||||
}
|
||||
|
||||
return strtolower($level->getName()) . ":" . $metadataKey;
|
||||
}
|
||||
}
|
@ -29,6 +29,7 @@ class PlayerMetadataStore extends MetadataStore{
|
||||
if(!($player instanceof OfflinePlayer)){
|
||||
throw new \InvalidArgumentException("Argument must be an OfflinePlayer instance");
|
||||
}
|
||||
|
||||
return strtolower($player->getName()) . ":" . $metadataKey;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user