Skip to content
This repository was archived by the owner on Jun 12, 2018. It is now read-only.

Commit

Permalink
Checks for permission
Browse files Browse the repository at this point in the history
  • Loading branch information
DaPigGuy committed Jul 8, 2016
1 parent b66e4ad commit 9c210e5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/WeaponsPlus/Commands/WeaponsPlusCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ public function execute(CommandSender $sender, $currentAlias, array $args){
switch($args[0]){
case "effectblade":
case "eb":
if(!$sender->hasPermission("weaponsplus.command.effectblade")){
return false;
}
if($this->plugin->getEBStatus($sender)){
$this->plugin->disableEB($sender);
$sender->sendMessage("§aEffectBlades disabled.");
Expand Down

0 comments on commit 9c210e5

Please sign in to comment.