From 1fe4fdc67c4c1468ae9f6248fa4512dec8f80be1 Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Thu, 15 Oct 2020 13:55:29 +0100 Subject: [PATCH] PluginDescription: fixed some very old refactoring errors --- src/pocketmine/plugin/PluginDescription.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/pocketmine/plugin/PluginDescription.php b/src/pocketmine/plugin/PluginDescription.php index 23bf08325..63c7f2df5 100644 --- a/src/pocketmine/plugin/PluginDescription.php +++ b/src/pocketmine/plugin/PluginDescription.php @@ -104,13 +104,13 @@ class PluginDescription{ $this->name = $plugin["name"]; if(preg_match('/^[A-Za-z0-9 _.-]+$/', $this->name) === 0){ - throw new PluginException("Invalid PluginDescription name"); + throw new PluginException("Invalid Plugin name"); } $this->name = str_replace(" ", "_", $this->name); $this->version = (string) $plugin["version"]; $this->main = $plugin["main"]; if(stripos($this->main, "pocketmine\\") === 0){ - throw new PluginException("Invalid PluginDescription main, cannot start within the PocketMine namespace"); + throw new PluginException("Invalid Plugin main, cannot start within the PocketMine namespace"); } $this->api = array_map("\strval", (array) ($plugin["api"] ?? [])); @@ -149,7 +149,7 @@ class PluginDescription{ if(isset($plugin["load"])){ $order = mb_strtoupper($plugin["load"]); if(!defined(PluginLoadOrder::class . "::" . $order)){ - throw new PluginException("Invalid PluginDescription load"); + throw new PluginException("Invalid Plugin load"); }else{ $this->order = constant(PluginLoadOrder::class . "::" . $order); }