mirror of
https://github.com/AuthMe/AuthMeReloaded.git
synced 2024-11-30 06:03:36 +01:00
parent
eef314b965
commit
168186321c
@ -248,6 +248,10 @@ public class PlayerListener implements Listener {
|
||||
|
||||
if (settings.getProperty(RegistrationSettings.REMOVE_LEAVE_MESSAGE)) {
|
||||
event.setQuitMessage(null);
|
||||
} else if (settings.getProperty(RegistrationSettings.REMOVE_UNLOGGED_LEAVE_MESSAGE)) {
|
||||
if(listenerService.shouldCancelEvent(event)) {
|
||||
event.setQuitMessage(null);
|
||||
}
|
||||
}
|
||||
|
||||
if (antiBot.wasPlayerKicked(player.getName())) {
|
||||
|
@ -84,11 +84,15 @@ public class RegistrationSettings implements SettingsClass {
|
||||
public static final Property<Boolean> DELAY_JOIN_MESSAGE =
|
||||
newProperty("settings.delayJoinMessage", false);
|
||||
|
||||
@Comment("Should we remove leave messages for unlogged users?")
|
||||
public static final Property<Boolean> REMOVE_UNLOGGED_LEAVE_MESSAGE =
|
||||
newProperty("settings.removeUnloggedLeaveMessage", false);
|
||||
|
||||
@Comment("Should we remove join messages altogether?")
|
||||
public static final Property<Boolean> REMOVE_JOIN_MESSAGE =
|
||||
newProperty("settings.removeJoinMessage", false);
|
||||
|
||||
@Comment("Should we remove leave messages?")
|
||||
@Comment("Should we remove leave messages altogether?")
|
||||
public static final Property<Boolean> REMOVE_LEAVE_MESSAGE =
|
||||
newProperty("settings.removeLeaveMessage", false);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user