Commit Graph

617 Commits

Author SHA1 Message Date
garbagemule
9b161cb1c2 Simplify Setup Mode listener unregistration. 2014-01-22 13:49:39 +01:00
garbagemule
9c4c42bc81 Use Curse/Bukkit API for version checking. 2014-01-22 00:03:44 +01:00
garbagemule
6d93dfa660 Fix entry-fee issue. 2014-01-20 02:59:03 +01:00
garbagemule
b14f665af0 Fix incorrect parsing of final-wave. 2013-12-17 03:55:14 +01:00
garbagemule
5ff41d20fe Use Material instead of item ID. 2013-11-28 02:12:51 +01:00
garbagemule
7d01d613be Fix entry fee issue. 2013-11-28 02:10:57 +01:00
garbagemule
93798a3e51 Remove health strategies. 2013-10-19 16:40:29 +02:00
garbagemule
41e910ad69 More help on arena-not-found with setup command. 2013-10-18 21:16:42 +02:00
garbagemule
3763b877aa Clear spectator drops on death. Fixes #210 2013-10-16 11:37:12 +02:00
garbagemule
bf30185534 Add horse variants as monster types. 2013-10-07 11:55:50 +02:00
garbagemule
56a616ee76 Implement mounts. 2013-10-07 02:05:59 +02:00
garbagemule
24caeab24f Health updates for 1.6 2013-10-07 00:35:47 +02:00
garbagemule
5b2b64d8de Revert "Rip in peace, Metrics, you magnificent bastard."
This reverts commit 096c4d4367.
2013-09-26 13:29:33 +02:00
garbagemule
451e39e3b7 Make spec warp mandatory.
This is necessary to ensure a robust /ma spec command. If no spectator
warp is set, the command will throw an NPE - it is much more safe and
sane to require the warp.
2013-09-21 15:27:41 +02:00
garbagemule
096c4d4367 Rip in peace, Metrics, you magnificent bastard. 2013-09-20 23:27:46 +02:00
garbagemule
42d656863f Attempt to fix auto-start-timer issues. 2013-09-20 23:25:38 +02:00
garbagemule
349172b3b6 Make showBlock(s) thread-safe. 2013-09-09 09:05:54 +02:00
garbagemule
acd441dd2e Try to fix flight exception with Setup Mode. 2013-09-09 09:04:52 +02:00
garbagemule
8a1e74a1a4 LinkedList -> ArrayList 2013-09-08 00:00:17 +02:00
garbagemule
80abcf5f24 Allow the items-node to have a list-value.
The items-node in the classes section now supports list values instead
of strictly string-values. This should make it easier to see exactly
which items a class has, and it should alleviate some of the problems
associated with apostrophes and such. The string-valued setup is still
supported to preserve some backwards compatibility.

The armor-node remains untouched, but it will probably be updated to
the same system later.
2013-09-07 23:56:43 +02:00
garbagemule
70060e7dc8 Fix spacing. 2013-09-02 21:22:24 +02:00
garbagemule
354784269e Fix NPE in setclass command. 2013-08-31 05:58:55 +02:00
garbagemule
8ea4799b42 Permissions cleanup. 2013-08-29 02:29:24 +02:00
garbagemule
cd62f040c0 Remove obsolete commands, remove "selected arena"
The notion of a "selected arena" disappears with this commit. All
commands that previously did not require an arena name in the case
of multiple arenas now do, i.e. it is no longer possible to "set"
an arena to be the target of commands. This should not be an issue,
however, since Setup Mode replaces all the commands that previously
were the main reason for the notion of a selected arena.
2013-08-29 02:01:36 +02:00
garbagemule
95fc5eeb6e Create setup command.
The /ma setup <arena> command is the first step in the process of
making the setup procedure more intuitive. The command consists of
the actual command handling, as well as a multi-role inner class,
and together they constitute Setup Mode.

- Toolbox; a set of tools are provided to the user, and a handler
  for the interact event will react to the usage of these tools,
  providing the primary, interactive element of Setup Mode. The
  tools are used to set regions, warps and points.
- Text input; by typing 'exp', the user can expand a given region
  in the typical directions (up, down, out), and by typing 'show',
  the user can request red wool blocks to be displayed in place of
  region frames, warps and points.

Whilst in Setup Mode, the user cannot type any commands, because
the input is intercepted due to the Conversations API - this is
by design, and may prevent some inconsistencies.

The next step in the process will be to fully remove the commands
that Setup Mode renders obsolete. The commands include, but are
not limited to:
- set(lobby)region
- expand(lobby)region
- setwarp
- addspawn
- delspawn
- addchest
- delchest
2013-08-29 01:09:19 +02:00
garbagemule
9f7c009d85 Add more show methods to ArenaRegion. 2013-08-29 00:41:04 +02:00
garbagemule
a4218ae18c Remove debug printouts. 2013-08-29 00:40:23 +02:00
garbagemule
aae6593323 Fix desc of delspawn command. 2013-08-28 08:53:41 +02:00
garbagemule
17d9068aa0 Stop the blaze fires. 2013-08-26 00:22:16 +02:00
garbagemule
470291c626 No more breaking item frames and paintings. 2013-08-23 16:37:19 +02:00
garbagemule
0a2956fb81 Fix MagicSpells config loading issue. 2013-08-23 16:22:42 +02:00
garbagemule
402e6d4de9 Fix lobby potion stuff. 2013-08-22 15:00:50 +02:00
garbagemule
09b1eb9599 Tidy up the set lobby region command. 2013-08-20 18:16:13 +02:00
garbagemule
b11b9d3eb1 Add a setting command. 2013-08-20 17:32:53 +02:00
garbagemule
709480a80f Expose a reloadArena() command in the ArenaMaster. 2013-08-20 17:31:37 +02:00
garbagemule
eb04693c3f Tidy up commands.
- The execute() method has had its docs redefined to reflect how the
  CommandHandler now handles the return value of the method. That is,
  if the method returns false, the CommandHandler prints the usage
  message and description of the command to the command sender.
