Fix lots of bad things with #255

This commit is contained in:
Eric Stokes 2011-11-25 16:56:36 -07:00
parent 3e3990eba4
commit 9710501a03
5 changed files with 0 additions and 253 deletions

View File

@ -1,21 +0,0 @@
/******************************************************************************
* 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.utils;
/**
* Dummy class to make old MV Plugins not explode.
* If this loads, the user WILL get a severe telling them to update said plugin!
* WILL BE DELETED ON 11/1/11
*/
@Deprecated
public class DebugLog extends com.onarandombox.MultiverseCore.utils.DebugLog {
public DebugLog(String logger, String file) {
super(logger, file);
}
}

View File

@ -1,28 +0,0 @@
/******************************************************************************
* 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.utils;
import com.onarandombox.MultiverseCore.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!
* WILL BE DELETED ON 11/1/11
*/
@Deprecated
public class DestinationFactory extends com.onarandombox.MultiverseCore.destination.DestinationFactory {
public DestinationFactory(MultiverseCore plugin) {
super(plugin);
}
@Override
public MVDestination getDestination(String destination) {
return new InvalidDestination();
}
}

View File

@ -1,164 +0,0 @@
/******************************************************************************
* 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.utils;
import org.bukkit.Location;
import org.bukkit.entity.Entity;
import org.bukkit.plugin.java.JavaPlugin;
import org.bukkit.util.Vector;
/**
* Dummy class to make old MV Plugins not explode.
* If this loads, the user WILL get a severe telling them to update said plugin!
* WILL BE DELETED ON 11/1/11
*/
@Deprecated
public class InvalidDestination implements com.onarandombox.utils.MVDestination {
/**
* Returns the identifier or prefix that is required for this destination.
* <p/>
* Portals have a prefix of "p" for example and OpenWarp (third party plugin) uses "ow". This is derived from a
* hash and cannot have duplicate values. Read that as your plugin cannot use 'p' because it's already used.
* Please check the wiki when adding a custom destination!
*
* @return The identifier or prefix that is required for this destination.
*/
@Override
public String getIdentifier() {
return null; //To change body of implemented methods use File | Settings | File Templates.
}
/**
* Allows you to determine if a Destination is valid for the type it thinks it is.
* <p/>
* An example of this would be the exact destination. A valid string would be: e:0,0,0 where an invalid one would
* be e:1:2:3. The first string would return true the second would return false. This is simply a convenience
* method
* and does not even NEED to be called, but it's highly recommended if you're teleporting, but it's mainly for
* Multiverse Internal use.
*
* @param plugin The plugin who the type belongs to.
* @param destination The destination string. ex: p:MyPortal:nw
*
* @return True if the destination is valid, false if not.
*/
@Override
public boolean isThisType(JavaPlugin plugin, String destination) {
return false; //To change body of implemented methods use File | Settings | File Templates.
}
/**
* Returns the location a specific entity will spawn at.
* <p/>
* To just retrieve the location as it is stored you can just pass null, but be warned some destinations may return
* null back to you if you do this. It is always safer to pass an actual entity. This is used so things like
* minecarts can be teleported.
* <p/>
* Do not forget to use {@link #getVelocity()} as destinations can use this too!
*
* @param entity The entity to be teleported.
*
* @return The location of the entity.
*/
@Override
public Location getLocation(Entity entity) {
return null; //To change body of implemented methods use File | Settings | File Templates.
}
/**
* Returns the velocity vector for this destination.
* <p/>
* Plugins wishing to fully support MVDestinations MUST implement this.
*
* @return A vector representing the speed/direction the player should travel when arriving
*/
@Override
public Vector getVelocity() {
return null; //To change body of implemented methods use File | Settings | File Templates.
}
/**
* Sets the destination string.
* <p/>
* This should be used when you want to tell this destination object about a change in where it should take people.
* The destination param should be match the result from {@link #getIdentifier()}. A valid example would be that if
* {@link #getIdentifier()} returned "ow" our destination string could be "ow:TownCenter" but could not be
* "p:HomePortal"
*
* @param plugin The plugin who the type belongs to.
* @param destination The destination string. ex: p:MyPortal:nw
*/
@Override
public void setDestination(JavaPlugin plugin, String destination) {
//To change body of implemented methods use File | Settings | File Templates.
}
/**
* Returns true if the destination is valid and players will be taken to it.
* <p/>
* Even if destinations are in the correct format (p:MyPortal) MyPortal may not exist, and therefore this would
* return false.
*
* @return True if the destination is valid; false if not.
*/
@Override
public boolean isValid() {
return false; //To change body of implemented methods use File | Settings | File Templates.
}
/**
* Gives you a general friendly description of the type of destination.
* <p/>
* For example, the PlayerDestination sets this to "Player". You can use this to show where a player will be taken.
*
* @return A friendly string description of the type of destination.
*/
@Override
public String getType() {
return null; //To change body of implemented methods use File | Settings | File Templates.
}
/**
* Gives you a specific name of the destination.
* <p/>
* For example, the PlayerDestination sets this to The Player's Name.
*
* @return A friendly string stating the name of the destination.
*/
@Override
public String getName() {
return null; //To change body of implemented methods use File | Settings | File Templates.
}
/**
* Returns the permissions string required to go here.
* <p/>
* ex: multiverse.access.world
* <p/>
* NOTE: This is NOT the permission to use the teleport command.
*
* @return the permissions string required to go here.
*/
@Override
public String getRequiredPermission() {
return null; //To change body of implemented methods use File | Settings | File Templates.
}
/**
* Should the Multiverse SafeTeleporter be used?
* <p/>
* If not, MV will blindly take people to the location specified.
*
* @return True if the SafeTeleporter will be used, false if not.
*/
@Override
public boolean useSafeTeleporter() {
return false; //To change body of implemented methods use File | Settings | File Templates.
}
}

View File

@ -1,18 +0,0 @@
/******************************************************************************
* 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.utils;
/**
* Dummy class to make old MV Plugins not explode.
* If this loads, the user WILL get a severe telling them to update said plugin!
* WILL BE DELETED ON 11/1/11
*/
@Deprecated
public interface MVDestination extends com.onarandombox.MultiverseCore.api.MVDestination {
}

View File

@ -1,22 +0,0 @@
/******************************************************************************
* 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.utils;
import com.onarandombox.MultiverseCore.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!
* WILL BE DELETED ON 11/1/11
*/
@Deprecated
public class WorldManager extends com.onarandombox.MultiverseCore.utils.WorldManager {
public WorldManager(MultiverseCore core) {
super(core);
}
}