mirror of
https://github.com/Multiverse/Multiverse-Core.git
synced 2024-12-24 18:07:43 +01:00
CleanUp + Format
This commit is contained in:
parent
3659e41098
commit
93aae71375
@ -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");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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);
|
||||||
}
|
}
|
||||||
|
@ -49,11 +49,11 @@ public class MultiverseCore extends JavaPlugin {
|
|||||||
|
|
||||||
// Variable to state whether we are displaying Debug Messages or not.
|
// Variable to state whether we are displaying Debug Messages or not.
|
||||||
public static boolean debug = true;
|
public static boolean debug = true;
|
||||||
|
|
||||||
// Useless stuff to keep us going.
|
// Useless stuff to keep us going.
|
||||||
private static final Logger log = Logger.getLogger("Minecraft");
|
private static final Logger log = Logger.getLogger("Minecraft");
|
||||||
private static DebugLog debugLog;
|
private static DebugLog debugLog;
|
||||||
|
|
||||||
public static final String logPrefix = "[MultiVerse-Core] ";
|
public static final String logPrefix = "[MultiVerse-Core] ";
|
||||||
public static Plugin instance;
|
public static Plugin instance;
|
||||||
public static Server server;
|
public static Server server;
|
||||||
@ -65,7 +65,7 @@ public class MultiverseCore extends JavaPlugin {
|
|||||||
|
|
||||||
// Messaging
|
// Messaging
|
||||||
private Messaging messaging = new Messaging();
|
private Messaging messaging = new Messaging();
|
||||||
|
|
||||||
// MultiVerse Permissions Handler
|
// MultiVerse Permissions Handler
|
||||||
public MVPermissions ph = new MVPermissions(this);
|
public MVPermissions ph = new MVPermissions(this);
|
||||||
|
|
||||||
@ -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());
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user