mirror of
https://github.com/Multiverse/Multiverse-Core.git
synced 2024-11-29 14:06:30 +01:00
Style.
This commit is contained in:
parent
63f8811b67
commit
73e394d5ec
@ -18,7 +18,6 @@ import com.onarandombox.MultiverseCore.utils.SimpleBlockSafety;
|
|||||||
import com.onarandombox.MultiverseCore.utils.SimpleLocationManipulation;
|
import com.onarandombox.MultiverseCore.utils.SimpleLocationManipulation;
|
||||||
import com.onarandombox.MultiverseCore.utils.SimpleSafeTTeleporter;
|
import com.onarandombox.MultiverseCore.utils.SimpleSafeTTeleporter;
|
||||||
import com.onarandombox.MultiverseCore.utils.VaultHandler;
|
import com.onarandombox.MultiverseCore.utils.VaultHandler;
|
||||||
import com.onarandombox.MultiverseCore.utils.WorldManager;
|
|
||||||
import com.pneumaticraft.commandhandler.CommandHandler;
|
import com.pneumaticraft.commandhandler.CommandHandler;
|
||||||
import org.bukkit.configuration.file.FileConfiguration;
|
import org.bukkit.configuration.file.FileConfiguration;
|
||||||
import org.bukkit.entity.Player;
|
import org.bukkit.entity.Player;
|
||||||
|
@ -258,8 +258,15 @@ public class PermissionTools {
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Checks to see if a player can bypass the player limit.
|
||||||
|
*
|
||||||
|
* @param toWorld The world travelling to.
|
||||||
|
* @param teleporter The player that initiated the teleport.
|
||||||
|
* @param teleportee The player travelling.
|
||||||
|
* @return True if they can bypass the player limit.
|
||||||
|
*/
|
||||||
public boolean playerCanBypassPlayerLimit(MultiverseWorld toWorld, CommandSender teleporter, Player teleportee) {
|
public boolean playerCanBypassPlayerLimit(MultiverseWorld toWorld, CommandSender teleporter, Player teleportee) {
|
||||||
|
|
||||||
if (teleporter == null) {
|
if (teleporter == null) {
|
||||||
teleporter = teleportee;
|
teleporter = teleportee;
|
||||||
}
|
}
|
||||||
|
@ -24,8 +24,8 @@ public class VaultHandler implements Listener {
|
|||||||
|
|
||||||
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 =
|
||||||
= Bukkit.getServicesManager().getRegistration(net.milkbowl.vault.economy.Economy.class);
|
Bukkit.getServicesManager().getRegistration(net.milkbowl.vault.economy.Economy.class);
|
||||||
if (economyProvider != null) {
|
if (economyProvider != null) {
|
||||||
Logging.fine("Vault economy enabled.");
|
Logging.fine("Vault economy enabled.");
|
||||||
economy = economyProvider.getProvider();
|
economy = economyProvider.getProvider();
|
||||||
@ -41,6 +41,9 @@ public class VaultHandler implements Listener {
|
|||||||
return (economy != null);
|
return (economy != null);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Listens for Vault plugin events.
|
||||||
|
*/
|
||||||
private class VaultListener implements Listener {
|
private class VaultListener implements Listener {
|
||||||
@EventHandler
|
@EventHandler
|
||||||
private void vaultEnabled(PluginEnableEvent event) {
|
private void vaultEnabled(PluginEnableEvent event) {
|
||||||
|
Loading…
Reference in New Issue
Block a user