Reformat to new code style, lots of spaces for easy reading.

This commit is contained in:
md_5
2013-02-09 17:55:48 +11:00
parent 69d618c648
commit 23582a635b
44 changed files with 699 additions and 701 deletions

View File

@@ -113,9 +113,9 @@ public enum ChatColor
private ChatColor(char code)
{
this.toString = new String(new char[]
{
COLOR_CHAR, code
});
{
COLOR_CHAR, code
});
}
@Override

View File

@@ -127,9 +127,9 @@ public class PluginManager
{
plugin.onEnable();
ProxyServer.getInstance().getLogger().log(Level.INFO, "Enabled plugin {0} version {1} by {2}", new Object[]
{
entry.getKey(), plugin.getDescription().getVersion(), plugin.getDescription().getAuthor()
});
{
entry.getKey(), plugin.getDescription().getVersion(), plugin.getDescription().getAuthor()
});
} catch (Exception ex)
{
ProxyServer.getInstance().getLogger().log(Level.WARNING, "Exception encountered when loading plugin: " + entry.getKey(), ex);
@@ -159,9 +159,9 @@ public class PluginManager
{
PluginDescription desc = yaml.loadAs(in, PluginDescription.class);
URLClassLoader loader = new PluginClassloader(new URL[]
{
file.toURI().toURL()
});
{
file.toURI().toURL()
});
Class<?> main = loader.loadClass(desc.getMain());
Plugin plugin = (Plugin) main.getDeclaredConstructor().newInstance();
@@ -169,9 +169,9 @@ public class PluginManager
plugins.put(desc.getName(), plugin);
plugin.onLoad();
ProxyServer.getInstance().getLogger().log(Level.INFO, "Loaded plugin {0} version {1} by {2}", new Object[]
{
desc.getName(), desc.getVersion(), desc.getAuthor()
});
{
desc.getName(), desc.getVersion(), desc.getAuthor()
});
}
}
}