Skip to content

Commit

Permalink
Add overriding warnings to custom even listeners
Browse files Browse the repository at this point in the history
  • Loading branch information
srnyx committed Apr 1, 2024
1 parent e776355 commit 1d2bca0
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions library/src/main/java/xyz/srnyx/lazylibrary/LazyListener.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ public LazyListener() {
// Exists to add a Javadoc
}

/**
* <b>OVERRIDING THIS WILL BREAK {@link GuildVoiceJoinEvent} AND {@link GuildVoiceLeaveEvent}</b>
* <br>If you need to override this, make sure to call {@code super.onGuildVoiceUpdate(event)} in your method!
*/
@Override
public void onGuildVoiceUpdate(@NotNull GuildVoiceUpdateEvent event) {
// Joined
Expand Down Expand Up @@ -53,6 +57,10 @@ public void onGuildVoiceLeave(@NotNull GuildVoiceLeaveEvent event) {
// This should be overridden
}

/**
* <b>OVERRIDING THIS WILL BREAK {@link GuildMemberStartBoost} AND {@link GuildMemberStopBoost}</b>
* <br>If you need to override this, make sure to call {@code super.onGuildMemberUpdateBoostTime(event)} in your method!
*/
@Override
public void onGuildMemberUpdateBoostTime(@NotNull GuildMemberUpdateBoostTimeEvent event) {
// Stopped
Expand Down

0 comments on commit 1d2bca0

Please sign in to comment.