Various Fixes (#450)
This commit is contained in:
@@ -95,12 +95,12 @@ public interface XpDropConfig extends Config
|
||||
}
|
||||
|
||||
@ConfigItem(
|
||||
keyName = "showDamage",
|
||||
keyName = "showdamagedrops",
|
||||
name = "Show Damage on XP Drop",
|
||||
description = "Show what you hit next to the XP drop",
|
||||
position = 5
|
||||
)
|
||||
default DamageMode showdamage()
|
||||
default DamageMode showdamagedrops()
|
||||
{
|
||||
return DamageMode.NONE;
|
||||
}
|
||||
|
||||
@@ -113,7 +113,7 @@ public class XpDropPlugin extends Plugin
|
||||
@Override
|
||||
protected void startUp() throws Exception
|
||||
{
|
||||
damageMode = config.showdamage();
|
||||
damageMode = config.showdamagedrops();
|
||||
|
||||
if (damageMode == XpDropConfig.DamageMode.ABOVE_OPPONENT)
|
||||
{
|
||||
@@ -138,7 +138,7 @@ public class XpDropPlugin extends Plugin
|
||||
|
||||
if (damageMode != XpDropConfig.DamageMode.ABOVE_OPPONENT)
|
||||
{
|
||||
damageMode = config.showdamage();
|
||||
damageMode = config.showdamagedrops();
|
||||
|
||||
if (damageMode == XpDropConfig.DamageMode.ABOVE_OPPONENT)
|
||||
{
|
||||
@@ -147,7 +147,7 @@ public class XpDropPlugin extends Plugin
|
||||
}
|
||||
else
|
||||
{
|
||||
damageMode = config.showdamage();
|
||||
damageMode = config.showdamagedrops();
|
||||
|
||||
if (damageMode != XpDropConfig.DamageMode.ABOVE_OPPONENT)
|
||||
{
|
||||
@@ -343,7 +343,7 @@ public class XpDropPlugin extends Plugin
|
||||
@Subscribe
|
||||
public void onScriptCallbackEvent(ScriptCallbackEvent e)
|
||||
{
|
||||
if (config.showdamage() == XpDropConfig.DamageMode.NONE)
|
||||
if (config.showdamagedrops() == XpDropConfig.DamageMode.NONE)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -1197,7 +1197,7 @@ public class MenuEntrySwapperPlugin extends Plugin
|
||||
swap(client, "teleport menu", option, target, true);
|
||||
}
|
||||
|
||||
if (config.getTempConstruction() && buildingMode)
|
||||
if (config.getTempConstruction() && buildingMode && !Strings.isNullOrEmpty(config.getTempConstructionItems()))
|
||||
{
|
||||
if (event.getType() == WALK.getId())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user