-
-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #15 from Sefiraat/dev
Fix Fans, Gadgets, Rejig guide, Stats and Metrics
- Loading branch information
Showing
29 changed files
with
673 additions
and
514 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
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
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
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
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
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
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
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
6 changes: 5 additions & 1 deletion
6
src/main/java/io/github/sefiraat/crystamaehistoria/runnables/RunnableManager.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 |
---|---|---|
@@ -1,18 +1,22 @@ | ||
package io.github.sefiraat.crystamaehistoria.runnables; | ||
|
||
import io.github.sefiraat.crystamaehistoria.CrystamaeHistoria; | ||
import io.github.sefiraat.crystamaehistoria.runnables.spells.TemporaryEffectsRunnable; | ||
import lombok.Getter; | ||
|
||
public class RunnableManager { | ||
|
||
@Getter | ||
public final TemporaryEffectsRunnable temporaryEffectsRunnable; | ||
@Getter | ||
public final SaveConfigRunnable saveConfigRunnable; | ||
|
||
public RunnableManager() { | ||
CrystamaeHistoria plugin = CrystamaeHistoria.getInstance(); | ||
|
||
this.temporaryEffectsRunnable = new TemporaryEffectsRunnable(); | ||
this.temporaryEffectsRunnable.runTaskTimer(plugin, 1, 20); | ||
|
||
this.saveConfigRunnable = new SaveConfigRunnable(); | ||
this.saveConfigRunnable.runTaskTimer(plugin, 1, 1200); | ||
} | ||
} |
12 changes: 12 additions & 0 deletions
12
src/main/java/io/github/sefiraat/crystamaehistoria/runnables/SaveConfigRunnable.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,12 @@ | ||
package io.github.sefiraat.crystamaehistoria.runnables; | ||
|
||
import io.github.sefiraat.crystamaehistoria.CrystamaeHistoria; | ||
import org.bukkit.scheduler.BukkitRunnable; | ||
|
||
public class SaveConfigRunnable extends BukkitRunnable { | ||
|
||
@Override | ||
public void run() { | ||
CrystamaeHistoria.getConfigManager().saveAll(); | ||
} | ||
} |
2 changes: 1 addition & 1 deletion
2
...bles/spells/TemporaryEffectsRunnable.java → ...a/runnables/TemporaryEffectsRunnable.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
2 changes: 1 addition & 1 deletion
2
...bles/animation/FloatingHeadAnimation.java → ...nnables/spells/FloatingHeadAnimation.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
Oops, something went wrong.