Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PlayerOpEvent #163

Open
literally1984 opened this issue Sep 18, 2023 · 14 comments
Open

PlayerOpEvent #163

literally1984 opened this issue Sep 18, 2023 · 14 comments
Labels
enhancement New feature or request

Comments

@literally1984
Copy link

This is more of a suggestion than an issue but it would be nice if there was an event which was fired whenever a player is opped (whether that be from using /op or a plugin doing player.setOp().

@iamnoksio
Copy link

useless do it in plugin

@literally1984
Copy link
Author

useless do it in plugin

Right now I am using a BukkitRunnable, but I think that an actual event would be better.

@iamnoksio
Copy link

useless do it in plugin

Right now I am using a BukkitRunnable, but I think that an actual event would be better.

There's A LOT of better ways to do it without using a Runnable

@iamnoksio
Copy link

or there's something called: do it yourself

@andreasdc
Copy link

What are you trying to achieve?

@literally1984
Copy link
Author

or there's something called: do it yourself

You could say that every event Pandaspigot has backported is useless then, because one could do it themself.

@andreasdc
Copy link

or there's something called: do it yourself

You could say that every event Pandaspigot has backported is useless then, because one could do it themself.

Will you say what do you want to achieve or not

@literally1984
Copy link
Author

or there's something called: do it yourself

You could say that every event Pandaspigot has backported is useless then, because one could do it themself.

Will you say what do you want to achieve or not

What do you mean?

@andreasdc
Copy link

What do you need that feature for?

@literally1984
Copy link
Author

literally1984 commented Sep 22, 2023

What do you need that feature for?

I would like to have the feature to cancel anybody save a few whitelisted players from getting op. I'm already accomplishing this by using a BukkitRunnable and checking the op list every few seconds, but I feel as though an actual event would be better.

@andreasdc
Copy link

You can modify setting op using reflection and add whitelist check there.

@literally1984
Copy link
Author

I'm sure I could do that, but it seems messy and an event would be much cleaner.

@iamnoksio
Copy link

iamnoksio commented Sep 22, 2023

I'm sure I could do that, but it seems messy and an event would be much cleaner.

DUDE you buggin w your damn event, create it, put it in place and do a pull request

@iamnoksio
Copy link

What do you need that feature for?

I would like to have the feature to cancel anybody save a few whitelisted players from getting op. I'm already accomplishing this by using a BukkitRunnable and checking the op list every few seconds, but I feel as though an actual event would be better.

PlayerPreLoginEvent or some like that should be fine for what you've described

@hpfxd hpfxd added the enhancement New feature or request label Mar 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants