mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-08-02 02:33:08 +00:00
Switch to the new I18n class and format cleanup of all classes
This commit is contained in:
parent
19f5a2340d
commit
220d68f375
207 changed files with 1247 additions and 1306 deletions
|
@ -2,20 +2,12 @@ package com.earth2me.essentials;
|
|||
|
||||
import com.avaje.ebean.config.ServerConfig;
|
||||
import java.io.File;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Set;
|
||||
import java.util.UUID;
|
||||
import java.util.*;
|
||||
import java.util.concurrent.Callable;
|
||||
import java.util.concurrent.Future;
|
||||
import java.util.logging.Logger;
|
||||
import org.bukkit.GameMode;
|
||||
import org.bukkit.Location;
|
||||
import org.bukkit.Server;
|
||||
import org.bukkit.World;
|
||||
import org.bukkit.World.Environment;
|
||||
import org.bukkit.WorldCreator;
|
||||
import org.bukkit.*;
|
||||
import org.bukkit.command.CommandSender;
|
||||
import org.bukkit.command.ConsoleCommandSender;
|
||||
import org.bukkit.command.PluginCommand;
|
||||
|
@ -469,8 +461,8 @@ public class FakeServer implements Server
|
|||
@Override
|
||||
public org.bukkit.OfflinePlayer getOfflinePlayer(final String string)
|
||||
{
|
||||
return new org.bukkit.OfflinePlayer() {
|
||||
|
||||
return new org.bukkit.OfflinePlayer()
|
||||
{
|
||||
@Override
|
||||
public boolean isOnline()
|
||||
{
|
||||
|
|
|
@ -1,13 +1,9 @@
|
|||
package com.earth2me.essentials;
|
||||
|
||||
import junit.framework.TestCase;
|
||||
import com.earth2me.essentials.settings.Settings;
|
||||
import com.earth2me.essentials.storage.StorageObject;
|
||||
import java.io.ByteArrayInputStream;
|
||||
import java.io.ByteArrayOutputStream;
|
||||
import java.io.InputStreamReader;
|
||||
import java.io.PrintWriter;
|
||||
import java.io.Reader;
|
||||
import java.io.*;
|
||||
import junit.framework.TestCase;
|
||||
import org.junit.Test;
|
||||
|
||||
|
||||
|
|
|
@ -30,16 +30,17 @@ public class UtilTest extends TestCase
|
|||
{
|
||||
fail("IOException");
|
||||
}
|
||||
Util.updateLocale("en_US", ess);
|
||||
}
|
||||
|
||||
public void testFDDnow() {
|
||||
}
|
||||
|
||||
public void testFDDnow()
|
||||
{
|
||||
Calendar c = new GregorianCalendar();
|
||||
String resp = Util.formatDateDiff(c, c);
|
||||
assertEquals(resp, "now");
|
||||
}
|
||||
|
||||
public void testFDDfuture() {
|
||||
|
||||
public void testFDDfuture()
|
||||
{
|
||||
Calendar a, b;
|
||||
a = new GregorianCalendar(2010, 1, 1, 10, 0, 0);
|
||||
b = new GregorianCalendar(2010, 1, 1, 10, 0, 1);
|
||||
|
@ -105,8 +106,9 @@ public class UtilTest extends TestCase
|
|||
b = new GregorianCalendar(2011, 4, 31, 10, 5, 0);
|
||||
assertEquals(" 5 minutes", Util.formatDateDiff(a, b));
|
||||
}
|
||||
|
||||
public void testFDDpast() {
|
||||
|
||||
public void testFDDpast()
|
||||
{
|
||||
Calendar a, b;
|
||||
a = new GregorianCalendar(2010, 1, 1, 10, 0, 0);
|
||||
b = new GregorianCalendar(2010, 1, 1, 9, 59, 59);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue