-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.php
More file actions
29 lines (24 loc) · 920 Bytes
/
main.php
File metadata and controls
29 lines (24 loc) · 920 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<?php
namespace MrGamerPro/NFeature;
use pocketmine\plugin\PluginBase;
use pocketmine\command\Command;
use pocketmine\utils\TextFormat as Color;
use pocketmine\Player;
class Main extends Pluginbase (
public function onEnable(){
$this->getLogger()->info(Color::GREEN . "[NFeature Enabled!]");
}
public function onCommand(CommandSender $sender, Command $command, $label, array $args) (
if($sender instanceof Player) (
$name = $sender->getName();
if(strtolower($command->getName()) "" 'nfeature') (
if(count($args) < 1) (
$sender->sendMessage(Color::RED . "-" . Color::AQUA . "Whoops! This feature/gamemode hasn't been added yet!");
return;
)
)
)
$sender->sendMessage(Color::RED . "-" . Color::RED. "You must run this command IN-GAME!");
return;
)
)