- Commands now only return false when they should, according to the
  updated docs of the execute() method.
- Most commands have been tidied up a bit, i.e. they've had some
  unnecessary code removed in the advent of the new usage printing
  of the CommandHandler.
- Some commands have had their patterns altered slightly.
- The order of command registration now matters. That is, the order
  commands are registered in will be the order in which the help
  screen will display the command usages and descriptions.
- The help screen now shows ordered commands, and separates the
  types into user, admin and setup sections for a better overview.
2013-08-20 16:36:28 +02:00
garbagemule
e7d3da4db3 Omit [MobArena] on usage messages. 2013-08-20 15:46:52 +02:00
garbagemule
4ce8dcfad3 Simplify first-join => join 2013-08-20 14:40:12 +02:00
garbagemule
6ef8bf23da Fix item glitching.
Let's see you glitch items out now, suckers!
2013-08-19 06:22:31 +02:00
garbagemule
69741a3bdc Add showlobbyregion command. 2013-08-19 04:57:51 +02:00
garbagemule
957545dfe1 Fix all issues related to the lobby region. 2013-08-19 04:56:38 +02:00
garbagemule
d3187fd2de Fix all damage bugs with lobby/spec area.
This simple little do'h has caused many issues, but no more, I say!
NO MORE!
2013-08-19 04:54:43 +02:00
garbagemule
701177a9e2 Fix last standing API. 2013-08-19 02:23:33 +02:00
garbagemule
809ee2facb Expose min- and max-player methods on Arena. 2013-08-19 02:22:44 +02:00
garbagemule
3b47ca407e Fix upgrade waves. 2013-08-18 00:28:00 +02:00
garbagemule
9c411a21ad replaceAll => replace for dollar sign compatibility. 2013-08-16 17:52:32 +02:00
garbagemule
22a8f43fce Add missing wrapper for classchest location setter. 2013-08-16 05:48:18 +02:00
garbagemule
a2328c7271 Avoid NPE with Locations in config files. 2013-08-16 05:31:32 +02:00
garbagemule
8793bd6cef Backwards compatibility for leaderboard coords. 2013-08-16 03:27:54 +02:00
garbagemule
186fc498cf Make root-target a littler rootier. 2013-08-16 01:18:00 +02:00
garbagemule
b0c630df36 Fix color code gibberishing for announcements. 2013-08-16 01:09:39 +02:00
garbagemule
e1feb5172c Fix config reloading. 2013-08-16 01:09:23 +02:00
garbagemule
b9e3a5df0b Fix typo in error message. 2013-08-15 18:11:41 +02:00
garbagemule
ef9fd267c1 Revamp the announcements system.
This commit transforms the announcements system in the following way:
- announcements.yml makes it easier to add missing nodes and remove
  obsolete ones. This way, users don't have to delete their previous
  announcements-file to get the new keys.
- Color codes are supported in the fact that when an announcement
  message is "set()", the string value has all of its &-symbols
  translated.
- No need for a defaults-file, because the enum is very easy to
  compile into a YAML file.
2013-08-15 17:55:21 +02:00
garbagemule
22723d883a Bye bye, Spout. 2013-08-15 15:12:37 +02:00
garbagemule
a3ab2203be Get rid of config adapter.
This change involves many classes because the adapter was relied upon
heavily throughout the project. The change is motivated by the fact
that the wrapper created more problems than it solved. Those problems
(listed here) are solved by this commit. Some classes have undergone
notable changes (e.g. ArenaRegion).

- The config-file will no longer overwrite and regenerate itself
  seemingly randomly.
- The config-file will now save correctly when setting points and
  expanding regions.
