Style-fixes... They're driving me mad...

This commit is contained in:
main() 2012-01-03 15:01:44 +01:00
parent 9d16b7c445
commit 5b056388a0
7 changed files with 52 additions and 5 deletions

View File

@ -23,6 +23,9 @@ public abstract class MultiverseCommand extends Command {
* The reference to the core.
*/
protected MultiverseCore plugin;
/**
* The reference to {@link MVMessaging}.
*/
protected MVMessaging messaging;
public MultiverseCommand(MultiverseCore plugin) {

View File

@ -26,10 +26,18 @@ public class MVPlayerTouchedPortalEvent extends Event implements Cancellable {
this.l = l;
}
/**
* Gets the {@link Location} of the portal-block that was touched.
* @return The {@link Location} of the portal-block that was touched.
*/
public Location getBlockTouched() {
return this.l;
}
/**
* Gets the {@link Player} that's touching the portal.
* @return The {@link Player} that's touching the portal.
*/
public Player getPlayer() {
return this.p;
}

View File

@ -12,7 +12,7 @@ import org.bukkit.entity.Player;
import org.bukkit.event.Event;
/**
* Called
* Called when a player is respawning.
*/
public class MVRespawnEvent extends Event {
private Player player;
@ -27,18 +27,34 @@ public class MVRespawnEvent extends Event {
this.respawnMethod = respawnMethod;
}
/**
* Gets the {@link Player} that's respawning.
* @return The {@link Player} that's respawning.
*/
public Player getPlayer() {
return this.player;
}
/**
* Gets the respawn-method.
* @return The respawn-method.
*/
public String getRespawnMethod() {
return this.respawnMethod;
}
/**
* Gets the player's respawn-{@link Location}.
* @return The player's respawn-{@link Location}.
*/
public Location getPlayersRespawnLocation() {
return this.location;
}
/**
* Sets the player's respawn-{@link Location}.
* @param l The new respawn-{@link Location}.
*/
public void setRespawnLocation(Location l) {
this.location = l;
}

View File

@ -29,6 +29,9 @@ import org.bukkit.event.entity.FoodLevelChangeEvent;
import java.util.List;
import java.util.logging.Level;
/**
* Multiverse's {@link EntityListener}.
*/
public class MVEntityListener extends EntityListener {
private MultiverseCore plugin;
@ -73,6 +76,7 @@ public class MVEntityListener extends EntityListener {
/**
* Handle Animal/Monster Spawn settings, seems like a more concrete method than using CraftBukkit.
* @param event The event.
*/
@Override
public void onCreatureSpawn(CreatureSpawnEvent event) {

View File

@ -16,6 +16,9 @@ import org.bukkit.event.server.ServerListener;
import java.util.Arrays;
import java.util.logging.Level;
/**
* Multiverse's {@link ServerListener}.
*/
public class MVPluginListener extends ServerListener {
private MultiverseCore plugin;
@ -24,7 +27,10 @@ public class MVPluginListener extends ServerListener {
this.plugin = plugin;
}
/** Keep an eye out for Plugins which we can utilize. */
/**
* Keep an eye out for Plugins which we can utilize.
* @param event The event.
*/
@Override
public void onPluginEnable(PluginEnableEvent event) {
// Let AllPay handle all econ plugin loadings, only go for econ plugins we support
@ -38,7 +44,10 @@ public class MVPluginListener extends ServerListener {
}
}
/** We'll check if any of the plugins we rely on decide to Disable themselves. */
/**
* We'll check if any of the plugins we rely on decide to Disable themselves.
* @param event The event.
*/
@Override
public void onPluginDisable(PluginDisableEvent event) {
// TODO: Disable econ when it disables.

View File

@ -11,11 +11,17 @@ import com.onarandombox.MultiverseCore.MultiverseCore;
import com.onarandombox.MultiverseCore.utils.SafeTTeleporter;
import org.bukkit.Location;
import org.bukkit.Material;
import org.bukkit.event.Event.Type;
import org.bukkit.event.player.PlayerListener;
import org.bukkit.event.player.PlayerPortalEvent;
import java.util.logging.Level;
/**
* Multiverse's second {@link PlayerListener}.
* <p>
* Used to double-monitor {@link Type#PLAYER_PORTAL}.
*/
public class MVPortalAdjustListener extends PlayerListener {
private MultiverseCore plugin;

View File

@ -13,6 +13,9 @@ import org.bukkit.event.weather.ThunderChangeEvent;
import org.bukkit.event.weather.WeatherChangeEvent;
import org.bukkit.event.weather.WeatherListener;
/**
* Multiverse's {@link WeatherListener}.
*/
public class MVWeatherListener extends WeatherListener {
private MultiverseCore plugin;
@ -22,7 +25,6 @@ public class MVWeatherListener extends WeatherListener {
@Override
public void onWeatherChange(WeatherChangeEvent event) {
MultiverseWorld world = this.plugin.getMVWorldManager().getMVWorld(event.getWorld().getName());
if (world != null) {
// If it's going to start raining and we have weather disabled
@ -32,7 +34,6 @@ public class MVWeatherListener extends WeatherListener {
@Override
public void onThunderChange(ThunderChangeEvent event) {
MultiverseWorld world = this.plugin.getMVWorldManager().getMVWorld(event.getWorld().getName());
if (world != null) {
// If it's going to start raining and we have weather disabled