Generic cleanup of the org.bukkit.craftbukkit classes.

By: Erik Broes <erikbroes@grum.nl>
This commit is contained in:
CraftBukkit/Spigot
2011-06-12 01:12:43 +02:00
parent 889f8d765d
commit 9bf573516b
34 changed files with 160 additions and 145 deletions

View File

@@ -26,10 +26,10 @@ public class ServerCommandListener implements ICommandListener {
public String getName() {
try {
Method getName = commandSender.getClass().getMethod( "getName" );
Method getName = commandSender.getClass().getMethod("getName");
return (String) getName.invoke(commandSender);
} catch (Exception e) {
}
} catch (Exception e) {}
return this.prefix;
}