- The "no class items in lobby" problem has been fixed.
- The "must be inside region" problem has been fixed.
2013-08-15 14:37:10 +02:00
garbagemule
2475ae3633 Add support for arbitrary filenames... 2013-08-15 04:45:07 +02:00
garbagemule
e99a2f3d44 Fix double-print for loaded arenas. 2013-08-15 04:30:19 +02:00
garbagemule
d92e3e8925 Let's leave out the printlns... 2013-08-15 03:46:49 +02:00
garbagemule
d73a0ed707 Fix "no class items on class selected".
The fix is simply a reload of the config-file after initially loading
the config-file. For some reason it works. No clue why >_>
2013-08-15 03:44:47 +02:00
garbagemule
b6f81e0823 World-change code for set(lobby)region. 2013-08-15 03:41:21 +02:00
garbagemule
a87831a12f Set world-node when world changes. 2013-08-15 03:40:58 +02:00
garbagemule
a15f60b761 Lazy initialization of selected arena.
This fixes issues with having to restart the server for "not ready"
type messages.
2013-08-15 03:39:26 +02:00
garbagemule
8a45e0c953 Make sure we can force worlds. 2013-08-15 00:45:26 +02:00
garbagemule
f1b94fbbcc Correct leaderboards error message. 2013-08-14 22:53:36 +02:00
garbagemule
63ff94b04f Multiworld leaderboards. 2013-08-14 22:37:42 +02:00
garbagemule
f98fe0b78f Multiworld exit-warp and location formatting. 2013-08-14 22:36:12 +02:00
garbagemule
b3cb258d0b Fix lobby region expansion command. 2013-08-14 22:33:44 +02:00
garbagemule
80f091acaa Add world name to coords. 2013-08-13 15:27:33 +02:00
garbagemule
a3cef8339e StringBuffer => StringBuilder, thanks IntelliJ ^_^ 2013-08-13 14:59:11 +02:00
garbagemule
c500c4f80e Remember to add the actual command class ;) 2013-08-13 14:56:10 +02:00
garbagemule
1673078df5 Add classchest command.
The classchest command can be used to link a chest to a class directly
(although still in the same world) without having to position them in
a specific pillar under the signs.
2013-08-13 14:54:34 +02:00
garbagemule
c24f9f8ccc Switch to floating point numbers for locations.
This allows spawnpoints and warps to be specified more precisely.
2013-08-13 14:51:16 +02:00
garbagemule
a5fea824b7 Tossing IntelliJ a bone. 2013-08-10 16:57:24 +02:00
garbagemule
c282fe7000 Add baby zombie villagers 2013-08-10 16:38:44 +02:00
garbagemule
76330f06d3 Add unbreakable-weapons and unbreakable-armor. 2013-08-08 18:23:33 +02:00
garbagemule
345efc9136 ArenaCompleteEvent: s/winners/survivors 2013-08-08 17:58:19 +02:00
garbagemule
544fd91de9 Introduce "last player standing" to death event.
It is now possible to check if an arena player who died was the last
player alive in the arena. Useful for special rewards and stuff.
2013-08-08 06:09:07 +02:00
garbagemule
e3381e895d Some null checks for pet spawner. 2013-08-07 02:00:17 +02:00
garbagemule
3ae69f6cf4 ACTUALLY add the event >_> 2013-08-07 00:10:56 +02:00
garbagemule
1f91dde9e5 Add ArenaCompleteEvent
This event is fired when the final wave was completed and contains
a set of all the players who survived until the end.
2013-08-06 23:59:19 +02:00
garbagemule
0b6a017c32 Include arena in ArenaKillEvent. 2013-08-06 23:58:42 +02:00
garbagemule
2b5291b593 Fix multi-arena join/spec interleaving issues.
- When a player attempts to join or spec an arena while they are
in an arena (arena or lobby), they will be denied access.
- When a player attempts to join or spec an arena while they are
spectating an arena, they will be force-left first.
2013-08-06 12:21:06 +02:00
garbagemule
d57f47fb05 Add ArenaKillEvent
This event is fired whenever an arena player kills either a monster
or another player. Useful for plugin extensions.
2013-08-06 10:33:02 +02:00
garbagemule
312ef3c55a Expose command interface. 2013-08-05 12:42:34 +02:00
garbagemule
48686aafcb Add support for minor economy values. 2013-08-03 04:16:31 +02:00
garbagemule
029a976dc7 Uncancel sign interaction in lobby. 2013-08-03 01:14:14 +02:00
garbagemule
e6a0f30993 Add per-class lobby-permissions node. 2013-08-03 01:13:18 +02:00
garbagemule
dbe5f4d20f Add optional per-arena exit warp. 2013-08-01 16:13:24 +02:00
garbagemule
f43293a376 Attempt to fix multiworld inventory issues. 2013-07-30 23:37:03 +02:00
garbagemule
13948e7554 Add global first-join announce feature. 2013-07-30 23:04:49 +02:00
garbagemule
ea4031b0ed Add isolated chat option. 2013-07-30 22:07:57 +02:00
garbagemule
9230f823fb More task scheduling. Fixes #199 2013-07-30 21:57:36 +02:00
garbagemule
7d27e52d7c Allow flint and steel fire in edit mode. 2013-07-30 13:48:04 +02:00
garbagemule
a5fb96a880 Prevent task scheduling on disable. 2013-07-30 13:31:11 +02:00
garbagemule
859baf7b71 Add global end announcement feature. 2013-07-28 14:21:40 +02:00
garbagemule
d926d99298 Make auto-start kick message customizable. 2013-07-24 14:29:31 +02:00
garbagemule
b643cce511 Fix class chest bones not giving pets. 2013-07-22 19:10:11 +02:00
garbagemule
d6fe6ade4c Add monster type: baby pigmen 2013-07-22 18:26:41 +02:00
garbagemule
de5f21ca1d Fix custom boss abilities not loading. 2013-07-17 15:19:17 +02:00
garbagemule
b6b2ecc168 Fix auto-ready not working for class chests. 2013-07-17 15:15:48 +02:00
garbagemule
bd095dafd5 Change the way region setting works.
The region now contains two location references per region point for
the bounding boxes where p1, p2, l1 and l2 remain the same (min/max),
but also additional locations for the player's actual location, such
that e.g. moving back and re-setting a point has the more intuitive
behavior of expanding regardless of the optimized points.

This also (hopefully) finally fixes the previous issues with the setup
process *knock on wood*.
2013-07-09 04:37:19 +02:00
garbagemule
ed69606388 Fix the region setup bug.
Previously, the set() method would overwrite coordinates completely
without min/max'ing the values to preserve the invariant that p1 is
the lowest point and p2 the highest.
2013-07-05 14:59:09 +02:00
garbagemule
55bbd4ff85 Leave out 1.6 stuff until a stable release. 2013-07-03 14:00:03 +02:00
garbagemule
4a267f5ab5 Use item number for hay bales until 1.6 2013-07-03 13:57:28 +02:00
garbagemule
9b236587da Merge branch 'bleeding' of github.com:garbagemule/MobArena into bleeding 2013-07-03 13:36:48 +02:00
garbagemule
0a6a49410d Some 1.6 updates... 2013-07-03 13:36:41 +02:00
garbagemule
97e9bbc923 Fix default fixed waves. 2013-07-03 13:35:27 +02:00
acstache
07637d087a update ClassLimitManager to provide a set of names of Players who have picked the provided ArenaClass. This will allow manipulating players of just a certain class more easily than before. One possibility is (mind you this is NOT implemented) adding potion effects to a class 2013-07-01 23:51:26 -04:00
garbagemule
22762bf521 Fix setup issue and remove region expansion
This commit consists of two components:
- Restarts are no longer required after setting up the first arena
- Regions no longer auto-expand

