Commit Graph

916 Commits

Author SHA1 Message Date
garbagemule
402e6d4de9 Fix lobby potion stuff. 2013-08-22 15:00:50 +02:00
garbagemule
f1afdd282a Get rid of obsolete arena settings. 2013-08-21 12:16:52 +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
03c0ecc651 Up. 2013-08-15 03:46:02 +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
0fa22589e3 Make sure we load AFTER Multiverse, just in case. 2013-08-14 22:22:45 +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