Skip to content
This repository was archived by the owner on Jul 7, 2020. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ Select kits from a form! Just do /kit and get kits info and select it if availab
## Usage
- /kit - List of kits fetched from kits.yml on a form!

## Permissions
- kit.command - Permission to use /kit
- kit.<kitname> - Permission to use kit specified after kit.

## Features
- Easy config
- Enchantments
Expand Down
File renamed without changes
4 changes: 4 additions & 0 deletions src/Infernus101/KitUI/Main.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,10 @@ public function onCommand(CommandSender $sender, Command $cmd, String $label, ar
}
switch(strtolower($cmd->getName())){
case "kit":
if(!$sender->hasPermission("kit.command")){
$sender->sendMessage(TextFormat::RED."> You don't have permission to use this command!");
return false;
}
if(isset($args[0])){
$sender->sendMessage(TextFormat::GREEN."About:\nKit UI by Infernus101! github.com/Infernus101/KitUI\n".TextFormat::AQUA."Servers - FallenTech.tk | CounterTech.tk 19132");
return false;
Expand Down