The restart requirement is fixed by preventing the ArenaMaster from
actually creating an Arena object and assigning it to the selected
arena upon generating the default arena node in the config-file. The
problem was that the selected arena was set to this initial Arena
object, but another Arena object was created afterwards, which due
to the equals() method of ArenaImpl overwrote the previously created
Arena object in the arenas-list, but didn't change the reference in
the selected arena. In other words; two identical Arena objects were
created, but used in different places (arena list vs. selected arena).

The auto-expansion is removed by simply never auto-expanding regions
upon setting the arena warp or spawnpoints. Instead, setting these
warps throws an error, if p1 and p2 have not yet been set, or if the
location is outside the region.
2013-07-01 19:29:38 +02:00
garbagemule
62eebaa134 Cleanup. 2013-06-27 00:41:54 +02:00
garbagemule
243d0b00fb Add fixed setting for default waves. 2013-06-27 00:29:23 +02:00
garbagemule
65c5ea05b3 Add per-arena setting to enable/disable scoreboards. 2013-06-27 00:05:14 +02:00
garbagemule
97c54855d4 Attempt to fix some XP issues. 2013-06-25 01:58:28 +02:00
garbagemule
e2bae68db1 Ability cleanup.
- All the core abilities have been moved into the project folders
  such that they no longer require any extraction. As such, all
  servers should have the abilities already installed and ready
  to use, regardless of setup-retardation.
- An attempt at fixing the "invisible bosses" issue; a call to
  removeBoss was replaced with getBoss - hopefully this fixes
  all the issues.
2013-06-25 01:53:45 +02:00
garbagemule
1320c34f67 Major revamp of Upgrade Waves.
Using a node setup similar to that of the classes-section, it is
now possible to make complex Upgrade Waves that update weapons
and armor on-the-fly. This also means 'permissions' upgrades.
2013-06-24 22:24:01 +02:00
garbagemule
adb8ee1668 Add checkspawns command. 2013-06-24 22:10:07 +02:00
garbagemule
325b252696 Add showspawns command. 2013-06-24 21:44:18 +02:00
garbagemule
4d95b67cb1 Fix reload issues! Woooo! 2013-06-24 14:48:33 +02:00
garbagemule
3386ba3794 Use ChatColor in ScoreboardManager. 2013-06-24 11:15:52 +02:00
garbagemule
069394c9f5 Add per-arena setting: display-timer-as-level 2013-06-22 13:06:44 +02:00
garbagemule
fe8a8ffa80 Fix the all-node for upgrade waves. 2013-06-22 12:06:13 +02:00
garbagemule
52599319c1 Attempt at fixing reload issues. 2013-06-22 12:02:45 +02:00
Andreas Troelsen
db953285c5 Add per-arena setting 'auto-ready'. 2013-06-10 10:43:03 +02:00
Andreas Troelsen
ffe270511c Let Bukkit serialize (some) inventories...
Since ConfigurationSerializable, there's no need to manually serialize
items anymore, and thus we let Bukkit serialize player inventories for
when players join arenas.

However, the "repairables" in the soft-restore mechanism still use the
now obsolete SerializableItem and SerializableInventory classes, and
should perhaps be rewritten.

