MainLogger can now have debug level disabled

This commit is contained in:
Shoghi Cervantes
2014-05-29 00:08:02 +02:00
parent 7bd6f2ed91
commit 8d40f843cf
38 changed files with 132 additions and 104 deletions

View File

@ -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;
}

View File

@ -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;
}
}

View File

@ -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;
}
}

View File

@ -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;
}
}