mirror of
https://github.com/LordBoos/boosCooldowns.git
synced 2024-11-01 08:20:32 +01:00
Cleanup
This commit is contained in:
parent
4faaeb1f19
commit
5d81386b0a
@ -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;
|
||||
|
@ -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,
|
||||
|
@ -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) {
|
||||
|
@ -13,6 +13,7 @@ import org.bukkit.util.config.Configuration;
|
||||
|
||||
import util.boosChat;
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
public class boosCoolDownManager {
|
||||
|
||||
protected static boosCoolDown bCoolDown;
|
||||
|
@ -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;
|
||||
|
@ -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) {
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user