Changed all tabs to 4 spaces

By: durron597 <martin.jared@gmail.com>
This commit is contained in:
Bukkit/Spigot
2011-01-01 08:01:07 -05:00
parent cf3973a5f9
commit 76ab7321fd
19 changed files with 203 additions and 204 deletions

View File

@@ -5,8 +5,8 @@ package org.bukkit.plugin;
* Thrown when attempting to load an invalid PluginDescriptionFile
*/
public class InvalidDescriptionException extends Exception {
private static final long serialVersionUID = 5721389122281775894L;
private final Throwable cause;
private static final long serialVersionUID = 5721389122281775894L;
private final Throwable cause;
/**
* Constructs a new InvalidDescriptionException based on the given Exception

View File

@@ -5,8 +5,8 @@ package org.bukkit.plugin;
* Thrown when attempting to load an invalid Plugin file
*/
public class InvalidPluginException extends Exception {
private static final long serialVersionUID = -8242141640709409542L;
private final Throwable cause;
private static final long serialVersionUID = -8242141640709409542L;
private final Throwable cause;
/**
* Constructs a new InvalidPluginException based on the given Exception

View File

@@ -81,7 +81,7 @@ public final class SimplePluginManager implements PluginManager {
} catch (InvalidPluginException ex) {
Logger.getLogger(SimplePluginManager.class.getName()).log(Level.SEVERE, "Could not load " + file.getPath() + " in " + directory.getPath(), ex);
}
if (plugin != null) {
result.add(plugin);
}
@@ -120,7 +120,7 @@ public final class SimplePluginManager implements PluginManager {
return result;
}
/**
* Checks if the given plugin is loaded and returns it when applicable
*
@@ -203,7 +203,7 @@ public final class SimplePluginManager implements PluginManager {
if (registration.getPriority().compareTo(priority) < 0) {
break;
}
position++;
}
} else {

View File

@@ -24,13 +24,13 @@ import org.bukkit.plugin.*;
public final class JavaPluginLoader implements PluginLoader {
private final Server server;
private final Pattern[] fileFilters = new Pattern[] {
Pattern.compile("\\.jar$"),
Pattern.compile("\\.jar$"),
};
public JavaPluginLoader(Server instance) {
server = instance;
}
public Plugin loadPlugin(File file) throws InvalidPluginException {
JavaPlugin result = null;
PluginDescriptionFile description = null;
@@ -82,41 +82,41 @@ public final class JavaPluginLoader implements PluginLoader {
PlayerListener trueListener = (PlayerListener)listener;
switch (event.getType()) {
case PLAYER_JOIN:
trueListener.onPlayerJoin((PlayerEvent)event);
break;
case PLAYER_QUIT:
trueListener.onPlayerQuit((PlayerEvent)event);
break;
case PLAYER_COMMAND:
trueListener.onPlayerCommand((PlayerChatEvent)event);
break;
case PLAYER_CHAT:
trueListener.onPlayerChat((PlayerChatEvent)event);
break;
case PLAYER_MOVE:
trueListener.onPlayerMove((PlayerMoveEvent)event);
break;
case PLAYER_TELEPORT:
trueListener.onPlayerTeleport((PlayerMoveEvent)event);
break;
case PLAYER_LOGIN:
trueListener.onPlayerLogin((PlayerLoginEvent)event);
break;
case PLAYER_JOIN:
trueListener.onPlayerJoin((PlayerEvent)event);
break;
case PLAYER_QUIT:
trueListener.onPlayerQuit((PlayerEvent)event);
break;
case PLAYER_COMMAND:
trueListener.onPlayerCommand((PlayerChatEvent)event);
break;
case PLAYER_CHAT:
trueListener.onPlayerChat((PlayerChatEvent)event);
break;
case PLAYER_MOVE:
trueListener.onPlayerMove((PlayerMoveEvent)event);
break;
case PLAYER_TELEPORT:
trueListener.onPlayerTeleport((PlayerMoveEvent)event);
break;
case PLAYER_LOGIN:
trueListener.onPlayerLogin((PlayerLoginEvent)event);
break;
}
} else if (listener instanceof BlockListener) {
BlockListener trueListener = (BlockListener)listener;
switch (event.getType()) {
case BLOCK_PHYSICS:
trueListener.onBlockPhysics((BlockPhysicsEvent)event);
break;
case BLOCK_CANBUILD:
trueListener.onBlockCanBuild((BlockCanBuildEvent)event);
break;
case BLOCK_FLOW:
trueListener.onBlockFlow((BlockFromToEvent)event);
break;
case BLOCK_PHYSICS:
trueListener.onBlockPhysics((BlockPhysicsEvent)event);
break;
case BLOCK_CANBUILD:
trueListener.onBlockCanBuild((BlockCanBuildEvent)event);
break;
case BLOCK_FLOW:
trueListener.onBlockFlow((BlockFromToEvent)event);
break;
}
}
}