CleanUp + Format

This commit is contained in:
Rigby 2011-03-31 16:06:48 +01:00
parent 3659e41098
commit 93aae71375
4 changed files with 12 additions and 14 deletions

View File

@ -25,7 +25,7 @@ public class MVPluginListener extends ServerListener {
*/
if (event.getPlugin().getDescription().getName().equals("Permissions")) {
MultiverseCore.Permissions = ((Permissions) plugin.getServer().getPluginManager().getPlugin("Permissions")).getHandler();
//MultiverseCore.log.info(MultiverseCore.logPrefix + "- Found Permissions");
// MultiverseCore.log.info(MultiverseCore.logPrefix + "- Found Permissions");
}
/**
@ -37,7 +37,7 @@ public class MVPluginListener extends ServerListener {
if (iConomy != null) {
if (iConomy.isEnabled()) {
MultiverseCore.iConomy = (iConomy) iConomy;
//MultiverseCore.log.info(MultiverseCore.logPrefix + "- Found iConomy");
// MultiverseCore.log.info(MultiverseCore.logPrefix + "- Found iConomy");
}
}
}
@ -52,7 +52,7 @@ public class MVPluginListener extends ServerListener {
*/
if (event.getPlugin().getDescription().getName().equals("Permissions")) {
MultiverseCore.Permissions = null;
//MultiverseCore.log.info(MultiverseCore.logPrefix + "- Permissions has been Disabled");
// MultiverseCore.log.info(MultiverseCore.logPrefix + "- Permissions has been Disabled");
}
/**
@ -60,7 +60,7 @@ public class MVPluginListener extends ServerListener {
*/
if (MultiverseCore.getiConomy() != null) {
MultiverseCore.iConomy = null;
//MultiverseCore.log.info(MultiverseCore.logPrefix + "- iConom has been Disabled");
// MultiverseCore.log.info(MultiverseCore.logPrefix + "- iConom has been Disabled");
}
}

View File

@ -39,7 +39,7 @@ public class MVTeleport {
double srcComp = plugin.worlds.get(l.getWorld().getName()).compression;
double trgComp = plugin.worlds.get(w.getName()).compression;
//MultiverseCore.debugMsg(p.getName() + " -> " + p.getWorld().getName() + "(" + srcComp + ") -> " + w.getName() + "(" + trgComp + ")");
// MultiverseCore.debugMsg(p.getName() + " -> " + p.getWorld().getName() + "(" + srcComp + ") -> " + w.getName() + "(" + trgComp + ")");
// If the Targets Compression is 0 then we teleport them to the Spawn of the World.
if (trgComp == 0.0) {
@ -105,11 +105,11 @@ public class MVTeleport {
}
if (aux == -1) {
//MultiverseCore.debugMsg("Uh oh, no safe location.");
// MultiverseCore.debugMsg("Uh oh, no safe location.");
return null;
}
//MultiverseCore.debugMsg("Target location (safe): " + x + ", " + aux + ", " + z);
// MultiverseCore.debugMsg("Target location (safe): " + x + ", " + aux + ", " + z);
return new Location(w, x, aux, z);
}

View File

@ -49,11 +49,11 @@ public class MultiverseCore extends JavaPlugin {
// Variable to state whether we are displaying Debug Messages or not.
public static boolean debug = true;
// Useless stuff to keep us going.
private static final Logger log = Logger.getLogger("Minecraft");
private static DebugLog debugLog;
public static final String logPrefix = "[MultiVerse-Core] ";
public static Plugin instance;
public static Server server;
@ -65,7 +65,7 @@ public class MultiverseCore extends JavaPlugin {
// Messaging
private Messaging messaging = new Messaging();
// MultiVerse Permissions Handler
public MVPermissions ph = new MVPermissions(this);
@ -128,7 +128,7 @@ public class MultiverseCore extends JavaPlugin {
setupCommands();
// Start the Update Checker
//updateCheck = new UpdateChecker(this.getDescription().getName(), this.getDescription().getVersion());
// updateCheck = new UpdateChecker(this.getDescription().getName(), this.getDescription().getVersion());
}
/**

View File

@ -10,8 +10,6 @@ import java.io.FileWriter;
import java.io.InputStream;
import java.io.InputStreamReader;
import com.onarandombox.MultiverseCore.MultiverseCore;
/**
* https://github.com/Nijikokun/iConomy3/blob/master/com/nijiko/coelho/iConomy/iConomy.java
* @author Nijikokun & Coelho
@ -39,7 +37,7 @@ public class DefaultConfiguration {
output.write(buf, 0, length);
}
//MultiverseCore.log.info(MultiverseCore.logPrefix + "Default config file written: " + name);
// MultiverseCore.log.info(MultiverseCore.logPrefix + "Default config file written: " + name);
} catch (Exception e) {
e.printStackTrace();
} finally {