Increment v to 2.1, start adding dummy files

This commit is contained in:
Eric Stokes 2011-10-08 08:22:19 -06:00
parent 7bbdac9012
commit cc3889b166
5 changed files with 26 additions and 11 deletions

View File

@ -3,7 +3,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>com.onarandombox.multiversecore</groupId>
<artifactId>Multiverse-Core</artifactId>
<version>2.0</version>
<version>2.1</version>
<name>Multiverse-Core</name>
<description>World Management Plugin</description>
<properties>

View File

@ -0,0 +1,15 @@
/******************************************************************************
* Multiverse 2 Copyright (c) the Multiverse Team 2011. *
* Multiverse 2 is licensed under the BSD License. *
* For more information please check the README.md file included *
* with this project. *
******************************************************************************/
package com.onarandombox.MultiverseCore;
/**
* Dummy class to make old MV Plugins not explode.
* If this loads, the user WILL get a severe telling them to update said plugin!
*/
public interface MVPlugin {
}

View File

@ -40,8 +40,8 @@ public class MVWorld implements MultiverseWorld {
private boolean keepSpawnInMemory; // Does the World have the spawn loaded all the time?
private Boolean pvp; // Does this World allow PVP?
private Boolean fakePVP; // Should this world have fakePVP on? (used for PVP zones)
private boolean pvp; // Does this World allow PVP?
private boolean fakePVP; // Should this world have fakePVP on? (used for PVP zones)
private GameMode gameMode = GameMode.SURVIVAL;
@ -412,7 +412,7 @@ public class MVWorld implements MultiverseWorld {
saveConfig();
}
public Boolean allowAnimalSpawning() {
public boolean allowAnimalSpawning() {
return this.allowAnimals;
}
@ -429,7 +429,7 @@ public class MVWorld implements MultiverseWorld {
return this.masterList.get("animals");
}
public Boolean allowMonsterSpawning() {
public boolean allowMonsterSpawning() {
return this.allowMonsters;
}
@ -451,7 +451,7 @@ public class MVWorld implements MultiverseWorld {
}
@Override
public void setPVPMode(Boolean pvp) {
public void setPVPMode(boolean pvp) {
if (this.fakePVP) {
this.world.setPVP(true);
} else {

View File

@ -128,19 +128,19 @@ public interface MultiverseWorld {
*
* @return True if ANY animal can, false if no animals can spawn.
*/
public Boolean allowAnimalSpawning();
public boolean allowAnimalSpawning();
/**
* Gets whether or not monsters are allowed to spawn in this world.
*
* @return True if ANY monster can, false if no monsters can spawn.
*/
public Boolean allowMonsterSpawning();
public boolean allowMonsterSpawning();
/**
* Turn pvp on or off. This setting is used to set the world's PVP mode, and thus relies on fakePVP
*
* @param pvpMode True to enable PVP damage, false to disable it.
*/
public void setPVPMode(Boolean pvpMode);
public void setPVPMode(boolean pvpMode);
}

View File

@ -137,7 +137,7 @@ public class InfoCommand extends MultiverseCommand {
// Page 3
message = new ArrayList<FancyText>();
message.add(new FancyHeader("Monster Settings", colors));
message.add(new FancyMessage("Multiverse Setting: ", world.allowMonsterSpawning().toString(), colors));
message.add(new FancyMessage("Multiverse Setting: ", world.allowMonsterSpawning() + "", colors));
message.add(new FancyMessage("Bukkit Setting: ", world.getCBWorld().getAllowMonsters() + "", colors));
if (MultiverseCore.MobsDisabledInDefaultWorld) {
message.add(new FancyMessage(ChatColor.RED + "WARNING: ", "Monsters WILL NOT SPAWN IN THIS WORLD.", colors));
@ -157,7 +157,7 @@ public class InfoCommand extends MultiverseCommand {
// Page 4
message = new ArrayList<FancyText>();
message.add(new FancyHeader("Animal Settings", colors));
message.add(new FancyMessage("Multiverse Setting: ", world.allowAnimalSpawning().toString(), colors));
message.add(new FancyMessage("Multiverse Setting: ", world.allowAnimalSpawning() + "", colors));
message.add(new FancyMessage("Bukkit Setting: ", world.getCBWorld().getAllowAnimals() + "", colors));
if (world.getMonsterList().size() > 0) {
if (world.allowMonsterSpawning()) {