This commit is contained in:
Boos 2011-12-29 14:07:47 +01:00
parent 4faaeb1f19
commit 5d81386b0a
7 changed files with 6 additions and 7 deletions

View File

@ -7,6 +7,7 @@ import java.util.List;
import org.bukkit.entity.Player;
import org.bukkit.util.config.Configuration;
@SuppressWarnings("deprecation")
public class boosConfigManager {
protected static boosCoolDown bCoolDown;

View File

@ -1,5 +1,7 @@
package cz.boosik.boosCooldown;
import java.util.logging.Logger;
import net.milkbowl.vault.Vault;
import net.milkbowl.vault.economy.Economy;
@ -15,8 +17,7 @@ import org.bukkit.util.config.Configuration;
import util.boosChat;
import java.util.logging.Logger;
@SuppressWarnings("deprecation")
public class boosCoolDown extends JavaPlugin {
private final boosCoolDownPlayerListener playerListener = new boosCoolDownPlayerListener(
@ -51,7 +52,6 @@ public class boosCoolDown extends JavaPlugin {
@SuppressWarnings("static-access")
public void onEnable() {
pdfFile = this.getDescription();
PluginManager pm = getServer().getPluginManager();
pm.registerEvent(Event.Type.PLAYER_COMMAND_PREPROCESS, playerListener,

View File

@ -8,6 +8,7 @@ import org.bukkit.event.entity.EntityListener;
import util.boosChat;
public class boosCoolDownEntityListener extends EntityListener {
@SuppressWarnings("unused")
private final boosCoolDown plugin;
public boosCoolDownEntityListener(boosCoolDown instance) {

View File

@ -13,6 +13,7 @@ import org.bukkit.util.config.Configuration;
import util.boosChat;
@SuppressWarnings("deprecation")
public class boosCoolDownManager {
protected static boosCoolDown bCoolDown;

View File

@ -1,6 +1,5 @@
package cz.boosik.boosCooldown;
import org.bukkit.entity.Entity;
import org.bukkit.entity.Player;
import org.bukkit.event.player.PlayerCommandPreprocessEvent;
import org.bukkit.event.player.PlayerListener;

View File

@ -59,7 +59,6 @@ public class boosWarmUpManager {
public static void removeWarmUpProcess(String tag) {
boosWarmUpManager.playercommands.remove(tag);
scheduler.cancel();
}
public static void cancelWarmUps(Player player) {

View File

@ -2,7 +2,6 @@ package cz.boosik.boosCooldown;
import java.util.Timer;
import java.util.TimerTask;
import org.bukkit.entity.Player;
public class boosWarmUpTimer extends TimerTask {
@ -22,7 +21,6 @@ public class boosWarmUpTimer extends TimerTask {
public boosWarmUpTimer() {
}
@Override
public void run() {
if (player.isOnline() && boosWarmUpManager.hasWarmUps(player) == true) {