mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2026-04-05 23:36:12 +00:00
Merge remote-tracking branch 'upstream/master' into DecreeCommands
This commit is contained in:
@@ -18,10 +18,16 @@
|
||||
|
||||
package com.volmit.iris.util.plugin;
|
||||
|
||||
import com.volmit.iris.Iris;
|
||||
import org.bukkit.event.Listener;
|
||||
|
||||
public interface IrisService extends Listener {
|
||||
void onEnable();
|
||||
|
||||
void onDisable();
|
||||
|
||||
default void postShutdown(Runnable r)
|
||||
{
|
||||
Iris.instance.postShutdown(r);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -226,7 +226,7 @@ public class VolmitSender implements CommandSender {
|
||||
}
|
||||
|
||||
public static String pulse(double speed) {
|
||||
return Form.f(invertSpread((((getTick() * 15D * speed) % 1000D) / 1000D)), 3).replaceAll("\\Q,\\E", ".");
|
||||
return Form.f(invertSpread((((getTick() * 15D * speed) % 1000D) / 1000D)), 3).replaceAll("\\Q,\\E", ".").replaceAll("\\Q?\\E", "-");
|
||||
}
|
||||
|
||||
public static double invertSpread(double v) {
|
||||
|
||||
Reference in New Issue
Block a user