Code Overhaul + Minor Fixes
This commit is contained in:
@@ -51,12 +51,7 @@ public class CmdCheckpoint extends FCommand {
|
||||
|
||||
if (checkfaction.getId().equals(Factions.getInstance().getWilderness().getId()) || checkfaction.getId().equals(fme.getFaction().getId())) {
|
||||
fme.msg(TL.COMMAND_CHECKPOINT_GO);
|
||||
this.doWarmUp(WarmUpUtil.Warmup.CHECKPOINT, TL.WARMUPS_NOTIFY_TELEPORT, "Checkpoint", new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
fme.getPlayer().teleport(fme.getFaction().getCheckpoint());
|
||||
}
|
||||
}, this.p.getConfig().getLong("warmups.f-checkpoint", 0));
|
||||
this.doWarmUp(WarmUpUtil.Warmup.CHECKPOINT, TL.WARMUPS_NOTIFY_TELEPORT, "Checkpoint", () -> fme.getPlayer().teleport(fme.getFaction().getCheckpoint()), this.p.getConfig().getLong("warmups.f-checkpoint", 0));
|
||||
} else {
|
||||
fme.msg(TL.COMMAND_CHECKPOINT_CLAIMED);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user