diff --git a/Plugins/Mineplex.Core/src/mineplex/core/projectile/ProjectileUser.java b/Plugins/Mineplex.Core/src/mineplex/core/projectile/ProjectileUser.java index 99f006a5d..566aa10cd 100644 --- a/Plugins/Mineplex.Core/src/mineplex/core/projectile/ProjectileUser.java +++ b/Plugins/Mineplex.Core/src/mineplex/core/projectile/ProjectileUser.java @@ -75,7 +75,11 @@ public class ProjectileUser _thrower = thrower; _callback = callback; - _expireTime = System.currentTimeMillis() + expireTime; + if (expireTime > 0) + _expireTime = System.currentTimeMillis() + expireTime; + else + _expireTime = -1; + _hitPlayer = hitPlayer; _hitNonPlayerEntity = hitNonPlayerEntity; _hitBlock = hitBlock; @@ -112,7 +116,11 @@ public class ProjectileUser _thrower = thrower; _callback = callback; - _expireTime = System.currentTimeMillis() + expireTime; + if (expireTime > 0) + _expireTime = System.currentTimeMillis() + expireTime; + else + _expireTime = -1; + _hitPlayer = hitPlayer; _hitNonPlayerEntity = hitNonPlayerEntity; _hitBlock = hitBlock;