diff --git a/plugin-playground/src/main/java/InterfaceDebugPlugin/plugin.properties b/plugin-playground/src/main/java/InterfaceDebugPlugin/plugin.properties index 2a2d1b2..c3e8109 100644 --- a/plugin-playground/src/main/java/InterfaceDebugPlugin/plugin.properties +++ b/plugin-playground/src/main/java/InterfaceDebugPlugin/plugin.properties @@ -1,4 +1,3 @@ - AUTHOR='Ceikry' DESCRIPTION='Enables visual display of component children and a log of interface-related varps.' -VERSION=-1.1 +VERSION=1.1 diff --git a/plugin-playground/src/main/java/VarpLogPlugin/plugin.properties b/plugin-playground/src/main/java/VarpLogPlugin/plugin.properties index 97aa366..2d38f54 100644 --- a/plugin-playground/src/main/java/VarpLogPlugin/plugin.properties +++ b/plugin-playground/src/main/java/VarpLogPlugin/plugin.properties @@ -1,4 +1,3 @@ - AUTHOR='Ceikry' DESCRIPTION='Draws some info about varp changes on the screen.' -VERSION=-1.0 +VERSION=1.0 diff --git a/plugin-playground/src/main/kotlin/SlayerTrackerPlugin/plugin.kt b/plugin-playground/src/main/kotlin/SlayerTrackerPlugin/plugin.kt index 1415135..0c1f50d 100644 --- a/plugin-playground/src/main/kotlin/SlayerTrackerPlugin/plugin.kt +++ b/plugin-playground/src/main/kotlin/SlayerTrackerPlugin/plugin.kt @@ -9,6 +9,10 @@ import rt4.Sprite import java.awt.Color import java.lang.Exception +/** + * Very simple slayer task tracker + * @author Ceikry + */ class plugin : Plugin() { val boxColor = 6116423 val posX = 5 diff --git a/plugin-playground/src/main/kotlin/SlayerTrackerPlugin/plugin.properties b/plugin-playground/src/main/kotlin/SlayerTrackerPlugin/plugin.properties index 31de62c..afca955 100644 --- a/plugin-playground/src/main/kotlin/SlayerTrackerPlugin/plugin.properties +++ b/plugin-playground/src/main/kotlin/SlayerTrackerPlugin/plugin.properties @@ -1,4 +1,3 @@ - -AUTHOR='Me' -DESCRIPTION='Make sure to rename both the MyPlugin folder and the package statement in plugin.java! -VERSION=-1.1 +AUTHOR='Ceikry' +DESCRIPTION='Helps to keep track of kills remaining on a slayer task.' +VERSION=1.1 diff --git a/plugin-playground/src/main/kotlin/XPDropPlugin/plugin.kt b/plugin-playground/src/main/kotlin/XPDropPlugin/plugin.kt index f206877..2b4b082 100644 --- a/plugin-playground/src/main/kotlin/XPDropPlugin/plugin.kt +++ b/plugin-playground/src/main/kotlin/XPDropPlugin/plugin.kt @@ -59,6 +59,11 @@ class plugin : Plugin() { val gain = xp - lastXp[skill] if (gain <= 0) return + if (lastXp[skill] == 0) { + lastXp[skill] = xp + totalXp += xp + return + } lastXp[skill] = xp val currentTail = try { diff --git a/plugin-playground/src/main/kotlin/XPDropPlugin/plugin.properties b/plugin-playground/src/main/kotlin/XPDropPlugin/plugin.properties index 1e4001d..9ce85d3 100644 --- a/plugin-playground/src/main/kotlin/XPDropPlugin/plugin.properties +++ b/plugin-playground/src/main/kotlin/XPDropPlugin/plugin.properties @@ -1,3 +1,3 @@ AUTHOR='Ceikry' DESCRIPTION='Displays some pretty awesome XP drops :)' -VERSION=-1.1 +VERSION=1.1