FEAT: Server operators

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

7
src/commands/Command.cpp Normal file
View File

@@ -0,0 +1,7 @@
#include "Command.hpp"
#include "world/level/Level.h"
#include <client/Minecraft.h>
bool Command::isPlayerOp(Minecraft& mc, Player& player) {
return mc.level->ops.find(player.name) != mc.level->ops.end();
}