forked from mirrors/kolyah35-minecraft-pe-0.6.1
FEAT: Server operators
This commit is contained in:
parent
5194575092
commit
1ec347d5d5
13 changed files with 74 additions and 9 deletions
|
|
@ -9,7 +9,11 @@
|
|||
|
||||
CommandKick::CommandKick() : Command("kick") {}
|
||||
|
||||
void CommandKick::execute(Minecraft& mc, const std::vector<std::string>& args) {
|
||||
void CommandKick::execute(Minecraft& mc, Player& player, const std::vector<std::string>& args) {
|
||||
if (!isPlayerOp(mc, player)) {
|
||||
return mc.addMessage("You aren't enough priveleged to run this command");
|
||||
}
|
||||
|
||||
if (args.empty()) {
|
||||
return printHelp(mc);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue