This repository has been archived by the owner on Jul 2, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix item/commands not available after setup
- Loading branch information
1 parent
1c93632
commit bfb06c0
Showing
2 changed files
with
37 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
src/main/java/dev/dementisimus/mrs/listener/SetupDoneListener.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
package dev.dementisimus.mrs.listener; | ||
|
||
import dev.dementisimus.capi.core.events.bukkit.BukkitSetUpDoneEvent; | ||
import dev.dementisimus.mrs.MapRatingSystem; | ||
import org.bukkit.event.EventHandler; | ||
import org.bukkit.event.Listener; | ||
/** | ||
* Copyright (c) by dementisimus, | ||
* licensed under Attribution-NonCommercial-NoDerivatives 4.0 International | ||
* | ||
* Class SetupDoneListener @ MapRatingSystem | ||
* | ||
* @author dementisimus | ||
* @since 16.07.2021:21:35 | ||
*/ | ||
public record SetupDoneListener(MapRatingSystem mapRatingSystem) implements Listener { | ||
|
||
@EventHandler | ||
public void on(BukkitSetUpDoneEvent event) { | ||
if(event.isDone()) { | ||
this.mapRatingSystem.createMapRatingAPIObject(); | ||
} | ||
} | ||
|
||
} |