Klasse - ZahlenTest:
import java.text.DecimalFormat;
public class ZahlenTest {
public static format(long zahl){
DecimalFormat nf = new DecimalFormat();
String ausgabe = nf.format(zahl);
return ausgabe;
}
}
Da wo du die Zahl brauchst (Beispiel):
public class CommandOderSo {
public boolean onCommand(hier kommt alles für nen command) {
// Hier kommt erst command structure und so
player.sendMessage("Du hast " + ZahlenTest.format(geld) + "Coins")
}
}
So oder so ähnlich könnte es klappen.
Hab das grad auf die schnelle zusammen geschrieben um dir zu helfen also ihr könnt mir Fehler die ich evtl. gemacht habe in die Kommentare schreiben.
LG Felix
PS: Wenn es dir geholfen hat dann schreib es mir :)