-
-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Add PlayerCodeOfConductSendEvent #13512
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
base: main
Are you sure you want to change the base?
Conversation
paper-api/src/main/java/org/bukkit/event/player/PlayerCodeOfConductSendEvent.java
Outdated
Show resolved
Hide resolved
paper-api/src/main/java/org/bukkit/event/player/PlayerCodeOfConductSendEvent.java
Show resolved
Hide resolved
Enables customizing the code of conduct per send
| @@ -0,0 +1,65 @@ | |||
| package org.bukkit.event.player; | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this need to be in paper
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This whole project is Paper! I just put it next to the PlayerLinksSendEvent, another configuration event that's fired from the same NMS class. :3
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This whole project is Paper! I just put it next to the
PlayerLinksSendEvent, another configuration event that's fired from the same NMS class. :3
paper but not paper-chan
okay, but in general all new events going to the paper package, but maybe its more a maintainer definition
| private final PlayerCommonConnection connection; | ||
|
|
||
| @ApiStatus.Internal | ||
| public PlayerCodeOfConductSendEvent( final PlayerConfigurationConnection connection, final String codeOfConduct) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| public PlayerCodeOfConductSendEvent( final PlayerConfigurationConnection connection, final String codeOfConduct) { | |
| public PlayerCodeOfConductSendEvent(final PlayerConfigurationConnection connection, final String codeOfConduct) { |
Enables customizing the code of conduct per send.
Just throwing the idea out there. Draft because I'm not sure we even want this and because I haven't bothered to test it yet (but I can't see it blowing up).
Possible uses: