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:
+1
-1
@@ -22,7 +22,7 @@ repositories {
|
|||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation("com.github.ajalt.mordant:mordant:2.0.0-alpha2")
|
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 'com.google.guava:guava:29.0-jre'
|
||||||
implementation 'mysql:mysql-connector-java:8.0.21'
|
implementation 'mysql:mysql-connector-java:8.0.21'
|
||||||
implementation 'io.github.classgraph:classgraph:4.8.98'
|
implementation 'io.github.classgraph:classgraph:4.8.98'
|
||||||
|
|||||||
@@ -343,6 +343,8 @@ public class GrandExchangeInterface extends ComponentPlugin {
|
|||||||
String s = value.toString();
|
String s = value.toString();
|
||||||
s = s.replace("k","000");
|
s = s.replace("k","000");
|
||||||
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));
|
setOfferAmount(player, offer, Integer.parseInt(s));
|
||||||
return Unit.INSTANCE;
|
return Unit.INSTANCE;
|
||||||
});
|
});
|
||||||
@@ -379,6 +381,8 @@ public class GrandExchangeInterface extends ComponentPlugin {
|
|||||||
String s = value.toString();
|
String s = value.toString();
|
||||||
s = s.replace("k","000");
|
s = s.replace("k","000");
|
||||||
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));
|
setOfferValue(player, offer, Integer.parseInt(s));
|
||||||
return Unit.INSTANCE;
|
return Unit.INSTANCE;
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -72,6 +72,8 @@ public final class TradeInterfacePlugin extends ComponentPlugin {
|
|||||||
String s = value.toString();
|
String s = value.toString();
|
||||||
s = s.replace("k","000");
|
s = s.replace("k","000");
|
||||||
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);
|
int val = Integer.parseInt(s);
|
||||||
module.getContainer().withdraw(slot, val);
|
module.getContainer().withdraw(slot, val);
|
||||||
return Unit.INSTANCE;
|
return Unit.INSTANCE;
|
||||||
|
|||||||
@@ -376,6 +376,8 @@ public final class BankingPlugin extends OptionHandler {
|
|||||||
String s = value.toString();
|
String s = value.toString();
|
||||||
s = s.replace("k","000");
|
s = s.replace("k","000");
|
||||||
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);
|
int val = Integer.parseInt(s);
|
||||||
p.getBank().takeItem(slot, val);
|
p.getBank().takeItem(slot, val);
|
||||||
p.getBank().updateLastAmountX(val);
|
p.getBank().updateLastAmountX(val);
|
||||||
|
|||||||
Reference in New Issue
Block a user