Release the native Jarvis connector, Exchange and quest/claim GUI without older web changes
This commit is contained in:
parent
c105a07848
commit
5ae89e05aa
1 changed files with 4396 additions and 104 deletions
|
|
@ -0,0 +1,6 @@
|
|||
package com.dunerealms.gui;
|
||||
import java.math.BigDecimal;
|
||||
final class ExchangePrice {
|
||||
static long parse(String text){if(text==null||!text.matches("[0-9]{1,7}(?:\\.[0-9]{1,2})?"))throw new IllegalArgumentException("Enter a price such as 1.00 DM.");long n=new BigDecimal(text).movePointRight(2).longValueExact();if(n<1||n>100000000)throw new IllegalArgumentException("Choose a price between 0.01 and 1000000.00 DM.");return n;}
|
||||
private ExchangePrice(){}
|
||||
}
|
||||
Loading…
Reference in a new issue

Staff