Updated the dependency "org.jetbrains:markdown-jvm:0.2.0" to the newer "org.jetbrains:markdown-jvm:0.2.4" on the Client's and Server's build.gradle.

You can now use things like "5m" for amounts in trade, GE and bank interfaces.
This commit is contained in:
unrealhaze
2021-07-19 22:37:44 -05:00
parent eb34e17d80
commit 4450b7e441
4 changed files with 9 additions and 1 deletions
+1 -1
View File
@@ -22,7 +22,7 @@ repositories {
dependencies {
implementation("com.github.ajalt.mordant:mordant:2.0.0-alpha2")
implementation "org.jetbrains:markdown-jvm:0.2.0"
implementation "org.jetbrains:markdown-jvm:0.2.4"
implementation 'com.google.guava:guava:29.0-jre'
implementation 'mysql:mysql-connector-java:8.0.21'
implementation 'io.github.classgraph:classgraph:4.8.98'
@@ -343,6 +343,8 @@ public class GrandExchangeInterface extends ComponentPlugin {
String s = value.toString();
s = s.replace("k","000");
s = s.replace("K","000");
s = s.replace("m","000000");
s = s.replace("M","000000");
setOfferAmount(player, offer, Integer.parseInt(s));
return Unit.INSTANCE;
});
@@ -379,6 +381,8 @@ public class GrandExchangeInterface extends ComponentPlugin {
String s = value.toString();
s = s.replace("k","000");
s = s.replace("K","000");
s = s.replace("m","000000");
s = s.replace("M","000000");
setOfferValue(player, offer, Integer.parseInt(s));
return Unit.INSTANCE;
});
@@ -72,6 +72,8 @@ public final class TradeInterfacePlugin extends ComponentPlugin {
String s = value.toString();
s = s.replace("k","000");
s = s.replace("K","000");
s = s.replace("m","000000");
s = s.replace("M","000000");
int val = Integer.parseInt(s);
module.getContainer().withdraw(slot, val);
return Unit.INSTANCE;
@@ -376,6 +376,8 @@ public final class BankingPlugin extends OptionHandler {
String s = value.toString();
s = s.replace("k","000");
s = s.replace("K","000");
s = s.replace("m","000000");
s = s.replace("M","000000");
int val = Integer.parseInt(s);
p.getBank().takeItem(slot, val);
p.getBank().updateLastAmountX(val);