geforkt von SteamWar/BungeeCore
Format
Dieser Commit ist enthalten in:
Ursprung
1815c986d5
Commit
94fe119330
@ -25,9 +25,6 @@ import net.md_5.bungee.api.CommandSender;
|
|||||||
import net.md_5.bungee.api.connection.ProxiedPlayer;
|
import net.md_5.bungee.api.connection.ProxiedPlayer;
|
||||||
|
|
||||||
import java.text.DecimalFormat;
|
import java.text.DecimalFormat;
|
||||||
import java.text.Format;
|
|
||||||
import java.text.NumberFormat;
|
|
||||||
import java.util.Locale;
|
|
||||||
|
|
||||||
public class PlaytimeCommand extends BasicCommand{
|
public class PlaytimeCommand extends BasicCommand{
|
||||||
|
|
||||||
@ -43,6 +40,6 @@ public class PlaytimeCommand extends BasicCommand{
|
|||||||
String s = Message.parse("TIME_FORMAT", sender);
|
String s = Message.parse("TIME_FORMAT", sender);
|
||||||
String format = new DecimalFormat(s).format((SteamwarUser.get((ProxiedPlayer) sender).getOnlinetime() / (double) 3600));
|
String format = new DecimalFormat(s).format((SteamwarUser.get((ProxiedPlayer) sender).getOnlinetime() / (double) 3600));
|
||||||
|
|
||||||
Message.send("DECIMAL_FORMAT", sender, format);
|
Message.send(format,sender);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren