FancyInnovations / FancyInnovations/FancyPlugins

Bug: Issue with /npc action run_as_op

Open
#207 0 comments 0 reactions 0 assignees View on GitHub
Priority: Medium Status: Pending Type: Bug
Dominant language
Java
Stars
88
Forks
109
PR merge metrics
No merged PRs in 30d

Description

### In which plugin has the error occurred?

FancyNpcs

### What happened?

Basically, if you have an npc which gives op for 1 tick and does an action, if the action is to ban a player (or kick player I think) it will do the action and not de op player.

I think a possible solution is to make it use offlineplayer not player (if its using player right now)

obviously this is very specific and why would you ever have this but someone was playing around and it happened and a member got op

### In which software has the error occurred?

Paper

### Plugin version

2.9.2

### Server version

1.21.11

### Relevant log output

```shell
Not needed
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.