Skip to content

Conversation

@mbax
Copy link
Contributor

@mbax mbax commented Jan 5, 2026

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:

  1. Presently, code of conduct attempts to be based on user locale, then defaults to en_us. Perhaps someone would want to try some other locales first based on their locale.
  2. Separate code of conduct for users once they're staff.
  3. Separate code of conduct for visitors vs members in a "greylist" server.
  4. Forcing users to always accept the code of conduct each join, or every X days, by adding a unique value to the end of the code of conduct.

Enables customizing the code of conduct per send
@@ -0,0 +1,65 @@
package org.bukkit.event.player;
Copy link
Member

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

Copy link
Contributor Author

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

Copy link
Member

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) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
public PlayerCodeOfConductSendEvent( final PlayerConfigurationConnection connection, final String codeOfConduct) {
public PlayerCodeOfConductSendEvent(final PlayerConfigurationConnection connection, final String codeOfConduct) {

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Awaiting review

Development

Successfully merging this pull request may close these issues.

3 participants