Skip to content

Commit

Permalink
Merge pull request #43 from KanekiLeChomeur/PMMP-4
Browse files Browse the repository at this point in the history
  • Loading branch information
Flavius12 authored Jun 11, 2022
2 parents d19fbac + 6afc559 commit a4e2a92
Show file tree
Hide file tree
Showing 14 changed files with 626 additions and 618 deletions.
4 changes: 1 addition & 3 deletions .poggit.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
--- # Poggit-CI Manifest. Open the CI at https://poggit.pmmp.io/ci/EvolSoft/CustomAlerts
branches:
- master
- PMMP-4
projects:
CustomAlerts:
path: CustomAlerts/
CustomAlertsExample:
path: CustomAlertsExample/
...
26 changes: 13 additions & 13 deletions CustomAlerts/plugin.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
name: CustomAlerts
main: CustomAlerts\CustomAlerts
version: 2.1
api: [3.0.0]
version: 2.4
api: [4.0.0]
load: STARTUP
author: EvolSoft
author: [EvolSoft, KanekiLeChomeur]
description: Customize or hide alerts (join/leave messages, whitelist messages, outdated server/client messages, etc...) plugin
website: https://www.evolsoft.tk
website: https://github.com/KanekiLeChomeur/CustomAlerts/

commands:
customalerts:
Expand All @@ -17,12 +17,12 @@ permissions:
default: op
description: CustomAlerts permission tree.
children:
customalerts.help:
default: op
description: let player read CustomAlerts commands help.
customalerts.info:
default: op
description: Let player read info about CustomAlerts.
customalerts.reload:
default: op
description: Let player reload CustomAlerts configuration.
customalerts.help:
default: op
description: let player read CustomAlerts commands help.
customalerts.info:
default: op
description: Let player read info about CustomAlerts.
customalerts.reload:
default: op
description: Let player reload CustomAlerts configuration.
8 changes: 5 additions & 3 deletions CustomAlerts/src/CustomAlerts/Commands/Commands.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,11 @@

use CustomAlerts\CustomAlerts;

class Commands extends PluginCommand implements CommandExecutor {
class Commands implements CommandExecutor{

public function __construct(CustomAlerts $plugin){
private $plugin;

public function __construct(CustomAlerts $plugin){
$this->plugin = $plugin;
}

Expand All @@ -32,7 +34,7 @@ public function onCommand(CommandSender $sender, Command $cmd, $label, array $ar
goto help;
case "info":
if($sender->hasPermission("customalerts.info")){
$sender->sendMessage(TextFormat::colorize(CustomAlerts::PREFIX . "&aCustomAlerts &dv" . $this->plugin->getDescription()->getVersion() . "&a developed by &dEvolSoft"));
$sender->sendMessage(TextFormat::colorize(CustomAlerts::PREFIX . "&aCustomAlerts &dv" . $this->plugin->getDescription()->getVersion() . "&a developed by &dEvolSoft §r§aand updated by §dKanekiLeChomeur "));
$sender->sendMessage(TextFormat::colorize(CustomAlerts::PREFIX . "&aWebsite &d" . $this->plugin->getDescription()->getWebsite()));
break;
}
Expand Down
Loading

0 comments on commit a4e2a92

Please sign in to comment.