Merge pull request #835 from Desetude/fix/xpdrop

Renamed 'Experience drop' -> 'XP Drop'
This commit is contained in:
Tomas Slusny
2018-03-05 18:33:06 +01:00
committed by GitHub
2 changed files with 11 additions and 11 deletions

View File

@@ -31,15 +31,15 @@ import net.runelite.client.config.ConfigItem;
@ConfigGroup( @ConfigGroup(
keyName = "xpdrop", keyName = "xpdrop",
name = "Experience Drop", name = "XP Drop",
description = "Configuration for experience drops customization" description = "Configuration for XP drop customization"
) )
public interface ExperienceDropConfig extends Config public interface XpDropConfig extends Config
{ {
@ConfigItem( @ConfigItem(
keyName = "meleePrayerColor", keyName = "meleePrayerColor",
name = "Melee Prayer Color", name = "Melee Prayer Color",
description = "Xp Drop color when a melee prayer is active" description = "XP drop color when a melee prayer is active"
) )
default Color getMeleePrayerColor() default Color getMeleePrayerColor()
{ {
@@ -49,7 +49,7 @@ public interface ExperienceDropConfig extends Config
@ConfigItem( @ConfigItem(
keyName = "rangePrayerColor", keyName = "rangePrayerColor",
name = "Range Prayer Color", name = "Range Prayer Color",
description = "Xp Drop color when a range prayer is active" description = "XP drop color when a range prayer is active"
) )
default Color getRangePrayerColor() default Color getRangePrayerColor()
{ {
@@ -59,7 +59,7 @@ public interface ExperienceDropConfig extends Config
@ConfigItem( @ConfigItem(
keyName = "magePrayerColor", keyName = "magePrayerColor",
name = "Mage Prayer Color", name = "Mage Prayer Color",
description = "Xp Drop color when a mage prayer is active" description = "XP drop color when a mage prayer is active"
) )
default Color getMagePrayerColor() default Color getMagePrayerColor()
{ {

View File

@@ -38,20 +38,20 @@ import net.runelite.client.plugins.Plugin;
import net.runelite.client.plugins.PluginDescriptor; import net.runelite.client.plugins.PluginDescriptor;
@PluginDescriptor( @PluginDescriptor(
name = "Experience drop" name = "XP Drop"
) )
public class ExperienceDropPlugin extends Plugin public class XpDropPlugin extends Plugin
{ {
@Inject @Inject
private Client client; private Client client;
@Inject @Inject
private ExperienceDropConfig config; private XpDropConfig config;
@Provides @Provides
ExperienceDropConfig provideConfig(ConfigManager configManager) XpDropConfig provideConfig(ConfigManager configManager)
{ {
return configManager.getConfig(ExperienceDropConfig.class); return configManager.getConfig(XpDropConfig.class);
} }
@Subscribe @Subscribe