mirror of
https://gitea.sffempire.ru/Kolyah35/minecraft-pe-0.6.1.git
synced 2026-04-04 14:33:36 +00:00
FEAT: Server operators
This commit is contained in:
7
src/commands/Command.cpp
Normal file
7
src/commands/Command.cpp
Normal 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();
|
||||
}
|
||||
Reference in New Issue
Block a user