mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2024-09-30 07:37:34 +02:00
Removed deprecated code and classes
This commit is contained in:
parent
ff7a43feea
commit
ae162153a4
@ -1,18 +0,0 @@
|
||||
package world.bentobox.bentobox.api.addons.exception;
|
||||
|
||||
/**
|
||||
* @deprecated Moved to {@link world.bentobox.bentobox.api.addons.exceptions.AddonException}.
|
||||
*/
|
||||
@Deprecated
|
||||
public abstract class AddonException extends Exception {
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private static final long serialVersionUID = 4203162022348693854L;
|
||||
|
||||
public AddonException(String errorMessage){
|
||||
super("AddonException : " + errorMessage);
|
||||
}
|
||||
|
||||
}
|
@ -1,32 +0,0 @@
|
||||
package world.bentobox.bentobox.api.addons.exception;
|
||||
|
||||
import java.util.logging.Level;
|
||||
|
||||
import org.bukkit.Bukkit;
|
||||
|
||||
/**
|
||||
* @deprecated Moved to {@link world.bentobox.bentobox.api.addons.exceptions.InvalidAddonFormatException}.
|
||||
*/
|
||||
@Deprecated
|
||||
public class InvalidAddonFormatException extends AddonException {
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private static final long serialVersionUID = 7741502900847049986L;
|
||||
|
||||
public InvalidAddonFormatException(String errorMessage) {
|
||||
super(errorMessage);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void printStackTrace(){
|
||||
super.printStackTrace();
|
||||
|
||||
Bukkit.getLogger().log(Level.WARNING, " Basic format : (addon.yml)");
|
||||
Bukkit.getLogger().log(Level.WARNING, " main: path.to.your.MainClass");
|
||||
Bukkit.getLogger().log(Level.WARNING, " name: <NameOfYourModule>");
|
||||
Bukkit.getLogger().log(Level.WARNING, " authors: <AuthorA> | <AuthorA, AuthorB>");
|
||||
Bukkit.getLogger().log(Level.WARNING, " version: YourVersion");
|
||||
}
|
||||
}
|
@ -1,18 +0,0 @@
|
||||
package world.bentobox.bentobox.api.addons.exception;
|
||||
|
||||
/**
|
||||
* @deprecated Moved to {@link world.bentobox.bentobox.api.addons.exceptions.InvalidAddonInheritException}.
|
||||
*/
|
||||
@Deprecated
|
||||
public class InvalidAddonInheritException extends AddonException {
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private static final long serialVersionUID = -5847358994397613244L;
|
||||
|
||||
public InvalidAddonInheritException(String errorMessage) {
|
||||
super(errorMessage);
|
||||
}
|
||||
|
||||
}
|
@ -381,22 +381,10 @@ public abstract class CompositeCommand extends Command implements PluginIdentifi
|
||||
return getSubCommands();
|
||||
}
|
||||
|
||||
/**
|
||||
* Convenience method to obtain the user's team leader
|
||||
* @param world - world to check
|
||||
* @param user - the User
|
||||
* @return UUID of player's team leader or null if user has no island
|
||||
* @deprecated Renamed to {@link #getOwner(World, User)} for consistency.
|
||||
*/
|
||||
@Deprecated
|
||||
protected UUID getTeamLeader(World world, User user) {
|
||||
return getOwner(world, user);
|
||||
}
|
||||
|
||||
/**
|
||||
* Convenience method to obtain the user's island owner
|
||||
* @param world world to check
|
||||
* @param user -the User
|
||||
* @param user the User
|
||||
* @return UUID of player's island owner or null if user has no island
|
||||
*/
|
||||
protected UUID getOwner(World world, User user) {
|
||||
|
@ -454,19 +454,6 @@ public class IslandsManager {
|
||||
return spawn.containsKey(world) ? spawn.get(world).getSpawnPoint(world.getEnvironment()) : null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Provides UUID of this player's island owner or null if it does not exist
|
||||
* @param world - world to check
|
||||
* @param playerUUID - the player's UUID
|
||||
* @return island owner's UUID or null if player has no island
|
||||
*
|
||||
* @deprecated Renamed to {@link #getOwner(World, UUID)} for consistency.
|
||||
*/
|
||||
@Deprecated
|
||||
public UUID getTeamLeader(World world, UUID playerUUID) {
|
||||
return getOwner(world, playerUUID);
|
||||
}
|
||||
|
||||
/**
|
||||
* Provides UUID of this player's island owner or null if it does not exist
|
||||
* @param world world to check
|
||||
|
@ -139,18 +139,6 @@ public class IslandCache {
|
||||
return new HashSet<>(0);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param world - the world to check
|
||||
* @param uuid - player's uuid
|
||||
* @return team leader's UUID, the player UUID if they are not in a team, or null if there is no island
|
||||
*
|
||||
* @deprecated Renamed to {@link #getOwner(World, UUID)} for consistency.
|
||||
*/
|
||||
@Deprecated
|
||||
public UUID getTeamLeader(World world, UUID uuid) {
|
||||
return getOwner(world, uuid);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param world the world to check
|
||||
* @param uuid the player's UUID
|
||||
|
Loading…
Reference in New Issue
Block a user