Update BauSystem to new CommandFramework #217
@ -77,6 +77,7 @@ public class CommandTPSLimiter extends SWCommand {
|
|||||||
|
|
||||||
@Register
|
@Register
|
||||||
public void valueCommand(Player p, String tpsLimit) {
|
public void valueCommand(Player p, String tpsLimit) {
|
||||||
|
if (!permissionCheck(p)) return;
|
||||||
try {
|
try {
|
||||||
double tpsLimitDouble = Double.parseDouble(tpsLimit.replace(',', '.'));
|
double tpsLimitDouble = Double.parseDouble(tpsLimit.replace(',', '.'));
|
||||||
if (tpsLimitDouble < 0.5 || tpsLimitDouble > (TPSUtils.isWarpAllowed() ? 40 : 20)) {
|
if (tpsLimitDouble < 0.5 || tpsLimitDouble > (TPSUtils.isWarpAllowed() ? 40 : 20)) {
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren