Skip to content

Commit

Permalink
renamed polymc to prismlauncher
Browse files Browse the repository at this point in the history
  • Loading branch information
matthi4s committed Oct 20, 2022
1 parent 6cf18ed commit a5e2126
Show file tree
Hide file tree
Showing 7 changed files with 328 additions and 197 deletions.
4 changes: 2 additions & 2 deletions src/Detective/Detective.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
use Aternos\Codex\Minecraft\Log\Minecraft\Geyser\GeyserProxyLog;
use Aternos\Codex\Minecraft\Log\Minecraft\MinecraftLog;
use Aternos\Codex\Minecraft\Log\Minecraft\Pocketmine\PocketmineServerLog;
use Aternos\Codex\Minecraft\Log\Minecraft\PolyMC\PolyMCClientLog;
use Aternos\Codex\Minecraft\Log\Minecraft\PrismLauncher\PrismLauncherClientLog;
use Aternos\Codex\Minecraft\Log\Minecraft\Vanilla\Bukkit\CraftBukkit\CraftBukkitServerLog;
use Aternos\Codex\Minecraft\Log\Minecraft\Vanilla\Bukkit\CraftBukkit\OldCraftBukkitServerLog;
use Aternos\Codex\Minecraft\Log\Minecraft\Vanilla\Bukkit\Glowstone\GlowstoneServerLog;
Expand Down Expand Up @@ -75,7 +75,7 @@ class Detective extends \Aternos\Codex\Detective\Detective
VanillaCrashReportLog::class,
MohistCrashReportLog::class,

PolyMCClientLog::class
PrismLauncherClientLog::class
];

/**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Aternos\Codex\Minecraft\Log\Minecraft\PolyMC;
namespace Aternos\Codex\Minecraft\Log\Minecraft\PrismLauncher;

use Aternos\Codex\Minecraft\Log\Type\ClientLogTypeInterface;

Expand All @@ -9,7 +9,7 @@
*
* @package Aternos\Codex\Minecraft\Log\Minecraft\PolyMC
*/
class PolyMCClientLog extends PolyMCLog implements ClientLogTypeInterface
class PrismLauncherClientLog extends PrismLauncherLog implements ClientLogTypeInterface
{

}
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
<?php

namespace Aternos\Codex\Minecraft\Log\Minecraft\PolyMC;
namespace Aternos\Codex\Minecraft\Log\Minecraft\PrismLauncher;

use Aternos\Codex\Detective\DetectorInterface;
use Aternos\Codex\Detective\SinglePatternDetector;
use Aternos\Codex\Minecraft\Parser\Parser;

/**
* Class PolyMCLog
* Class PrismLauncherLog
*
* @package Aternos\Codex\Minecraft\Log\Minecraft\PolyMC
* @package Aternos\Codex\Minecraft\Log\Minecraft\PrismLauncherLog
*/
abstract class PolyMCLog extends \Aternos\Codex\Minecraft\Log\Minecraft\MinecraftLog
abstract class PrismLauncherLog extends \Aternos\Codex\Minecraft\Log\Minecraft\MinecraftLog
{
/**
* @return Parser
Expand All @@ -26,14 +26,14 @@ public static function getDefaultParser(): Parser
*/
public static function getDetectors(): array
{
return [(new SinglePatternDetector())->setPattern("/^PolyMC version: [\d\.]+$/m")];
return [(new SinglePatternDetector())->setPattern("/^Prism Launcher version: [\d\.]+$/m")];
}

/**
* @return string
*/
public function getName(): string
{
return "PolyMC";
return "PrismLauncher";

This comment has been minimized.

Copy link
@pavog

pavog Oct 20, 2022

Member

Prism Launcher, not PrismLauncher, right? PrismLauncher/PrismLauncher#148

}
}
106 changes: 0 additions & 106 deletions test/data/polymc/polymc.log

This file was deleted.

Loading

1 comment on commit a5e2126

@Scrumplex
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

Please sign in to comment.