mirror of
https://github.com/garbagemule/MobArena.git
synced 2024-12-26 19:18:47 +01:00
Shoo, broken tests!
This commit is contained in:
parent
777f6b9b07
commit
050cb5a408
114
test/config.yml
114
test/config.yml
@ -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
|
@ -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;
|
||||
}
|
||||
|
||||
}
|
File diff suppressed because it is too large
Load Diff
@ -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); }
|
||||
}
|
@ -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<String,MockLogger> loggers = new TreeMap<String,MockLogger>();
|
||||
private TreeMap<Timestamp,String> entries = new TreeMap<Timestamp,String>();
|
||||
|
||||
/**
|
||||
* Private constructor to ensure that all MockLoggers exist within this class as singletons.
|
||||
*/
|
||||
/*private MockLogger() {
|
||||
this.entries = new TreeMap<Timestamp,String>();
|
||||
}*/
|
||||
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<Timestamp,String> getLastEntry() {
|
||||
if (entries.isEmpty())
|
||||
return null;
|
||||
|
||||
return entries.lastEntry();
|
||||
}
|
||||
|
||||
public Entry<Timestamp,String> findEntry(String msg) {
|
||||
for (Entry<Timestamp,String> entry : entries.entrySet()) {
|
||||
if (entry.getValue().equals(msg))
|
||||
return entry;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public Entry<Timestamp,String> findEntryAfterTime(String msg, Timestamp time) {
|
||||
for (Entry<Timestamp,String> 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());
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user