Spigot 1.8: More deprecation

This commit is contained in:
Jascha Starke 2015-04-11 00:03:42 +02:00
parent 648ef2070e
commit acb0717644
4 changed files with 6 additions and 5 deletions

View file

@ -47,7 +47,7 @@ public class FeatureBlockItemSpawn extends CoreModule<LimitedCreative> implement
private void scheduleCleanUp() { private void scheduleCleanUp() {
if (cleanup.maxTime == 0) { // if not scheduled yet if (cleanup.maxTime == 0) { // if not scheduled yet
cleanup.maxTime = System.currentTimeMillis(); cleanup.maxTime = System.currentTimeMillis();
plugin.getServer().getScheduler().runTaskLater(plugin, cleanup, TICK_OFFSET); cleanup.runTaskLater(plugin, TICK_OFFSET);
} }
} }

View file

@ -69,6 +69,7 @@ public class FeatureSwitchGameMode extends CoreModule<LimitedCreative> {
return SwitchGameModePermissions.ALL.getPermission(subPerm); return SwitchGameModePermissions.ALL.getPermission(subPerm);
} }
@SuppressWarnings("deprecation")
protected boolean changeGameMode(CommandContext context, String player, GameMode tgm, IAbstractPermission permission) throws MissingPermissionCommandException, CommandException { protected boolean changeGameMode(CommandContext context, String player, GameMode tgm, IAbstractPermission permission) throws MissingPermissionCommandException, CommandException {
Player target = null; Player target = null;
if (player != null && !player.isEmpty()) { if (player != null && !player.isEmpty()) {

View file

@ -4,7 +4,6 @@ import org.bukkit.Bukkit;
import de.jaschastarke.hooking.BooleanHooker; import de.jaschastarke.hooking.BooleanHooker;
import de.jaschastarke.hooking.GetHooker; import de.jaschastarke.hooking.GetHooker;
import de.jaschastarke.minecraft.limitedcreative.hooks.AuthMeHooks;
import de.jaschastarke.minecraft.limitedcreative.hooks.MultiVerseHooks; import de.jaschastarke.minecraft.limitedcreative.hooks.MultiVerseHooks;
import de.jaschastarke.minecraft.limitedcreative.hooks.PlayerCheckHooker; import de.jaschastarke.minecraft.limitedcreative.hooks.PlayerCheckHooker;
import de.jaschastarke.minecraft.limitedcreative.hooks.WorldTypeHooker; import de.jaschastarke.minecraft.limitedcreative.hooks.WorldTypeHooker;
@ -20,6 +19,7 @@ public final class Hooks {
return Bukkit.getServer().getPluginManager().isPluginEnabled(pluginName); return Bukkit.getServer().getPluginManager().isPluginEnabled(pluginName);
} }
@SuppressWarnings("deprecation")
public static void inizializeHooks(LimitedCreative plugin) { public static void inizializeHooks(LimitedCreative plugin) {
IsLoggedIn.clearHooks(); IsLoggedIn.clearHooks();
DefaultWorldGameMode.clearHooks(); DefaultWorldGameMode.clearHooks();
@ -27,7 +27,7 @@ public final class Hooks {
InventoryIncompatible.clearHooks(); InventoryIncompatible.clearHooks();
if (isAuthMePresent()) { if (isAuthMePresent()) {
new AuthMeHooks(plugin); new de.jaschastarke.minecraft.limitedcreative.hooks.AuthMeHooks(plugin);
} }
if (isXAuth20Present()) { if (isXAuth20Present()) {
new xAuthHooks(plugin); new xAuthHooks(plugin);

View file

@ -10,7 +10,6 @@ import org.bukkit.inventory.ItemStack;
import de.jaschastarke.bukkit.lib.CoreModule; import de.jaschastarke.bukkit.lib.CoreModule;
import de.jaschastarke.minecraft.limitedcreative.inventories.ArmoryConfig; import de.jaschastarke.minecraft.limitedcreative.inventories.ArmoryConfig;
import de.jaschastarke.minecraft.limitedcreative.inventories.AuthMeInventories;
import de.jaschastarke.minecraft.limitedcreative.inventories.Inventory; import de.jaschastarke.minecraft.limitedcreative.inventories.Inventory;
import de.jaschastarke.minecraft.limitedcreative.inventories.InventoryConfig; import de.jaschastarke.minecraft.limitedcreative.inventories.InventoryConfig;
import de.jaschastarke.minecraft.limitedcreative.inventories.InventoryPermissions; import de.jaschastarke.minecraft.limitedcreative.inventories.InventoryPermissions;
@ -34,6 +33,7 @@ public class ModInventories extends CoreModule<LimitedCreative> {
return "Inventory"; return "Inventory";
} }
@SuppressWarnings("deprecation")
@Override @Override
public void initialize(ModuleEntry<IModule> entry) { public void initialize(ModuleEntry<IModule> entry) {
super.initialize(entry); super.initialize(entry);
@ -42,7 +42,7 @@ public class ModInventories extends CoreModule<LimitedCreative> {
armor_config = config.registerSection(new ArmoryConfig(this)); armor_config = config.registerSection(new ArmoryConfig(this));
if (Hooks.isAuthMePresent()) { if (Hooks.isAuthMePresent()) {
addModule(new AuthMeInventories(plugin, this)); addModule(new de.jaschastarke.minecraft.limitedcreative.inventories.AuthMeInventories(plugin, this));
} }
String incomp = Hooks.InventoryIncompatible.test(); String incomp = Hooks.InventoryIncompatible.test();
if (config.getEnabled() && incomp != null) { if (config.getEnabled() && incomp != null) {