mirror of
https://github.com/Multiverse/Multiverse-Core.git
synced 2024-11-29 14:06:30 +01:00
Fixed high priority style warnings
This commit is contained in:
parent
3ad7d86f74
commit
85cd71cb8a
@ -147,7 +147,7 @@ public class MultiverseCore extends JavaPlugin implements MVPlugin, Core, Listen
|
|||||||
* @param teleportee The name of the player that was teleported.
|
* @param teleportee The name of the player that was teleported.
|
||||||
*/
|
*/
|
||||||
public static void addPlayerToTeleportQueue(String teleporter, String teleportee) {
|
public static void addPlayerToTeleportQueue(String teleporter, String teleportee) {
|
||||||
Logging.finest( "Adding mapping '%s' => '%s' to teleport queue", teleporter, teleportee);
|
Logging.finest("Adding mapping '%s' => '%s' to teleport queue", teleporter, teleportee);
|
||||||
teleportQueue.put(teleportee, teleporter);
|
teleportQueue.put(teleportee, teleporter);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -251,6 +251,7 @@ public class MultiverseCore extends JavaPlugin implements MVPlugin, Core, Listen
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* {@inheritDoc}
|
* {@inheritDoc}
|
||||||
|
* @deprecated Now using Vault.
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
@Deprecated
|
@Deprecated
|
||||||
@ -349,7 +350,7 @@ public class MultiverseCore extends JavaPlugin implements MVPlugin, Core, Listen
|
|||||||
private boolean setupVaultEconomy() {
|
private boolean setupVaultEconomy() {
|
||||||
if (Bukkit.getPluginManager().getPlugin("Vault") != null) {
|
if (Bukkit.getPluginManager().getPlugin("Vault") != null) {
|
||||||
final RegisteredServiceProvider<Economy> economyProvider
|
final RegisteredServiceProvider<Economy> economyProvider
|
||||||
= getServer().getServicesManager().getRegistration(net.milkbowl.vault.economy.Economy.class);
|
= getServer().getServicesManager().getRegistration(net.milkbowl.vault.economy.Economy.class);
|
||||||
if (economyProvider != null) {
|
if (economyProvider != null) {
|
||||||
Logging.fine("Vault economy enabled.");
|
Logging.fine("Vault economy enabled.");
|
||||||
vaultEco = economyProvider.getProvider();
|
vaultEco = economyProvider.getProvider();
|
||||||
@ -1045,6 +1046,7 @@ public class MultiverseCore extends JavaPlugin implements MVPlugin, Core, Listen
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* {@inheritDoc}
|
* {@inheritDoc}
|
||||||
|
* @deprecated Now using Vault.
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
@Deprecated
|
@Deprecated
|
||||||
@ -1054,6 +1056,7 @@ public class MultiverseCore extends JavaPlugin implements MVPlugin, Core, Listen
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* {@inheritDoc}
|
* {@inheritDoc}
|
||||||
|
* @deprecated Now using Vault.
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
@Deprecated
|
@Deprecated
|
||||||
|
@ -11,13 +11,7 @@ import buscript.Buscript;
|
|||||||
import com.fernferret.allpay.AllPay;
|
import com.fernferret.allpay.AllPay;
|
||||||
import com.fernferret.allpay.GenericBank;
|
import com.fernferret.allpay.GenericBank;
|
||||||
import com.onarandombox.MultiverseCore.destination.DestinationFactory;
|
import com.onarandombox.MultiverseCore.destination.DestinationFactory;
|
||||||
import com.onarandombox.MultiverseCore.utils.AnchorManager;
|
import com.onarandombox.MultiverseCore.utils.*;
|
||||||
import com.onarandombox.MultiverseCore.utils.MVPermissions;
|
|
||||||
import com.onarandombox.MultiverseCore.utils.MVPlayerSession;
|
|
||||||
import com.onarandombox.MultiverseCore.utils.SimpleBlockSafety;
|
|
||||||
import com.onarandombox.MultiverseCore.utils.SimpleLocationManipulation;
|
|
||||||
import com.onarandombox.MultiverseCore.utils.SimpleSafeTTeleporter;
|
|
||||||
import com.onarandombox.MultiverseCore.utils.WorldManager;
|
|
||||||
import com.pneumaticraft.commandhandler.CommandHandler;
|
import com.pneumaticraft.commandhandler.CommandHandler;
|
||||||
import net.milkbowl.vault.economy.Economy;
|
import net.milkbowl.vault.economy.Economy;
|
||||||
import org.bukkit.configuration.file.FileConfiguration;
|
import org.bukkit.configuration.file.FileConfiguration;
|
||||||
|
@ -61,8 +61,7 @@ public class SubSpawnSettings extends SerializationConfig {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
* @param rate The new spawn rate
|
||||||
* @param The new spawn rate
|
|
||||||
*/
|
*/
|
||||||
public void setSpawnRate(int rate) {
|
public void setSpawnRate(int rate) {
|
||||||
this.spawnrate = rate;
|
this.spawnrate = rate;
|
||||||
|
@ -324,7 +324,7 @@ public class MVPlayerListener implements Listener {
|
|||||||
Logging.finest("To World: %s", world);
|
Logging.finest("To World: %s", world);
|
||||||
player.setGameMode(world.getGameMode());
|
player.setGameMode(world.getGameMode());
|
||||||
} else {
|
} else {
|
||||||
Logging.fine("The gamemode was NOT changed for player '%s' because he is now in world '%s' instead of world '%s'", player.getName(), player.getWorld().getName(), world.getName());
|
Logging.fine("The gamemode was NOT changed for player '%s' because he is now in world '%s' instead of world '%s'", player.getName(), player.getWorld().getName(), world.getName());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}, 1L);
|
}, 1L);
|
||||||
|
@ -46,7 +46,7 @@ public class FileUtils {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Used to delete the contents of a folder, without deleting the folder itself
|
* Used to delete the contents of a folder, without deleting the folder itself.
|
||||||
*
|
*
|
||||||
* @param file The folder whose contents to delete.
|
* @param file The folder whose contents to delete.
|
||||||
* @return true if the contents were successfully deleted
|
* @return true if the contents were successfully deleted
|
||||||
|
@ -27,10 +27,11 @@ import java.util.Set;
|
|||||||
*/
|
*/
|
||||||
public class SimpleBlockSafety implements BlockSafety {
|
public class SimpleBlockSafety implements BlockSafety {
|
||||||
private final Core plugin;
|
private final Core plugin;
|
||||||
private final static Set<BlockFace> AROUND_BLOCK = new HashSet<BlockFace>(){{ add(BlockFace.NORTH); add(BlockFace.NORTH_EAST);
|
private static final Set<BlockFace> AROUND_BLOCK = new HashSet<BlockFace>() {{
|
||||||
add(BlockFace.EAST); add(BlockFace.SOUTH_EAST);
|
add(BlockFace.NORTH); add(BlockFace.NORTH_EAST); add(BlockFace.EAST); add(BlockFace.SOUTH_EAST);
|
||||||
add(BlockFace.SOUTH); add(BlockFace.SOUTH_WEST);
|
add(BlockFace.SOUTH); add(BlockFace.SOUTH_WEST); add(BlockFace.WEST); add(BlockFace.NORTH_WEST);
|
||||||
add(BlockFace.WEST); add(BlockFace.NORTH_WEST); }};
|
}
|
||||||
|
};
|
||||||
|
|
||||||
public SimpleBlockSafety(Core plugin) {
|
public SimpleBlockSafety(Core plugin) {
|
||||||
this.plugin = plugin;
|
this.plugin = plugin;
|
||||||
|
Loading…
Reference in New Issue
Block a user