spec counter: add devmode check for spec command
This commit is contained in:
@@ -34,6 +34,7 @@ import java.util.List;
|
|||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
import javax.inject.Inject;
|
import javax.inject.Inject;
|
||||||
|
import javax.inject.Named;
|
||||||
import lombok.AccessLevel;
|
import lombok.AccessLevel;
|
||||||
import lombok.Getter;
|
import lombok.Getter;
|
||||||
import lombok.extern.slf4j.Slf4j;
|
import lombok.extern.slf4j.Slf4j;
|
||||||
@@ -136,6 +137,10 @@ public class SpecialCounterPlugin extends Plugin
|
|||||||
@Inject
|
@Inject
|
||||||
private PlayerInfoDropOverlay playerInfoDropOverlay;
|
private PlayerInfoDropOverlay playerInfoDropOverlay;
|
||||||
|
|
||||||
|
@Inject
|
||||||
|
@Named("developerMode")
|
||||||
|
boolean developerMode;
|
||||||
|
|
||||||
@Provides
|
@Provides
|
||||||
SpecialCounterConfig getConfig(ConfigManager configManager)
|
SpecialCounterConfig getConfig(ConfigManager configManager)
|
||||||
{
|
{
|
||||||
@@ -367,7 +372,7 @@ public class SpecialCounterPlugin extends Plugin
|
|||||||
@Subscribe
|
@Subscribe
|
||||||
public void onCommandExecuted(CommandExecuted commandExecuted)
|
public void onCommandExecuted(CommandExecuted commandExecuted)
|
||||||
{
|
{
|
||||||
if (commandExecuted.getCommand().equals("spec"))
|
if (developerMode && commandExecuted.getCommand().equals("spec"))
|
||||||
{
|
{
|
||||||
playerInfoDrops.add(createSpecInfoDrop(SpecialWeapon.BANDOS_GODSWORD, 42, client.getLocalPlayer().getId()));
|
playerInfoDrops.add(createSpecInfoDrop(SpecialWeapon.BANDOS_GODSWORD, 42, client.getLocalPlayer().getId()));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user