Skip to content

Commit

Permalink
fixed faulty IF case and added website to template
Browse files Browse the repository at this point in the history
  • Loading branch information
Thunder33345 committed Jan 22, 2017
1 parent 4c92488 commit 39742a5
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
5 changes: 3 additions & 2 deletions src/Thunder33345/PureChatExtension/Loader.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,11 @@ public function onEnable()
$tag = strtolower($tag);
switch ($tag) {
case "economyapi":
if (EconomyAPI::getInstance() !== null)
if (EconomyAPI::getInstance() !== null) {
if (!$pc->registerCustomTag(new EconomyAPITag(), true, $detail))
$this->getLogger()->notice("Failed to add EconomyAPI tag\n" . print_r($detail . true) . "\n");
else $this->getLogger()->notice("Failed to load EconomyAPI!\n");
else $this->getLogger()->notice("Successfully registered EconomyAPI tag");
} else $this->getLogger()->notice("Failed to load EconomyAPI!\n");
}
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
<?php
/* Made By Thunder33345 */
namespace Thunder33345\PureChatExtension\Tags;

/** //use for other developer/maintainer to get a refrence of where the supported plugin origin from
* @name "Supporting plugin's name"
* @website OFFICIAL plugin's website (prefering github if avaliable)
*/
use _64FF00\PureChat\Tags\CustomTagInterface;

class CustomTagTamplate implements CustomTagInterface
Expand Down
5 changes: 4 additions & 1 deletion src/Thunder33345/PureChatExtension/Tags/EconomyAPITag.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
<?php
/* Made By Thunder33345 */
namespace Thunder33345\PureChatExtension\Tags;

/**
* @name EconomyAPI
* @website https://github.com/onebone/EconomyS
*/
use _64FF00\PureChat\Tags\CustomTagInterface;
use onebone\economyapi\EconomyAPI;
use pocketmine\Player;
Expand Down

0 comments on commit 39742a5

Please sign in to comment.