Skip to content

Commit

Permalink
Add override annotations in AnnoyingListener
Browse files Browse the repository at this point in the history
  • Loading branch information
srnyx committed Nov 8, 2023
1 parent 98c5b99 commit a7cf895
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions api/src/main/java/xyz/srnyx/annoyingapi/AnnoyingListener.java
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ public abstract class AnnoyingListener extends Registrable implements Listener {
/**
* Registers the listener to the {@link #getAnnoyingPlugin()}
*/
@Override
public void register() {
if (isRegistered()) return;
Bukkit.getPluginManager().registerEvents(this, getAnnoyingPlugin());
Expand All @@ -23,6 +24,7 @@ public void register() {
/**
* Unregisters the listener from the {@link #getAnnoyingPlugin()}
*/
@Override
public void unregister() {
if (!isRegistered()) return;
HandlerList.unregisterAll(this);
Expand Down

0 comments on commit a7cf895

Please sign in to comment.