Added buy/points/sell command

This commit is contained in:
auto committed 2022-01-11 02:13:08 +01:00
1 parent 64cb948038
commit 219c9024bd
8 files changed
+281 -8

No files matched your search

+2 -1
View File
@@ -1,5 +1,6 @@
package com.alttd.objects;
import com.alttd.config.WorthConfig;
import com.alttd.util.Utilities;
public final class Price {
@@ -12,7 +13,7 @@ public final class Price {
public Price(double price) {
this.price = price;
this.points = (int) price;
this.points = (int) (Math.floor(price / WorthConfig.POINT_MOD) + 1);
}
public static Price addPrice(Price one, Price two) {