-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #21 from KurtThiemann/master
Add support for Minecraft Bedrock Edition content log files
- Loading branch information
Showing
5 changed files
with
801 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<?php | ||
|
||
namespace Aternos\Codex\Minecraft\Analyser; | ||
|
||
class BedrockContentAnalyser extends MinecraftAnalyser | ||
{ | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
<?php | ||
|
||
namespace Aternos\Codex\Minecraft\Log; | ||
|
||
use Aternos\Codex\Analyser\AnalyserInterface; | ||
use Aternos\Codex\Minecraft\Analyser\BedrockAnalyser; | ||
use Aternos\Codex\Minecraft\Analyser\BedrockContentAnalyser; | ||
use Aternos\Codex\Minecraft\Parser\Parser; | ||
use Aternos\Codex\Parser\ParserInterface; | ||
|
||
class BedrockContentLog extends MinecraftServerLog | ||
{ | ||
protected static $pattern = '/^(((?:\d{2}:){2}(?:\d{2}))\[\w+\]\[(\w+)\]).*$/'; | ||
|
||
/** | ||
* @return ParserInterface | ||
*/ | ||
public static function getDefaultParser() | ||
{ | ||
return (new Parser()) | ||
->setPattern(static::$pattern) | ||
->setTimeFormat('H:i:s') | ||
->setMatches([Parser::PREFIX, Parser::TIME, Parser::LEVEL]); | ||
} | ||
|
||
/** | ||
* @inheritDoc | ||
*/ | ||
public static function getDefaultAnalyser() | ||
{ | ||
return new BedrockContentAnalyser(); | ||
} | ||
|
||
/** | ||
* @inheritDoc | ||
*/ | ||
public function getServerSoftware(): string | ||
{ | ||
return "Bedrock"; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
10:25:19[Blocks][inform]-block_definitions | development_behavior_packs/Ores Plus Add-On [BP] v2.1.0 | blocks/deepslate_sapphire_ore.json | oresplus:deepslate_sapphire_ore | components | minecraft:creative_category | { | ||
"category" : "Nature", | ||
"group" : "itemGroup.name.ore" | ||
} | ||
|
||
|
||
10:25:19[Blocks][error]-block_definitions | development_behavior_packs/Ores Plus Add-On [BP] v2.1.0 | blocks/deepslate_sapphire_ore.json | oresplus:deepslate_sapphire_ore | components | minecraft:creative_category | child 'minecraft:creative_category' not valid here. | ||
|
||
10:25:19[Blocks][inform]-block_definitions | development_behavior_packs/Ores Plus Add-On [BP] v2.1.0 | blocks/deepslate_sapphire_ore.json | oresplus:deepslate_sapphire_ore | components | minecraft:on_player_destroyed | { | ||
"event" : "destroyed", | ||
"target" : "self" | ||
} | ||
|
||
|
||
10:25:19[Blocks][error]-block_definitions | development_behavior_packs/Ores Plus Add-On [BP] v2.1.0 | blocks/deepslate_sapphire_ore.json | oresplus:deepslate_sapphire_ore | components | minecraft:on_player_destroyed | child 'minecraft:on_player_destroyed' not valid here. | ||
|
||
10:25:19[Blocks][inform]-block_definitions | development_behavior_packs/Ores Plus Add-On [BP] v2.1.0 | blocks/deepslate_sapphire_ore.json | oresplus:deepslate_sapphire_ore | events | destroyed | run_command | { | ||
"command" : [ "summon xp_orb ~ ~ ~" ], | ||
"target" : "self" | ||
} | ||
|
||
10:25:19[Blocks][error]-block_definitions | development_behavior_packs/Ores Plus Add-On [BP] v2.1.0 | blocks/deepslate_silver_ore.json | oresplus:deepslate_silver_ore | components | minecraft:creative_category | child 'minecraft:creative_category' not valid here. | ||
|
||
10:25:19[Item][error]-To use item 'oresplus:pyrite_knife' turn on the Holiday Creator Features toggle in settings | ||
|
||
10:25:19[Item][error]-To use item 'oresplus:ambar_helmet' turn on the Holiday Creator Features toggle in settings | ||
|
||
10:25:19[Json][error]-upgrade items/alexandrite_boots.json | failed to parse file into a json document: Missing a name for object member. | ||
|
||
|
||
10:25:20[Recipes][error]-recipes/pyrite_knife.json | oresplus:pyrite_knife | The Item: oresplus:pyrite_knife is missing, cant make the recipe | ||
|
||
|
||
10:25:20[Recipes][error]-recipes/pyrite_knife.json | oresplus:pyrite_knife | Recipe result malformed | ||
|
||
|
||
10:25:20[Recipes][error]-recipes/pyrite_knife.json | oresplus:pyrite_knife | Recipe has no result item(s) | ||
|
||
|
||
10:25:21[Commands][warning]-Function jade_totem failed to load correctly with error(s): | ||
|
||
10:25:21[Commands][warning]-Error on line 5: command failed to parse with error 'commands.generic.syntax' | ||
|
||
10:25:21[Commands][warning]-Function wither_totem failed to load correctly with error(s): | ||
|
||
10:25:21[Commands][warning]-Error on line 5: command failed to parse with error 'commands.generic.syntax' | ||
|
||
10:25:21[Commands][warning]-Function cryo_totem failed to load correctly with error(s): | ||
|
||
10:25:21[Commands][warning]-Error on line 5: command failed to parse with error 'commands.generic.syntax' | ||
|
||
10:25:21[Commands][warning]-Function infernal_totem failed to load correctly with error(s): | ||
|
||
10:25:21[Commands][warning]-Error on line 5: command failed to parse with error 'commands.generic.syntax' | ||
|
||
10:25:21[Commands][warning]-Function spinel_totem failed to load correctly with error(s): |
Oops, something went wrong.