From 050cb5a408e4c19cb47da1a78c974571a0c8d848 Mon Sep 17 00:00:00 2001 From: Garbage Mule Date: Fri, 24 Feb 2012 05:14:20 +0100 Subject: [PATCH] Shoo, broken tests! --- test/config.yml | 114 --- test/mock/bukkit/MockCommand.java | 19 - test/mock/bukkit/MockPlayer.java | 1111 -------------------------- test/mock/mobarena/MockMobArena.java | 47 -- test/mock/util/MockLogger.java | 79 -- 5 files changed, 1370 deletions(-) delete mode 100644 test/config.yml delete mode 100644 test/mock/bukkit/MockCommand.java delete mode 100644 test/mock/bukkit/MockPlayer.java delete mode 100644 test/mock/mobarena/MockMobArena.java delete mode 100644 test/mock/util/MockLogger.java diff --git a/test/config.yml b/test/config.yml deleted file mode 100644 index 7cd8e4d..0000000 --- a/test/config.yml +++ /dev/null @@ -1,114 +0,0 @@ -# MobArena v0.94.4.3 - Config-file -# Read the Wiki for details on how to set up this file: http://goo.gl/F5TTc -# Note: You -must- use spaces instead of tabs! -global-settings: - enabled: true - allowed-commands: /list, /pl - update-notification: true -classes: - Knight: - items: diamond_sword, grilled_pork:2, rotten_flesh:2 - armor: 306,307,308,309 - permissions: - - fastfood.instanteat - - fastfood.nostarve - - -fastfood.autoregain - Tank: - items: iron_sword, grilled_pork:3, apple, coal, compass - armor: 310,311,312,313 - permissions: - Archer: - items: wood_sword, bow, arrow:256, grilled_pork, bone - armor: 298,299,300,301 - Chef: - items: stone_sword, bread:6, grilled_pork:4, mushroom_soup, cake:5, ink_sack:3:10, wool:3:2, ink_sack:brown:10, wool:brown:2 - armor: 314,315,316,317 - permissions: - - fastfood.instanteat - - fastfood.nostarve - - -fastfood.autoregain - Oddjob: - items: stone_sword, flint_and_steel, netherrack:2, tnt:4, pork:3, potion:32:10, potion:10, potion:8226:2, potion:8197:2, potion:16420:2 - armor: 298,299,300,301 - permissions: - - fastfood.instanteat - - fastfood.nostarve - - -fastfood.autoregain -arenas: - lol: - settings: - world: Tundra - enabled: true - protect: true - entry-fee: '' - logging: yml - clear-wave-before-next: true - detonate-creepers: false - detonate-damage: false - lightning: true - auto-equip-armor: true - force-restore: false - soft-restore: false - soft-restore-drops: false - require-empty-inv-join: false - require-empty-inv-spec: true - hellhounds: false - pvp-enabled: false - monster-infight: false - allow-teleporting: false - spectate-on-death: true - share-items-in-arena: true - player-limit: 0 - max-join-distance: 0 - repair-delay: 5 - first-wave-delay: 3 - wave-interval: 12 - special-modulo: 4 - max-idle-time: 0 - min-players: 0 - max-players: 0 - spout-class-select: true - final-wave: 0 - waves: - recurrent: - def1: - type: default - priority: 1 - frequency: 1 - monsters: - zombies: 30 - skeletons: 18 - spiders: 5 - mushroom_cows: 1 - wave: 1 - boss1: - type: boss - priority: 10 - frequency: 5 - monster: zombie - abilities: root-target, fetch-distant - ability-interval: 3 - ability-announce: true - rewards: - waves: - after: - '7': minecart, storage_minecart, powered_minecart - '16': diamond_sword - '13': iron_sword, iron_pickaxe, iron_spade - every: - '1': sponge - '3': feather, bone, stick - '10': iron_ingot:10, gold_ingot:8 - '5': dirt:4, gravel:4, stone:4 - coords: - p1: 83,64,107,0.0,0.0 - p2: 113,79,137,0.0,0.0 - arena: 100,72,132,-233.39989,10.649986 - lobby: 87,66,111,0.0,0.0 - spectator: 13,66,46,6.0015564,-3.7500422 - spawnpoints: - s1: 88,72,112,0.0,0.0 - s2: 88,72,132,0.0,0.0 - s3: 108,72,112,0.0,0.0 - s4: 108,72,132,0.0,0.0 - leaderboard: 16,67,49,0.0,0.0 diff --git a/test/mock/bukkit/MockCommand.java b/test/mock/bukkit/MockCommand.java deleted file mode 100644 index 9cd8054..0000000 --- a/test/mock/bukkit/MockCommand.java +++ /dev/null @@ -1,19 +0,0 @@ -package mock.bukkit; - -import org.bukkit.command.Command; -import org.bukkit.command.CommandSender; - -public class MockCommand extends Command -{ - public MockCommand(String name) - { - super(name); - } - - @Override - public boolean execute(CommandSender arg0, String arg1, String[] arg2) - { - return false; - } - -} diff --git a/test/mock/bukkit/MockPlayer.java b/test/mock/bukkit/MockPlayer.java deleted file mode 100644 index 22aed64..0000000 --- a/test/mock/bukkit/MockPlayer.java +++ /dev/null @@ -1,1111 +0,0 @@ -package mock.bukkit; - -import java.net.InetSocketAddress; -import java.util.*; - -import mock.util.MockLogger; - -import org.bukkit.*; -import org.bukkit.block.Block; -import org.bukkit.entity.*; -import org.bukkit.event.entity.EntityDamageEvent; -import org.bukkit.event.player.PlayerTeleportEvent.TeleportCause; -import org.bukkit.inventory.*; -import org.bukkit.map.MapView; -import org.bukkit.permissions.*; -import org.bukkit.plugin.Plugin; -import org.bukkit.potion.PotionEffect; -import org.bukkit.potion.PotionEffectType; -import org.bukkit.util.Vector; - -public class MockPlayer implements Player -{ - private MockLogger log; - private String name; - private int health; - private boolean isOp; - private Map permissions; - - public MockPlayer(String name) { - this.name = name; - this.health = 20; - this.isOp = false; - this.permissions = new HashMap(); - } - - public MockPlayer(String name, MockLogger log) { - this(name); - this.log = log; - } - - public void setPermission(String perm, Boolean b) { - permissions.put(perm, b); - } - - public void removePermission(String perm) { - permissions.remove(perm); - } - - @Override - public GameMode getGameMode() - { - // TODO Auto-generated method stub - return null; - } - - @Override - public PlayerInventory getInventory() - { - // TODO Auto-generated method stub - return null; - } - - @Override - public ItemStack getItemInHand() - { - // TODO Auto-generated method stub - return null; - } - - @Override - public String getName() - { - return name; - } - - @Override - public int getSleepTicks() - { - // TODO Auto-generated method stub - return 0; - } - - @Override - public boolean isSleeping() - { - // TODO Auto-generated method stub - return false; - } - - @Override - public void setGameMode(GameMode arg0) - { - // TODO Auto-generated method stub - - } - - @Override - public void setItemInHand(ItemStack arg0) - { - // TODO Auto-generated method stub - - } - - @Override - public void damage(int value) - { - health -= value; - } - - @Override - public void damage(int arg0, Entity arg1) - { - // TODO Auto-generated method stub - - } - - @Override - public double getEyeHeight() - { - // TODO Auto-generated method stub - return 0; - } - - @Override - public double getEyeHeight(boolean arg0) - { - // TODO Auto-generated method stub - return 0; - } - - @Override - public Location getEyeLocation() - { - // TODO Auto-generated method stub - return null; - } - - @Override - public int getHealth() - { - return health; - } - - @Override - public int getLastDamage() - { - // TODO Auto-generated method stub - return 0; - } - - @Override - public List getLastTwoTargetBlocks(HashSet arg0, int arg1) - { - // TODO Auto-generated method stub - return null; - } - - @Override - public List getLineOfSight(HashSet arg0, int arg1) - { - // TODO Auto-generated method stub - return null; - } - - @Override - public int getMaxHealth() - { - return 20; - } - - @Override - public int getMaximumAir() - { - // TODO Auto-generated method stub - return 0; - } - - @Override - public int getMaximumNoDamageTicks() - { - // TODO Auto-generated method stub - return 0; - } - - @Override - public int getNoDamageTicks() - { - // TODO Auto-generated method stub - return 0; - } - - @Override - public int getRemainingAir() - { - // TODO Auto-generated method stub - return 0; - } - - @Override - public Block getTargetBlock(HashSet arg0, int arg1) - { - // TODO Auto-generated method stub - return null; - } - - @Override - public Vehicle getVehicle() - { - // TODO Auto-generated method stub - return null; - } - - @Override - public boolean isInsideVehicle() - { - // TODO Auto-generated method stub - return false; - } - - @Override - public boolean leaveVehicle() - { - // TODO Auto-generated method stub - return false; - } - - @Override - public void setHealth(int value) - { - health = value; - } - - @Override - public void setLastDamage(int arg0) - { - // TODO Auto-generated method stub - - } - - @Override - public void setMaximumAir(int arg0) - { - // TODO Auto-generated method stub - - } - - @Override - public void setMaximumNoDamageTicks(int arg0) - { - // TODO Auto-generated method stub - - } - - @Override - public void setNoDamageTicks(int arg0) - { - // TODO Auto-generated method stub - - } - - @Override - public void setRemainingAir(int arg0) - { - // TODO Auto-generated method stub - - } - - @Override - public Arrow shootArrow() - { - // TODO Auto-generated method stub - return null; - } - - @Override - public Egg throwEgg() - { - // TODO Auto-generated method stub - return null; - } - - @Override - public Snowball throwSnowball() - { - // TODO Auto-generated method stub - return null; - } - - @Override - public boolean eject() - { - // TODO Auto-generated method stub - return false; - } - - @Override - public int getEntityId() - { - // TODO Auto-generated method stub - return 0; - } - - @Override - public float getFallDistance() - { - // TODO Auto-generated method stub - return 0; - } - - @Override - public int getFireTicks() - { - // TODO Auto-generated method stub - return 0; - } - - @Override - public EntityDamageEvent getLastDamageCause() - { - // TODO Auto-generated method stub - return null; - } - - @Override - public Location getLocation() - { - // TODO Auto-generated method stub - return null; - } - - @Override - public int getMaxFireTicks() - { - // TODO Auto-generated method stub - return 0; - } - - @Override - public List getNearbyEntities(double arg0, double arg1, double arg2) - { - // TODO Auto-generated method stub - return null; - } - - @Override - public Entity getPassenger() - { - // TODO Auto-generated method stub - return null; - } - - @Override - public Server getServer() - { - // TODO Auto-generated method stub - return null; - } - - @Override - public int getTicksLived() - { - // TODO Auto-generated method stub - return 0; - } - - @Override - public UUID getUniqueId() - { - // TODO Auto-generated method stub - return null; - } - - @Override - public Vector getVelocity() - { - // TODO Auto-generated method stub - return null; - } - - @Override - public World getWorld() - { - // TODO Auto-generated method stub - return null; - } - - @Override - public boolean isDead() - { - // TODO Auto-generated method stub - return false; - } - - @Override - public boolean isEmpty() - { - // TODO Auto-generated method stub - return false; - } - - @Override - public void remove() - { - // TODO Auto-generated method stub - - } - - @Override - public void setFallDistance(float arg0) - { - // TODO Auto-generated method stub - - } - - @Override - public void setFireTicks(int arg0) - { - // TODO Auto-generated method stub - - } - - @Override - public void setLastDamageCause(EntityDamageEvent arg0) - { - // TODO Auto-generated method stub - - } - - @Override - public boolean setPassenger(Entity arg0) - { - // TODO Auto-generated method stub - return false; - } - - @Override - public void setTicksLived(int arg0) - { - // TODO Auto-generated method stub - - } - - @Override - public void setVelocity(Vector arg0) - { - // TODO Auto-generated method stub - - } - - @Override - public boolean teleport(Location arg0) - { - // TODO Auto-generated method stub - return false; - } - - @Override - public boolean teleport(Entity arg0) - { - // TODO Auto-generated method stub - return false; - } - - @Override - public PermissionAttachment addAttachment(Plugin arg0) - { - // TODO Auto-generated method stub - return null; - } - - @Override - public PermissionAttachment addAttachment(Plugin arg0, int arg1) - { - // TODO Auto-generated method stub - return null; - } - - @Override - public PermissionAttachment addAttachment(Plugin arg0, String arg1, - boolean arg2) - { - // TODO Auto-generated method stub - return null; - } - - @Override - public PermissionAttachment addAttachment(Plugin arg0, String arg1, - boolean arg2, int arg3) - { - // TODO Auto-generated method stub - return null; - } - - @Override - public Set getEffectivePermissions() - { - // TODO Auto-generated method stub - return null; - } - - @Override - public boolean hasPermission(String perm) { - Boolean b = permissions.get(perm); - if (b == null || b.booleanValue() == true) - return true; - - return false; - } - - @Override - public boolean hasPermission(Permission perm) - { - return true; - } - - @Override - public boolean isPermissionSet(String perm) { - return permissions.get(perm) != null; - } - - @Override - public boolean isPermissionSet(Permission arg0) - { - // TODO Auto-generated method stub - return false; - } - - @Override - public void recalculatePermissions() - { - // TODO Auto-generated method stub - - } - - @Override - public void removeAttachment(PermissionAttachment arg0) - { - // TODO Auto-generated method stub - - } - - @Override - public boolean isOp() - { - return isOp; - } - - @Override - public void setOp(boolean value) - { - this.isOp = value; - } - - @Override - public void sendMessage(String msg) { - log.log(msg); - } - - @Override - public Player getPlayer() - { - // TODO Auto-generated method stub - return null; - } - - @Override - public boolean isBanned() - { - // TODO Auto-generated method stub - return false; - } - - @Override - public boolean isOnline() - { - // TODO Auto-generated method stub - return false; - } - - @Override - public boolean isWhitelisted() - { - // TODO Auto-generated method stub - return false; - } - - @Override - public void setBanned(boolean arg0) - { - // TODO Auto-generated method stub - - } - - @Override - public void setWhitelisted(boolean arg0) - { - // TODO Auto-generated method stub - - } - - @Override - public Map serialize() - { - // TODO Auto-generated method stub - return null; - } - - @Override - public void awardAchievement(Achievement arg0) - { - // TODO Auto-generated method stub - - } - - @Override - public void chat(String arg0) - { - // TODO Auto-generated method stub - - } - - @Override - public InetSocketAddress getAddress() - { - // TODO Auto-generated method stub - return null; - } - - @Override - public Location getBedSpawnLocation() - { - // TODO Auto-generated method stub - return null; - } - - @Override - public Location getCompassTarget() - { - // TODO Auto-generated method stub - return null; - } - - @Override - public String getDisplayName() - { - return name; - } - - @Override - public float getExhaustion() - { - // TODO Auto-generated method stub - return 0; - } - - @Override - public float getExp() - { - // TODO Auto-generated method stub - return 0; - } - - @Override - public int getExperience() - { - // TODO Auto-generated method stub - return 0; - } - - @Override - public int getFoodLevel() - { - // TODO Auto-generated method stub - return 0; - } - - @Override - public int getLevel() - { - // TODO Auto-generated method stub - return 0; - } - - @Override - public String getPlayerListName() - { - // TODO Auto-generated method stub - return null; - } - - @Override - public long getPlayerTime() - { - // TODO Auto-generated method stub - return 0; - } - - @Override - public long getPlayerTimeOffset() - { - // TODO Auto-generated method stub - return 0; - } - - @Override - public float getSaturation() - { - // TODO Auto-generated method stub - return 0; - } - - @Override - public int getTotalExperience() - { - // TODO Auto-generated method stub - return 0; - } - - @Override - public void giveExp(int arg0) - { - // TODO Auto-generated method stub - - } - - @Override - public void incrementStatistic(Statistic arg0) - { - // TODO Auto-generated method stub - - } - - @Override - public void incrementStatistic(Statistic arg0, int arg1) - { - // TODO Auto-generated method stub - - } - - @Override - public void incrementStatistic(Statistic arg0, Material arg1) - { - // TODO Auto-generated method stub - - } - - @Override - public void incrementStatistic(Statistic arg0, Material arg1, int arg2) - { - // TODO Auto-generated method stub - - } - - @Override - public boolean isPlayerTimeRelative() - { - // TODO Auto-generated method stub - return false; - } - - @Override - public boolean isSleepingIgnored() - { - // TODO Auto-generated method stub - return false; - } - - @Override - public boolean isSneaking() - { - // TODO Auto-generated method stub - return false; - } - - @Override - public boolean isSprinting() - { - // TODO Auto-generated method stub - return false; - } - - @Override - public void kickPlayer(String arg0) - { - // TODO Auto-generated method stub - - } - - @Override - public void loadData() - { - // TODO Auto-generated method stub - - } - - @Override - public boolean performCommand(String arg0) - { - // TODO Auto-generated method stub - return false; - } - - @Override - public void playEffect(Location arg0, Effect arg1, int arg2) - { - // TODO Auto-generated method stub - - } - - @Override - public void playNote(Location arg0, byte arg1, byte arg2) - { - // TODO Auto-generated method stub - - } - - @Override - public void playNote(Location arg0, Instrument arg1, Note arg2) - { - // TODO Auto-generated method stub - - } - - @Override - public void resetPlayerTime() - { - // TODO Auto-generated method stub - - } - - @Override - public void saveData() - { - // TODO Auto-generated method stub - - } - - @Override - public void sendBlockChange(Location arg0, Material arg1, byte arg2) - { - // TODO Auto-generated method stub - - } - - @Override - public void sendBlockChange(Location arg0, int arg1, byte arg2) - { - // TODO Auto-generated method stub - - } - - @Override - public boolean sendChunkChange(Location arg0, int arg1, int arg2, int arg3, - byte[] arg4) - { - // TODO Auto-generated method stub - return false; - } - - @Override - public void sendMap(MapView arg0) - { - // TODO Auto-generated method stub - - } - - @Override - public void sendRawMessage(String arg0) - { - // TODO Auto-generated method stub - - } - - @Override - public void setCompassTarget(Location arg0) - { - // TODO Auto-generated method stub - - } - - @Override - public void setDisplayName(String arg0) - { - // TODO Auto-generated method stub - - } - - @Override - public void setExhaustion(float arg0) - { - // TODO Auto-generated method stub - - } - - @Override - public void setExp(float arg0) - { - // TODO Auto-generated method stub - - } - - @Override - public void setExperience(int arg0) - { - // TODO Auto-generated method stub - - } - - @Override - public void setFoodLevel(int arg0) - { - // TODO Auto-generated method stub - - } - - @Override - public void setLevel(int arg0) - { - // TODO Auto-generated method stub - - } - - @Override - public void setPlayerListName(String arg0) - { - // TODO Auto-generated method stub - - } - - @Override - public void setPlayerTime(long arg0, boolean arg1) - { - // TODO Auto-generated method stub - - } - - @Override - public void setSaturation(float arg0) - { - // TODO Auto-generated method stub - - } - - @Override - public void setSleepingIgnored(boolean arg0) - { - // TODO Auto-generated method stub - - } - - @Override - public void setSneaking(boolean arg0) - { - // TODO Auto-generated method stub - - } - - @Override - public void setSprinting(boolean arg0) - { - // TODO Auto-generated method stub - - } - - @Override - public void setTotalExperience(int arg0) - { - // TODO Auto-generated method stub - - } - - @Override - public void updateInventory() - { - // TODO Auto-generated method stub - - } - - @Override - public Player getKiller() - { - // TODO Auto-generated method stub - return null; - } - - @Override - public boolean teleport(Location arg0, TeleportCause arg1) - { - // TODO Auto-generated method stub - return false; - } - - @Override - public boolean teleport(Entity arg0, TeleportCause arg1) - { - // TODO Auto-generated method stub - return false; - } - - @Override - public long getFirstPlayed() - { - // TODO Auto-generated method stub - return 0; - } - - @Override - public long getLastPlayed() - { - // TODO Auto-generated method stub - return 0; - } - - @Override - public boolean hasPlayedBefore() - { - // TODO Auto-generated method stub - return false; - } - - @Override - public void playEffect(EntityEffect arg0) { - // TODO Auto-generated method stub - - } - - @Override - public Set getListeningPluginChannels() { - // TODO Auto-generated method stub - return null; - } - - @Override - public void sendPluginMessage(Plugin arg0, String arg1, byte[] arg2) { - // TODO Auto-generated method stub - - } - - //@Override - public boolean getAllowFlight() { - // TODO Auto-generated method stub - return false; - } - - //@Override - public void setAllowFlight(boolean arg0) { - // TODO Auto-generated method stub - - } - - //@Override - public void setBedSpawnLocation(Location arg0) { - // TODO Auto-generated method stub - - } - - @Override - public boolean addPotionEffect(PotionEffect arg0) { - // TODO Auto-generated method stub - return false; - } - - @Override - public boolean addPotionEffect(PotionEffect arg0, boolean arg1) { - // TODO Auto-generated method stub - return false; - } - - @Override - public boolean addPotionEffects(Collection arg0) { - // TODO Auto-generated method stub - return false; - } - - @Override - public Collection getActivePotionEffects() { - // TODO Auto-generated method stub - return null; - } - - @Override - public boolean hasPotionEffect(PotionEffectType arg0) { - // TODO Auto-generated method stub - return false; - } - - @Override - public void removePotionEffect(PotionEffectType arg0) { - // TODO Auto-generated method stub - - } - - @Override - public boolean canSee(Player arg0) { - // TODO Auto-generated method stub - return false; - } - - @Override - public void hidePlayer(Player arg0) { - // TODO Auto-generated method stub - - } - - @Override - public void showPlayer(Player arg0) { - // TODO Auto-generated method stub - - } - -} diff --git a/test/mock/mobarena/MockMobArena.java b/test/mock/mobarena/MockMobArena.java deleted file mode 100644 index 2cfc3b8..0000000 --- a/test/mock/mobarena/MockMobArena.java +++ /dev/null @@ -1,47 +0,0 @@ -package mock.mobarena; - -import mock.util.MockLogger; - -import com.garbagemule.MobArena.framework.ArenaMaster; -import com.garbagemule.MobArena.util.config.Config; - -public class MockMobArena //extends MobArena //implements MobArenaPlugin -{ - private ArenaMaster arenaMaster; - private MockLogger log; - private Config config; - - public MockMobArena() { - //this.arenaMaster = new MockArenaMaster(this); - this.log = MockLogger.getLogger("MobArenaTest"); - } - - //@Override - public void onEnable() { - //this.config = new Config(new File(getDataFolder(), "config.yml")); - //this.arenaMaster = new ArenaMasterImpl(this); - this.log.log("MockMobArena enabled."); - } - - //@Override - public void onDisable() { - log.log("MockMobArena disabled."); - } - - //@Override - public Config getMAConfig() { - return config; - } - - //@Override - public ArenaMaster getArenaMaster() { - return arenaMaster; - } - - //@Override - public void info(String msg) { log.log("[MobArena] " + msg); } - //@Override - public void warning(String msg) { log.log("[MobArena] " + msg); } - //@Override - public void error(String msg) { log.log("[MobArena] " + msg); } -} diff --git a/test/mock/util/MockLogger.java b/test/mock/util/MockLogger.java deleted file mode 100644 index c6c3939..0000000 --- a/test/mock/util/MockLogger.java +++ /dev/null @@ -1,79 +0,0 @@ -package mock.util; - -import java.sql.Timestamp; -import java.util.*; -import java.util.Map.Entry; -import java.util.logging.Logger; - -import org.bukkit.ChatColor; -import org.bukkit.entity.Player; - -import com.garbagemule.MobArena.Msg; - -public class MockLogger extends Logger -{ - private static Map loggers = new TreeMap(); - private TreeMap entries = new TreeMap(); - - /** - * Private constructor to ensure that all MockLoggers exist within this class as singletons. - */ - /*private MockLogger() { - this.entries = new TreeMap(); - }*/ - protected MockLogger(String name, String resourceBundleName) { - super(name, resourceBundleName); - } - - /** - * All MockLogger objects are singletons. - * @param name the name of a MockLogger - * @return the MockLogger with the input name, or a new MockLogger if it didn't already exist. - */ - public static MockLogger getLogger(String name) { - if (!loggers.containsKey(name)) - loggers.put(name, new MockLogger(name, null)); - - return loggers.get(name); - } - - public void log(String msg) { - Timestamp time = new Timestamp(new Date().getTime()); - this.entries.put(time, msg); - } - - public int size() { - return entries.size(); - } - - public Entry getLastEntry() { - if (entries.isEmpty()) - return null; - - return entries.lastEntry(); - } - - public Entry findEntry(String msg) { - for (Entry entry : entries.entrySet()) { - if (entry.getValue().equals(msg)) - return entry; - } - return null; - } - - public Entry findEntryAfterTime(String msg, Timestamp time) { - for (Entry entry : entries.entrySet()) { - if (entry.getKey().compareTo(time) >= 0 && entry.getValue().equals(msg)) - return entry; - } - return null; - } - - public static String compileMsgToPlayer(Player p, String msg) { - return ChatColor.GREEN + "[MobArena] " + ChatColor.WHITE + msg; - } - - public static String compileMsgToPlayer(Player p, Msg msg) { - return compileMsgToPlayer(p, msg.toString()); - } -}