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")) { if (event.getPlugin().getDescription().getName().equals("Permissions")) {
MultiverseCore.Permissions = ((Permissions) plugin.getServer().getPluginManager().getPlugin("Permissions")).getHandler(); 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 != null) {
if (iConomy.isEnabled()) { if (iConomy.isEnabled()) {
MultiverseCore.iConomy = (iConomy) iConomy; 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")) { if (event.getPlugin().getDescription().getName().equals("Permissions")) {
MultiverseCore.Permissions = null; 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) { if (MultiverseCore.getiConomy() != null) {
MultiverseCore.iConomy = 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 srcComp = plugin.worlds.get(l.getWorld().getName()).compression;
double trgComp = plugin.worlds.get(w.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 the Targets Compression is 0 then we teleport them to the Spawn of the World.
if (trgComp == 0.0) { if (trgComp == 0.0) {
@ -105,11 +105,11 @@ public class MVTeleport {
} }
if (aux == -1) { if (aux == -1) {
//MultiverseCore.debugMsg("Uh oh, no safe location."); // MultiverseCore.debugMsg("Uh oh, no safe location.");
return null; 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); return new Location(w, x, aux, z);
} }

View File

@ -128,7 +128,7 @@ public class MultiverseCore extends JavaPlugin {
setupCommands(); setupCommands();
// Start the Update Checker // 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.InputStream;
import java.io.InputStreamReader; import java.io.InputStreamReader;
import com.onarandombox.MultiverseCore.MultiverseCore;
/** /**
* https://github.com/Nijikokun/iConomy3/blob/master/com/nijiko/coelho/iConomy/iConomy.java * https://github.com/Nijikokun/iConomy3/blob/master/com/nijiko/coelho/iConomy/iConomy.java
* @author Nijikokun & Coelho * @author Nijikokun & Coelho
@ -39,7 +37,7 @@ public class DefaultConfiguration {
output.write(buf, 0, length); 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) { } catch (Exception e) {
e.printStackTrace(); e.printStackTrace();
} finally { } finally {