FEAT: Server operators

This commit is contained in:
2026-03-31 00:40:10 +03:00
parent 5194575092
commit 1ec347d5d5
13 changed files with 74 additions and 9 deletions

View File

@@ -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);
}