Fix format parsing using in-game commands in console (Fixes #5670)
This commit is contained in:
parent
14125d9c4c
commit
77d505bb4a
|
@ -10,6 +10,7 @@ import com.google.common.collect.ImmutableList;
|
|||
import com.google.common.collect.Lists;
|
||||
import com.google.common.collect.Maps;
|
||||
import net.ess3.api.IEssentials;
|
||||
import net.ess3.api.TranslatableException;
|
||||
import org.bukkit.Server;
|
||||
import org.bukkit.command.Command;
|
||||
import org.bukkit.command.CommandSender;
|
||||
|
@ -180,7 +181,7 @@ public abstract class EssentialsCommand implements IEssentialsCommand {
|
|||
}
|
||||
|
||||
protected void run(final Server server, final CommandSource sender, final String commandLabel, final String[] args) throws Exception {
|
||||
throw new Exception(tlLiteral("onlyPlayers", commandLabel));
|
||||
throw new TranslatableException("onlyPlayers", commandLabel);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in New Issue