mirror of
https://github.com/essentials/Essentials.git
synced 2025-08-08 07:36:42 +02:00
Merge fixes
This commit is contained in:
@@ -159,13 +159,6 @@ public class Teleport implements Runnable, ITeleport
|
||||
try
|
||||
{
|
||||
user.checkCooldown(TimestampType.LASTTELEPORT, ess.getRanks().getTeleportCooldown(user), !check, Permissions.TELEPORT_COOLDOWN_BYPASS);
|
||||
else if (lastTime > earliestLong && !user.isAuthorized("essentials.teleport.cooldown.bypass"))
|
||||
{
|
||||
time.setTimeInMillis(lastTime);
|
||||
time.add(Calendar.SECOND, (int)delay);
|
||||
time.add(Calendar.MILLISECOND, (int)((delay * 1000.0) % 1000.0));
|
||||
throw new Exception(_("timeBeforeTeleport", Util.formatDateDiff(time.getTimeInMillis())));
|
||||
}
|
||||
}
|
||||
catch (CooldownException ex)
|
||||
{
|
||||
|
@@ -58,8 +58,7 @@ public class Commandkit extends EssentialsCommand
|
||||
{
|
||||
if (args.length < 2)
|
||||
{
|
||||
final String kitList = Kit.listKits(ess, null);
|
||||
sender.sendMessage(kitList.length() > 0 ? _("kits", kitList) : _("noKits"));
|
||||
listKits(sender);
|
||||
throw new NoChargeException();
|
||||
}
|
||||
{
|
||||
|
@@ -3,7 +3,6 @@ package com.earth2me.essentials.xmpp;
|
||||
import com.earth2me.essentials.api.IReload;
|
||||
import com.earth2me.essentials.api.IUser;
|
||||
import com.earth2me.essentials.utils.Util;
|
||||
import com.earth2me.essentials.Util;
|
||||
import java.io.File;
|
||||
import java.util.*;
|
||||
import java.util.logging.Handler;
|
||||
|
Reference in New Issue
Block a user