diff --git a/runelite-client/src/main/java/net/runelite/client/plugins/metronome/MetronomePlugin.java b/runelite-client/src/main/java/net/runelite/client/plugins/metronome/MetronomePlugin.java index c84dc8953e..5cea04a613 100644 --- a/runelite-client/src/main/java/net/runelite/client/plugins/metronome/MetronomePlugin.java +++ b/runelite-client/src/main/java/net/runelite/client/plugins/metronome/MetronomePlugin.java @@ -26,9 +26,14 @@ package net.runelite.client.plugins.metronome; import com.google.inject.Provides; - import javax.inject.Inject; - +import javax.sound.sampled.AudioInputStream; +import javax.sound.sampled.AudioSystem; +import javax.sound.sampled.Clip; +import javax.sound.sampled.DataLine; +import javax.sound.sampled.AudioFormat; +import javax.sound.sampled.FloatControl; +import java.io.File; import net.runelite.api.Client; import net.runelite.api.SoundEffectID; import net.runelite.api.events.ConfigChanged; @@ -38,19 +43,11 @@ import net.runelite.client.eventbus.Subscribe; import net.runelite.client.plugins.Plugin; import net.runelite.client.plugins.PluginDescriptor; -import javax.sound.sampled.AudioInputStream; -import javax.sound.sampled.AudioSystem; -import javax.sound.sampled.Clip; -import javax.sound.sampled.DataLine; -import javax.sound.sampled.AudioFormat; -import javax.sound.sampled.FloatControl; -import java.io.File; - @PluginDescriptor( - name = "Metronome", - description = "Play sounds in a customisable pattern", - tags = {"skilling", "tick", "timers"}, - enabledByDefault = false + name = "Metronome", + description = "Play sounds in a customisable pattern", + tags = {"skilling", "tick", "timers"}, + enabledByDefault = false ) public class MetronomePlugin extends Plugin { diff --git a/runelite-client/src/main/java/net/runelite/client/plugins/metronome/MetronomePluginConfiguration.java b/runelite-client/src/main/java/net/runelite/client/plugins/metronome/MetronomePluginConfiguration.java index e7178e80cb..27cca4ccec 100644 --- a/runelite-client/src/main/java/net/runelite/client/plugins/metronome/MetronomePluginConfiguration.java +++ b/runelite-client/src/main/java/net/runelite/client/plugins/metronome/MetronomePluginConfiguration.java @@ -34,9 +34,9 @@ import net.runelite.client.config.Range; public interface MetronomePluginConfiguration extends Config { @ConfigItem( - keyName = "tickCount", - name = "Tick count", - description = "Configures the number of game ticks between metronome sounds" + keyName = "tickCount", + name = "Tick count", + description = "Configures the number of game ticks between metronome sounds" ) default int tickCount() { @@ -44,9 +44,9 @@ public interface MetronomePluginConfiguration extends Config } @ConfigItem( - keyName = "enableTock", - name = "Enable tock (alternating) sound", - description = "Toggles whether to play \"tock\" sounds" + keyName = "enableTock", + name = "Enable tock (alternating) sound", + description = "Toggles whether to play \"tock\" sounds" ) default boolean enableTock() { @@ -54,9 +54,9 @@ public interface MetronomePluginConfiguration extends Config } @ConfigItem( - keyName = "tockNumber", - name = "Tock every nth \"tick\"", - description = "Configures how many \"ticks\" between each \"tock\"" + keyName = "tockNumber", + name = "Tock every nth \"tick\"", + description = "Configures how many \"ticks\" between each \"tock\"" ) default int tockNumber() { @@ -64,9 +64,9 @@ public interface MetronomePluginConfiguration extends Config } @ConfigItem( - keyName = "tickOffset", - name = "Offset", - description = "Amount of ticks to offset the metronome (only useful for \"tocks\")" + keyName = "tickOffset", + name = "Offset", + description = "Amount of ticks to offset the metronome (only useful for \"tocks\")" ) default int tickOffset() { @@ -74,9 +74,9 @@ public interface MetronomePluginConfiguration extends Config } @ConfigItem( - keyName = "tickSoundFilePath", - name = "Tick .wav file path", - description = "The path to the file to be used for \"tick\" sounds (short .wav only)" + keyName = "tickSoundFilePath", + name = "Tick .wav file path", + description = "The path to the file to be used for \"tick\" sounds (short .wav only)" ) default String tickPath() { @@ -84,9 +84,9 @@ public interface MetronomePluginConfiguration extends Config } @ConfigItem( - keyName = "tockSoundFilePath", - name = "Tock .wav file path", - description = "The path to the file to be used for \"tock\" sounds (short .wav only)" + keyName = "tockSoundFilePath", + name = "Tock .wav file path", + description = "The path to the file to be used for \"tock\" sounds (short .wav only)" ) default String tockPath() { @@ -94,13 +94,13 @@ public interface MetronomePluginConfiguration extends Config } @Range( - min = 0, - max = 100 + min = 0, + max = 100 ) @ConfigItem( - keyName = "volume", - name = "Volume modification", - description = "Configures tick/tock volume; only effects custom sounds." + keyName = "volume", + name = "Volume modification", + description = "Configures tick/tock volume; only effects custom sounds." ) default int volume() {