Note that for 1.0, it may still be necessary to write a custom means
of serializing items, since we don't know if a given implementation
supports native serialization (however it should be possible to rely
on Bukkit's in the Bukkit-specific classes).
2013-06-10 00:44:56 +02:00
Andreas Troelsen
bd025ff7a6 Add reward-node to boss waves. 2013-06-10 00:25:53 +02:00
Andreas Troelsen
4bcb5c04ac Update ItemParser to (hopefully) support more items. 2013-06-10 00:22:21 +02:00
Andreas Troelsen
7ef98d4538 Remove unused getWave() method from Arena 2013-06-10 00:19:42 +02:00
Andreas Troelsen
0be1a7e4c9 TNT no longer hurts other players with PvP disabled. 2013-06-06 09:38:24 +02:00
Andreas Troelsen
e8fbc6d2f7 Add locations to spawnpoint coverage warning. 2013-05-09 00:52:05 +02:00
Andreas Troelsen
6fc59c9321 Fix CME when players 'cheat' 2013-05-06 23:40:41 +02:00
Andreas Troelsen
5104c975fd Fix player health conflicts. 2013-05-03 22:30:59 +02:00
Andreas Troelsen
3fa63a1146 Only weapons should auto-repair. 2013-05-02 15:55:53 +02:00
Andreas Troelsen
1497a46a77 Make the scoreboard header a little smaller. 2013-05-02 15:41:46 +02:00
Andreas Troelsen
5757723028 Implement basic scoreboard support. 2013-04-09 19:39:48 +02:00
Andreas Troelsen
6d8ab98323 Scheduler stuff. 2013-04-09 14:07:54 +02:00
Andreas Troelsen
76633aeffe Fix potion bug with setclass command. 2013-04-08 02:03:41 +02:00
Andreas Troelsen
b99097f625 Last spot in class chests is now reserved for helmets. 2013-04-04 18:08:46 +02:00
Andreas Troelsen
092a986887 Class chests can now be trapped chests. 2013-04-04 17:36:42 +02:00
Andreas Troelsen
0ea5c7a313 Make non-sign leaderboard-nodes non-fatal. 2013-04-04 05:04:25 +02:00
Andreas Troelsen
6663235a83 Fix enchanted apples getting 'repaired'. 2013-04-03 21:20:12 +02:00
Andreas Troelsen
45f2605794 Don't repair potions and wool. 2013-03-27 14:09:10 +01:00
Andreas Troelsen
7977915aa1 Add boss name tags. 2013-03-22 22:22:52 +01:00
Andreas Troelsen
fd8bfbf1f0 Fix NPE caused by weaponless damage. 2013-03-21 23:51:06 +01:00
Andreas Troelsen
4b970c6fce Use non-deprecated ItemStack constructor.
The SerializableItem class was previously using a constructor that
included a raw byte for data values. The current constructor takes
no byte argument and the data value must be set explicitly.

This fixes e.g. splash potions not restoring properly from arena
containers.
2013-03-21 23:47:48 +01:00
Andreas Troelsen
f9a1e6e123 Remove unused boss damage method. 2013-03-21 23:33:26 +01:00
Andreas Troelsen
09d9605bb2 Make all MA weapons unbreakable (temporary). 2013-03-21 23:32:35 +01:00
Andreas Troelsen
dd5924adc1 Remove wtf import o.O 2013-02-26 21:12:27 +01:00
Andreas Troelsen
024644ad8a Notify non-ready players on force start. 2013-02-26 21:09:47 +01:00
Andreas Troelsen
ef3b1b42cc Add per-arena option: display-waves-as-level
If true, this option will cause wave numbers to be displayed as the
players' level to aid in wave tracking. It does NOT replace the
announcements, which can still be disabled by putting blank values
in the announcements-file.
2013-02-26 20:12:58 +01:00
Andreas Troelsen
f9da8872dd Add more auto-start timer announcements. 2013-02-17 04:19:22 +01:00
Andreas Troelsen
9cca20aa92 Add clear-wave-before-boss option. 2013-02-16 15:05:21 +01:00
Andreas Troelsen
7e1b2c2b9f (Possibly) fix invisible bosses.
Unsurprisingly, MobArena's monster handling is sub-optimal, possibly
due to premature optimization. Before, when e.g. a Creeper boss would
explode, it would not be removed from the bosses collection, and thus
the ability thread would continue on running.

This patch adds a tiny bit of overhead w.r.t. removing dead monsters,
but it fixes the issue with Creeper bosses, and with a bit of luck,
mcMMO will not cause issues anymore (yet to be tested).
2013-02-16 14:51:02 +01:00
Andreas Troelsen
cc1187b7f6 Rewrite version checker. 2013-02-15 22:41:59 +01:00
Andreas Troelsen
523c345102 No more logging. 2013-02-03 19:09:47 +01:00
Andreas Troelsen
a4e39562f6 Add support for enchanted books.
Thanks, slipcor!
2013-02-03 16:47:40 +01:00
Andreas Troelsen
97ecc97fd4 Fix possible NPEs. 2013-01-28 22:51:52 +01:00
Andreas Troelsen
ad8a99acda Swap order for vertical layouts. 2013-01-26 04:11:52 +01:00
Andreas Troelsen
646a31da73 Fix possible NPE. 2013-01-26 03:47:07 +01:00
Andreas Troelsen
fa28964d51 Make the chest search happen per-pillar.
This allows for a sneaky little trick, where two lines class signs
becomes possible, if one chest is offset backwards, and the other
chest is positioned at the very bottom block.
2013-01-26 03:37:49 +01:00
Andreas Troelsen
2de480709d Add support for class item chests.
This is an extremely ugly, hacky way to do it, but the feature
should definitely make it into 1.0 - it requires no commands or
any other complex setting up besides flipping one option in the
config-file.

Upon clicking a class sign in the lobby, MobArena will (if the
config-setting is true) search for chests below the sign, and
below (and including) the block behind the sign, i.e. the block
that a wall sign would be attached to. If a chest is found, the
contents will become the class inventory.

The search can be optimized to be a one-off thing unless the
block changes from being a chest. A todo for 1.0, perhaps.
2013-01-25 23:27:32 +01:00
Andreas Troelsen
3f3518ab5b Try to restore inventories on server join.
This should have absolutely no effect due to the implementation
of the restore method. If no file exists, nothing happens, but if
for some reason the inventory was never restored, it will be.
2013-01-25 23:12:50 +01:00
Andreas Troelsen
9d7fbf7247 Allow flat health values for bosses. 2013-01-21 03:56:47 +01:00
Andreas Troelsen
cf5149c3b9 Finally fix the flight issue.
Update to v0.94.4.95 for next build.
2013-01-19 02:06:43 +01:00
Andreas Troelsen
6833966c9a Break or die! 2013-01-18 02:12:01 +01:00
Andreas Troelsen
01fdcabe6d Add Metrics to shut slipcor up! 2013-01-17 17:50:09 +01:00
Andreas Troelsen
72aba03400 Simple attempt at anti-flying. 2013-01-17 17:49:08 +01:00
Andreas Troelsen
ddeb0cef44 Better multiworld support. 2013-01-16 23:44:20 +01:00
Brian
27e1eae504 braaaaaaains... just kidding, but here are some more zombies 2013-01-09 22:11:47 -05:00
Brian
4548152a27 finish unreverting leaderboard fix/clean up 2013-01-03 22:31:56 -05:00
Brian
b012d9c0c0 Wolves are wolves, not players 2013-01-03 21:53:00 -05:00
Brian
051c058c1a dont revert upstream fixes! whoops! 2013-01-03 21:37:18 -05:00
Brian
1f03436f40 update boss health using new Entity Max Health API/fix health-multiplier values > 1 on default style waves 2013-01-03 21:32:21 -05:00
garbagemule
60e5324ea6 Fix leaderboards. Tsk, tsk, Bukkit! 2012-12-29 04:45:59 +01:00
garbagemule
620ff5ada7 Add AutoStartTimer to repo >_> 2012-12-27 21:30:55 +01:00
garbagemule
807e30be49 Add auto-start-timer feature. Minor cleanup. 2012-12-26 12:55:46 +01:00
garbagemule
5ed81f0a2a Add a couple of new tiny features.
- With pvp-enabled: true, PvP is activated at the first wave,
  giving players a period of time to spread out.
- The per-class config option, unbreakable-weapons: true-false, can
  be used to set whether weapons for a class should have infinite
  durability or not.
2012-12-22 13:36:49 +01:00
garbagemule
df605b13fb Import ItemStack and minor cleanup. 2012-12-20 12:35:42 +01:00
slipcor
f5bd14ee96 Update src/com/garbagemule/MobArena/waves/SheepBouncer.java
Remove CraftBukkit dependency, replace explosion with API method.
2012-12-17 22:54:08 +01:00
slipcor
44bacf8814 Update src/com/garbagemule/MobArena/waves/MACreature.java
add new 1.4.5 mobs, utilizes 1.4.5-DEV !!! CraftBukkit #2524
2012-12-17 22:51:56 +01:00
slipcor
d140712206 Update src/com/garbagemule/MobArena/ArenaListener.java
Fix players being able to issue commands when spectating
2012-12-17 22:40:03 +01:00
garbagemule
cb39b97c80 Fixed inventory exploit. 2012-09-18 22:53:19 +02:00
garbagemule
44a3d0754c Fix NewWaveEvent. 2012-09-14 20:18:05 +02:00
garbagemule
80018504bc Fix dangling else in the listener, and no more NPEs for setclass command. 2012-09-14 20:16:37 +02:00
garbagemule
a94370deec Fixed the config-file reset bug. 2012-08-22 06:05:45 +02:00
garbagemule
6ade558eeb Fixed ClassLimitManager and split ArenaClass.getName() into
getConfigName() and getLowercaseName()
2012-07-30 18:00:37 +02:00
Brian
b7f25504f2 replace tabs with 4 spaces 2012-07-29 22:39:38 -04:00
Brian
a93749225e v0.94.4.78 - listen for sign breaks, if it is a leaderboard sign, remove it from the config 2012-07-29 22:30:16 -04:00
Brian
4c4e06d3a8 v0.94.4.77 - More CLM stuff, Updated Deprecated spawnCreature [requires 1.2.5-R4.1] 2012-07-27 10:29:38 -04:00
Brian
1e42350aaf v0.94.4.75 - prep for deprecated spawnCreature method, more Class Limit work 2012-07-02 20:36:58 -04:00
Brian
33199aa05e v0.94.4.74 - more ClassLimitManager stuff, needs more work 2012-06-29 21:36:41 -04:00
Brian
dd2ec4c157 fix an NPE, order matters! 2012-06-07 21:17:02 -04:00
Brian
cb06e2cb1e v0.94.4.73 - more Class Limit Manager work; testing begins 2012-06-07 21:13:15 -04:00
Brian
c6fada2bfd v0.94.4.72 - picking "random" class doesnt assign until the arena begins now 2012-06-07 19:39:08 -04:00
Brian
7e48ec7410 v0.94.4.71 redo - not allow joining other arenas from in lobby or arena, spectator is fine 2012-06-06 20:37:20 -04:00
Brian
795edcb9ff v0.94.4.71 - allow joining arenas from spectator areas 2012-06-06 20:32:01 -04:00
Brian
b783f8ecbb v0.94.4.70 - Fix "random" class sign not working 2012-06-06 20:27:23 -04:00
Brian
906fe93d6a v0.94.4.69 - beginning of Class Limits feature [not working] 2012-06-06 20:20:11 -04:00
Brian
9f77f2f3de v0.94.4.68 - fixed not giving rewards to spectators when they leave 2012-05-24 00:33:10 -04:00
Brian
fc28597b95 increment version like normal, a few bug fixes, food level should now reset properly when leaving from/dying in the arena 2012-05-23 21:35:00 -04:00
Brian
76dc0c1df3 allow Snow & Iron Golems to be made in the arena. Track them and display when they die 2012-05-22 02:04:26 -04:00
Brian
e473c72743 fixed double economy rewards, spectators dont get rewards until after they leave the spec area 2012-05-22 01:42:17 -04:00
Brian
e2901086f0 a couple of TODOs, fixed "keep-exp: false" not removing exp 2012-05-21 22:15:11 -04:00
Brian
10147532a5 fix joining from other arenas (hopefully), readd missing block destroy check 2012-05-19 17:30:20 -04:00
Brian
806583f41a reworked block break logic a little, deny outsiders to break into the arena at all times 2012-05-16 22:30:12 -04:00
Brian
d856f32103 removeleaderboard command fixes, new Msg enum, plugin.yml 2012-05-13 13:58:59 -04:00
Brian
708ed2821d 0.94.4.66 - bug fixes, works for 1.2.5-R1.3 2012-05-13 02:22:21 -04:00
garbagemule
08b19e7b8e Snowmen no longer melt. Thanks to ACStache. 2012-03-30 03:31:31 +02:00
garbagemule
e9e18e569e Added 1.2 creatures OCELOT and IRONGOLEM. Thanks to ACStache. Also added SNOWGOLEM for the SNOWMAN type. 2012-03-30 03:26:51 +02:00
garbagemule
fa194823a9 Skeletons and zombies are no longer immune to fire blocks and fire arrows. Thanks to ACStache. 2012-03-30 03:17:59 +02:00
garbagemule
f2fefdb62d Dropping items as a spectator outside of the region forces the player to leave. Thanks to ACStache. 2012-03-30 03:11:29 +02:00
garbagemule
be1adba3b8 Added VERYLOW and VERYHIGH boss health values. VERYHIGH replaces PSYCHO, and PSYCHO is even more psycho. Thanks to ACStache. 2012-03-30 03:04:50 +02:00
garbagemule
a058bce396 Boss abilities should no longer continue when bosses die due to untracked damage. Still waiting for Bukkit to add the missing damage handling. 2012-03-11 16:14:45 +01:00
garbagemule
da0f028106 Fixed serious spawn prevention issue. 2012-03-11 15:54:34 +01:00
garbagemule
f0e0419ebd Added null check for reward logging. 2012-03-11 13:41:30 +01:00
garbagemule
7ecc2c7a0d Fixed silly logging bug when leaving from the lobby. 2012-03-08 09:05:37 +01:00
garbagemule
61a2e3b319 Colorful sheep! 2012-03-08 03:00:31 +01:00
garbagemule
70ec22a066 Added auto-ignite-tnt arena setting. 2012-03-08 02:05:31 +01:00
garbagemule
a036891996 If only git knew to add new files... 2012-03-08 00:00:35 +01:00
garbagemule
48acd00d47 Reintroduced logging. 2012-03-07 23:51:00 +01:00
garbagemule
5e7287d03f Potion effects are properly removed on join and leave/death. 2012-03-04 13:25:40 +01:00
garbagemule
2adf1678cc Make harmful potions obey the pvp-enabled setting. 2012-03-03 11:47:53 +01:00
garbagemule
fba31d26a4 Prevent endermen from warping in and out of arena regions. 2012-03-03 11:09:59 +01:00
garbagemule
e394e1554c Teach auto-generated arenas to update their lobby signs. 2012-03-03 10:59:25 +01:00
garbagemule
e3c22c98e0 Fixed disable command. Minor code cleanup. 2012-03-03 10:48:47 +01:00
garbagemule
1f7d280ac8 Fixed classname sensitivity. Permission nodes MUST be all lowercase now, though. This should also erase any confusion with PEX perms. 2012-03-03 09:05:35 +01:00
garbagemule
5df837ea68 Added support for infinite itemstacks. 2012-03-03 08:44:18 +01:00
garbagemule
dc9059cecd Updated source code for CB 1.1-R6. 2012-03-02 22:30:52 +01:00
garbagemule
353109c89a Systems with no Java compiler will not try to compile files. Default abilities are now pre-compiled for compatibility with such systems. build.xml updated to reflect changes. 2012-03-01 22:13:36 +01:00
garbagemule
a3fa0539ce Attempt to properly update... 2012-03-01 00:19:17 +01:00
garbagemule
2e76b93837 Fucking hate git... 2012-03-01 00:12:14 +01:00
Garbage Mule
777f6b9b07 So, you got a big source code revamp. Big whoop, wanna fight about it? 2012-02-24 05:11:06 +01:00
Garbage Mule
e7c66be183 Attempt to fix the permissions issues. 2011-12-12 03:09:49 +01:00
Garbage Mule
bc33ed5824 Blabla 2011-12-12 03:05:51 +01:00
Garbage Mule
c420568cb9 JoinCommand and ArenaListCommand somewhat done. 2011-12-10 23:49:39 +01:00
Garbage Mule
289b1792f5 Complete Config-overhaul, as well as preparation and initial classes for JUnit-testing and refactoring of commands. 2011-12-10 18:33:04 +01:00
Garbage Mule
65e17239e6 Fixed boss health issues. Needs cleanup later. 2011-12-03 21:19:25 +01:00
Garbage Mule
7e30c42510 Fixed item stack creation, so splash potions are created properly. 2011-12-03 20:48:04 +01:00
Garbage Mule
f7e8cc2a83 Potions are now supported as class items. The effects do not wear off upon leaving. Waiting for a relevant cancellation method in Bukkit API. 2011-12-03 20:28:38 +01:00
Garbage Mule
8a0c76c23f First build against MC 1.0 CB. Added support for the new creatures. Ender dragons are messed up, though! 2011-12-03 19:47:17 +01:00
Garbage Mule
2603536149 Food level defaults to 10 to avoid the invincibility effect. 2011-12-03 16:30:28 +01:00
Garbage Mule
c9b9587ce9 Added final-wave per-arena setting. 2011-10-25 17:31:48 +02:00
Garbage Mule
9161bead55 Fixed Heroes health bug (thanks, Drehverschluss, for helping out with the testing) 2011-10-24 19:27:07 +02:00
Garbage Mule
a31aa1ce0e Fixed the mobarena.setup.addcontainer permission 2011-10-18 17:54:12 +02:00
Garbage Mule
ad4d502618 Changed the default usage message to reflect people fucking up 2011-10-18 14:46:48 +02:00
Garbage Mule
6d53b7c193 Fixed warping to lobby from outside the region. 2011-10-14 13:23:56 +02:00
Garbage Mule
fb678cc89f Rewrote teleport handling. 2011-10-14 02:41:41 +02:00
Garbage Mule
5165eda6df Implemented blocklist clearing (no more repair-delay!), and added support for right-clicking signs in the lobby! 2011-10-14 02:26:53 +02:00
Garbage Mule
b4c8ad1d25 C:/Program Files (x86)/Git/ma showregion now picks the arena the player is in, or the selected arena if none were found. Changed to client-side blocks, too. 2011-10-09 02:08:57 +02:00
Garbage Mule
7567d10dda Live players are now displayed on leaderboards in green. Dead players are still displayed in black. 2011-10-08 12:55:10 +02:00
Garbage Mule
4762fb5a6e Signs now properly clear at the start of sessions. 2011-10-08 12:20:58 +02:00
Garbage Mule
279e04abb4 Delayed dousing fire by 2 ticks. 2011-10-05 12:17:18 +02:00
Garbage Mule
b13ff6b7fc Class signs can now contain colors! 2011-10-04 22:28:53 +02:00
Garbage Mule
f4b89fe386 Changed the default CB version to 1240 in case of failure 2011-10-04 21:41:17 +02:00
Garbage Mule
7df41a6027 Updated Register, built against CB 1240 2011-10-04 02:23:24 +02:00
Garbage Mule
69ad343e16 Players not in the right world will now get banned for life! 2011-10-03 22:03:48 +02:00
Garbage Mule
f808b24464 Leaderboards now sort properly, and update every 100 ticks. This will be customizable later. 2011-10-02 23:16:47 +02:00
Garbage Mule
34d2af6c14 v0.94.3.9 - Deprecated support for Heroes pre-b400! 2011-10-02 18:13:57 +02:00
Garbage Mule
515d29a714 Added basic Leaderboards functionality. 2011-10-02 07:24:57 +02:00
Garbage Mule
5c3f65fabe Changed the version checker to be more regex friendly. 2011-09-30 12:47:59 +02:00
Garbage Mule
7d9b227c7e Removed dead file. 2011-09-27 20:21:32 +02:00
Garbage Mule
70ead1efe1 Fixed MagicSpells mumbo jumbo. No more pre v1.1! 2011-09-27 20:19:53 +02:00
Garbage Mule
da8c98b119 Fixed the spawnMonsters/difficulty change. Stable for 1185 and 1216 now. 2011-09-26 17:50:37 +02:00
Garbage Mule
fd5be195a8 arenaMap in ArenaMaster moved to avoid NPE in onDisable 2011-09-25 20:49:58 +02:00
Garbage Mule
3e529e5d0e Missed setting the gamemode on join! 2011-09-25 16:48:07 +02:00
Garbage Mule
8be674d8ec Game mode stuff 2011-09-25 16:46:51 +02:00
Garbage Mule
5679a5b135 Another null check 2011-09-25 15:27:28 +02:00
Garbage Mule
b0ec5b85c6 CreatureType.MONSTER replaced by CreatureType.ZOMBIE just in case 2011-09-25 00:54:38 +02:00
Garbage Mule
f7d9ce1bd6 Fixed some boss spawnpoint issues. 2011-09-25 00:52:19 +02:00
Garbage Mule
03a1212e6b Null check mania! 2011-09-23 17:45:37 +02:00
Garbage Mule
c126bf36e9 Updated economy support 2011-09-22 11:50:01 +02:00
Garbage Mule
0badeaaf90 Added recording of food bar on player join 2011-09-18 23:41:16 +02:00
Garbage Mule
dcff0915a5 Fixed/changed per-class permissions, added Endermen, Cave Spiders and Silverfish, and other stuff. 2011-09-18 23:33:07 +02:00
Garbage Mule
f1433cfc88 Code cleanup 2011-09-16 22:45:05 +02:00
Garbage Mule
7d2c9c9240 Fixed lightning-setting in config-file actually doing something. 2011-09-16 01:40:56 +02:00
Garbage Mule
f0f5967e8d Added support for MagicSpells v1.1 (bad nisovin, BAD!) 2011-09-15 16:19:45 +02:00
Garbage Mule
5e55d57326 Restored MagicSpells 1.04 suppport... 2011-09-15 07:38:24 +02:00
Garbage Mule
a0b489f11b Compiled against CB1113 2011-09-15 07:35:46 +02:00
Garbage Mule
6291a0fbfb Added Spout class selection option 2011-09-14 01:29:26 +02:00
Garbage Mule
ace0475530 Removing JNBT library 2011-09-14 00:04:13 +02:00
Garbage Mule
7c5d5bfda2 Cleanup in MAUtils. 2011-09-14 00:02:07 +02:00
Garbage Mule
33710b7dc3 Added health-multiplier support for swarm waves. 2011-09-13 23:44:36 +02:00
Garbage Mule
d927c147ec Yet another hotfix 2011-09-13 23:38:53 +02:00
Garbage Mule
2ce02c9169 Hotfix for health-multiplier 2011-09-13 23:34:20 +02:00
Garbage Mule
35647bd14c Introduced health-multiplier and amount-multiplier 2011-09-13 23:31:55 +02:00
Garbage Mule
3147bdfda0 Added only-on-swarms for MagicSpells 2011-09-13 21:46:51 +02:00
Garbage Mule
739d7270f1 Players that warp out of the world will get kicked. 2011-09-13 17:39:00 +02:00
Garbage Mule
4c0726a822 Fixed more Heroes stuff, pet stuff, etc. 2011-09-13 17:14:50 +02:00
Garbage Mule
7457aea412 Fixed Heroes PvP stuff... 2011-09-13 16:09:58 +02:00
Garbage Mule
b85f87f856 Introduced magicspells.yml for disabling custom spells. 2011-09-13 10:43:41 +02:00
Garbage Mule
34f688da70 Disables the MagicSpells purge spell during boss fights. 2011-09-13 09:37:25 +02:00
Garbage Mule
ff28bf1a87 Fixed Heroes death bug (maybe)... Time for testing! 2011-09-12 23:46:59 +02:00
Garbage Mule
1959ba5b85 Added isPvpEnabled() on Arena 2011-09-10 23:15:54 +02:00
Garbage Mule
e624e41bfc Removed a redundancy 2011-09-10 10:45:03 +02:00
Garbage Mule
19b011981e Projectile damage should no longer damage players if PvP is disabled 2011-09-09 18:15:48 +02:00
Garbage Mule
ff7329e3c4 Code cleanup, and projectiles should no longer damage pet wolves. 2011-09-09 18:11:15 +02:00
Garbage Mule
cc1ba24ef8 Moved setTypeId() to the RepairableAttachable constructor 2011-08-31 00:33:40 +02:00
Garbage Mule
f402800dd2 Made redstoney things drop as items more rarely. 2011-08-30 23:52:03 +02:00
Garbage Mule
0fd997e3e9 Cleaned up listeners, redstone works (but drops as items), made permission string matching cleaner/faster 2011-08-30 22:48:28 +02:00
Garbage Mule
6fa7f377cc GIT SUCKS MONKEY NUTS! 2011-08-28 01:26:42 +02:00