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 8dd806214c
commit 557198b6cb
5 changed files with 10 additions and 2 deletions

View file

@ -12,7 +12,7 @@ dependencies {
implementation 'com.github.Vatuu:discord-rpc:1.6.2'
implementation 'com.googlecode.json-simple:json-simple:1.1.1'
implementation("com.github.ajalt.mordant:mordant:2.0.0-alpha2")
implementation "org.jetbrains:markdown:0.2.0"
implementation "org.jetbrains:markdown:0.2.4"
implementation files('libs/clientlibs.jar')
}

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'

View file

@ -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;
});

View file

@ -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;

View file

@ -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);