Skip to content

Commit 2075c51

Browse files
committed
fix: resolve compilation errors due to upstream api changes
1 parent e4d9ee2 commit 2075c51

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/example_plugin.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ class ExamplePlugin : public endstone::Plugin {
4242
{
4343
// You can also handle commands here instead of setting an executor in onEnable if you prefer
4444
if (command.getName() == "whoami") {
45-
if (sender.isOp()) {
45+
if (sender.getPermissionLevel() >= endstone::PermissionLevel::Operator) {
4646
sender.sendMessage(endstone::ColorFormat::DarkGreen + "You are seeing this because you are the OP!");
4747
}
4848
else {

0 commit comments

Comments
 (0)