summaryrefslogtreewikicommitdiff
path: root/src/main/java/net/tylermurphy/hideAndSeek/events/Glow.java
diff options
context:
space:
mode:
authorTyler Murphy <tylermurphy534@gmail.com>2021-12-25 08:16:03 -0600
committerTyler Murphy <tylermurphy534@gmail.com>2021-12-25 08:16:03 -0600
commit6239acb08a43d6bfef51f6abc8b7cc65687c51c7 (patch)
tree0f8fa7d17f9139f8aa64e72453272674334029df /src/main/java/net/tylermurphy/hideAndSeek/events/Glow.java
parentMerge pull request #16 from tylermurphy534/1.3.2 (diff)
downloadkenshinshideandseek-6239acb08a43d6bfef51f6abc8b7cc65687c51c7.tar.gz
kenshinshideandseek-6239acb08a43d6bfef51f6abc8b7cc65687c51c7.tar.bz2
kenshinshideandseek-6239acb08a43d6bfef51f6abc8b7cc65687c51c7.zip
1.3.3 beta 2
Diffstat (limited to 'src/main/java/net/tylermurphy/hideAndSeek/events/Glow.java')
-rw-r--r--src/main/java/net/tylermurphy/hideAndSeek/events/Glow.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/net/tylermurphy/hideAndSeek/events/Glow.java b/src/main/java/net/tylermurphy/hideAndSeek/events/Glow.java
index a817df3..139d8b4 100644
--- a/src/main/java/net/tylermurphy/hideAndSeek/events/Glow.java
+++ b/src/main/java/net/tylermurphy/hideAndSeek/events/Glow.java
@@ -19,7 +19,7 @@ public class Glow {
this.glowTime = 0;
}
- public void onProjectilve() {
+ public void onProjectile() {
if(glowStackable) glowTime += glowLength;
else glowTime = glowLength;
if(!running)
@@ -38,7 +38,7 @@ public class Glow {
private void waitGlow() {
Bukkit.getServer().getScheduler().scheduleSyncDelayedTask(Main.plugin, () -> {
- if(temp != Main.plugin.gameId) return;
+ if(temp != Main.plugin.game.gameId) return;
glowTime--;
glowTime = Math.max(glowTime, 0);
if(glowTime == 0) {