We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e4d9ee2 commit 2075c51Copy full SHA for 2075c51
include/example_plugin.h
@@ -42,7 +42,7 @@ class ExamplePlugin : public endstone::Plugin {
42
{
43
// You can also handle commands here instead of setting an executor in onEnable if you prefer
44
if (command.getName() == "whoami") {
45
- if (sender.isOp()) {
+ if (sender.getPermissionLevel() >= endstone::PermissionLevel::Operator) {
46
sender.sendMessage(endstone::ColorFormat::DarkGreen + "You are seeing this because you are the OP!");
47
}
48
else {
0 commit comments