Commit Graph

98 Commits

Author SHA1 Message Date
= 3217c0a732
Only set player attack speed when in warzone 2018-11-28 15:57:53 -08:00
Connor Monahan b24e495df7 Drop TagAPI support
TagAPI has been dead for several years. Also upgrade Java to 1.8, why not.
2018-11-19 20:06:06 -06:00
Connor Monahan 6b90371fce Drop Spoutcraft support
Spout has been dead for 5 years
2018-11-19 20:00:18 -06:00
Connor Monahan 4e83ffada1 Fix some deprecated stuff 2018-11-19 00:43:50 -06:00
= 0babe82368
Fix a lot of errors in updating to 1.13 2018-10-31 17:10:51 -07:00
Connor Monahan 821c66c556 Fix #790, add playercount and switching scoreboards
* Switching scoreboard jumps between all scoreboard types every minute
* Playercount scoreboard shows number of players per team
2017-07-29 02:14:18 -05:00
Connor Monahan 9135e5bf22 Chest UI for War 2017-07-27 15:55:10 -05:00
Connor Monahan 66445eb61d Replace deprecated Bukkit functions 2017-07-18 14:33:44 -04:00
cmastudios 4f60ebb780 Merge remote-tracking branch 'origin/rewrite/death' into develop 2014-06-13 21:42:49 -05:00
cmastudios df1e5a56df Fix respawn after game end with realdeaths
Closes #793

Please note this is not a simple fix and applies it through a large
series of changes that may need to be noted in case of further troubles
in the future.

To accomplish this correctly, if a player is a really dead fighter, his
state and position will not be updated in a number of places. This is
all handled by the respawn hook for really dead fighters, which by the
way I rewrote because yolo. It makes a (potentially incorrect)
assumption that there is no reason a zone should hold a previous player
state when they join, so it is deleted for safety purposes. If not, and
the player leaves the zone, they may lose items. This may fix other
related inventory reset issues.
2014-06-12 20:59:01 -05:00
cmastudios 92002a06a2 Rewrote Warzone#handleDeath
NEEDS TESTING
2014-05-19 19:31:21 -05:00
taoneill b17e38cfd2 Closes #746. OnEntityCombust event handler was firing for non-fire events and cancelling regular damage events for players within spawn.
- This fixes players being able to profit from spawn damage protection even if they already left the spawn once
2014-01-26 17:20:56 -05:00
Connor Monahan 20068cbb15 Fix player list spacing issue 2014-01-07 18:37:33 -06:00
cmastudios 0f35c4dc4c I have sinned a great sin.
Forgot to switch IntelliJ to use tabs.
2013-11-19 15:53:30 -06:00
cmastudios 66158ae44b Toggleable team chat. Closes gh-317.
Sorry @grinning, I tried to cherry pick your stuff but it did not work _at all_.
2013-11-19 15:47:01 -06:00
taoneill df85b176b7 Remove broken getZoneByTeam logic
- Replaced with warzone getter on Team objects
- Should close #704
2013-11-17 23:34:31 -05:00
cmastudios ceeea15794 Subroutines for join/leave zone boilerplate & thief removal
Warzone now contains a few new methods to make adding and removing players from the zone easier. This was made in response to every join mechanism having to rewrite the same ~25 lines of code to handle adding players to a team. This was also done to replace the even more bulky code used to return stolen structures.

This also removes a few unused jobs as I am trying to transition away from them, as they don't really help if they are not being used for async tasks, batches, or timers.

A better way of managing teleports at the end of a game or when leaving normally has been added.
2013-11-01 18:05:02 -05:00
taoneill df6f47907f Merge pull request #684 from taoneill/nimitz-file-format-r3
Nimitz file format. Support for custom blocks. Old warzone volume files get converted to .sl3 when you first run your server with these changes - this may take a while if you have many warzones.

Thanks @cmastudios for all the hard work on these changes.
2013-10-23 21:45:41 -07:00
cmastudios 7621bdd321 Fix some issues uncovered in review, add block features.
This fixes some issues found during @taoneill's review of the code. It
also adds a few features with blocks, such as a modify block whitelist.
KDR updates are now stored at the end of each battle in a warzone.
Closes #681, closes #672, closes #682, closes #683, closes #689, ping
#688.
2013-10-16 18:55:07 -05:00
cmastudios 1722c86a71 Remove deprecated BlockInfo in favor of Location/BlockState
BlockInfo kept making me cringe every time I had to look at the code. More importantly it only had support for storing item IDs and no data. It was way obsolete versus new API.
2013-10-05 02:04:28 -05:00
cmastudios 5913f73fcb Internationalized player interface, Russian locale
Most player-interfaced features such as event responders, signs, and
some player commands now have their messages stored externally in a
resource bundle. This allows for easy localization of the plugin by
copying the main messages.properties file and translating all the
messages into the language of choice.

Also thanks to @AlexMerser21 for the partial russian localization of the
plugin. This means that War servers can now show messages in the russian
language simply by starting the minecraft server with the flag
-Duser.language=ru.
2013-09-29 00:42:35 -05:00
cmastudios 39b0ead3bd Using more bukkit interfaces rather than IDs
Item/damage/anything ID's have now become deprecated in bukkit presumedly
in preparation for any sort of official server modding API. This switches
war from using IDs in most cases to bukkit-provided classes such as
ItemStack.
2013-09-27 18:11:09 -05:00
cmastudios f1ce78907e Fix issues with joining a team.
Players are no longer silently kicked out of their team if they try to join
a non-existant team with /join. Fix an inconsistency with the format of the
team join notification message.
2013-09-10 18:57:58 -05:00
cmastudios 2738d2e358 Add scoreboard features and configuration options. Fixes gh-623, gh-45
With the new warzone configuration property "scoreboard", zone makers can
set the type of scoreboard to be used. This may be "none", "points", or
"lifepool". If the scoreboard type is not "none", then a scoreboard will
be shown on the right side of the screen in the warzone. The shown
scoreboard will display the configured option.

Also, 3-year-old feature request COMPLETED! Use the command
/zone <warzone-name> scoreboard to view a scoreboard from anywhere.
2013-09-10 17:27:05 -05:00
cmastudios 890e78fd5d TeamKind cleanup, warning fixes, closes gh-631
TeamKind has been changed to store colors in a DyeColor object instead
of using a byte value store. This improves readability and makes the
code future-proof.

All listeners are now unregistered when the plugin gets unloaded. This
removes the need for listeners to check if War is loaded and prevents
duplicate registration. I would prefer if the ability to unload and load
the War plugin was completely removed, however, as there are plugins out
there such as PlugMan that are dedicated to cleanly reloading plugins.

The main purpose of this was to clean up all issues and problems
reported by the eclipse java IDE. 0 warnings are shown by the IDE now.
2013-09-04 23:27:27 -05:00
cmastudios 5a571e7329 Add support for multiple spawn points. Closes gh-628.
/setteam <color> now will add an additional spawn point if the team already
exists.

When a player joins a team in a warzone, they will be sent to any one of
their teams spawn points, picked at random.

This change required major modifications to the underlying teams subsystem
in order to support multiple spawn points for the team.
2013-08-08 23:27:09 -05:00
cmastudios c56fac6c34 Make invisible spawns hidden. Closes gh-627 2013-08-08 17:25:15 -05:00
cmastudios 0fbf381748 gh-604 Add TagAPI support to War.
Used for changing color of player names while playing a match of War.
http://dev.bukkit.org/server-mods/tag/
2013-03-06 16:50:11 -06:00
taoneill 0245476130 Basic support for RB 1.4.5-R1.0.
Backward compatible with 1.4.5-R0.2 and previous. Switched version to
War v1.7.4-PREVIEW. Lobbies and warhubs should line up properly now, at
least. Commands such as '/setzonelobby east' still use the wrong
directions.
2012-12-20 00:10:40 -05:00
taoneill 60e4eafc13 Customizable warzone structure materials
Change flag, monument, bomb, cake and spawn look by typing "/zonecfg
material:<main/stand/light>" while holding the block of your choosing.
Complements the lobbymaterial and warhubmaterial settings.

Brought back synchronization.
2012-06-18 23:36:06 -04:00
taoneill d7a6bf9e53 Little renaming of the Spout ui classes. 2012-01-29 21:31:54 -05:00
taoneill ee7dab194a Just moving classes around again. 2012-01-22 22:05:34 -05:00
taoneill 4ffaadf3da Fixing the pom.xml so plugin.yml - which I moved a couple of commits ago - makes it into the final jar in the maven build. Still messing around with namespaces while everything is broken. 2012-01-20 23:01:43 -05:00
Thomas-Antoine O'Neill e8e2c0c472 Forgot to delete the rename-namespace files. 2012-01-20 21:28:19 -05:00
Thomas-Antoine O'Neill bbdfef0ca6 Closes gh-358. Update for compatibility with the new Bukkit Events system (i.e. CB #1782+). 2012-01-20 20:40:30 -05:00
taoneill 934292df88 Closes gh-353. Closes gh-354. Finally some new gameplay elements. Added Bomb and Cake structures. Use /setbomb <name>, /setcake <name>, /deletebomb and /deletecake. Grab the bomb and blow up your enemy's spawn for a point. Don't get touched or you blow up. Return the cake to your spawn to get a point and a replenished lifepool. 2012-01-16 23:57:59 -05:00
taoneill 38c91b5623 Fixed War without Spout being broken. Made 'monument freed' notification use owner team wool block. 2012-01-09 23:44:40 -05:00
taoneill 25bbf5b185 Updating stats more often just like @SuperYoshi did originally during teams spawn reset. Tweaked message colors. 2012-01-09 00:21:02 -05:00
taoneill 2adb328115 Re-added Spout stats board in a more compact format, with messages now coming underneath the stats board at the top left of the screen. Added notification when flag is dropped. 2012-01-08 23:45:45 -05:00
taoneill 0d7f2feef4 Added Spout notifications for battle and match end as well as monument captures (and tweaked the flag capture ones). Turns out ChatColors work great OOTB with GenericLabel - yay. The War message feed at top left + notifications look awesome. 2012-01-08 20:34:15 -05:00
taoneill 5c3fca5001 Playing around with Spoutcraft notifications at the top left of the screen, so that War messages don't spam the chat anymore. 2012-01-07 17:26:27 -05:00
taoneill 1bae53670e Fixed Yaml loader and another ton of bugs related to cascading configs and the /teamcfg command. Also tweaked /zonecfg so that you can change another warzone's config while standing in another warzone (the one you were in always took over). Made printing of configs more pretty and now printing loadouts. 2012-01-07 00:20:02 -05:00
taoneill 143afa4473 Closes gh-6. Closes gh-39. Team specific settings. New YAML file format and working converter. You can delete a setting to restore config inheritance with, for example, /zonecfg delete:maxscore. New colors for /war-zone-teamcfg. Fixed a bunch of bugs introduced by mega-changes - there are probably a few more lurking around. 2012-01-06 02:01:08 -05:00
taoneill 983e90ca38 Huge (albiet still broken) changes. - Switched to Yaml config (stupid API). - Added team-specific settings. - Reworked entire configuration architechture and mechanic. War holds the War settings, the warzones defaults and the team defaults. Warzones hold their own config items which override the War default if they please (instead of being copied). Team settings add another level of defaults (unless specified, team settings are taken from the Warzone team defaults, or if absent, from the War team defaults). - Added /teamcfg command. - No more difference between default/extra loadouts. 2012-01-05 01:17:02 -05:00
taoneill bd872be244 Fixing merge conflicts with pull request from @Superyoshi. Mostly untested. Isolated Spout code behind checks for spout so War doesn't completely fall over if Spout isn't available on the server. 2011-12-27 16:29:39 -05:00
Chris Sp cd158cc9a9 Spout Integration! 2011-12-11 20:32:53 +01:00
Chris Sp d9701b910d Piston Exploit Fix, and removal of deprecated functions
- Fixed an exploit where it would be possible to move the flag with pistons, rendering it unstealable. You cannot move any important blocks with pistons now, and can't push them into protected zones. Reported here: http://forums.bukkit.org/threads/mech-fun-war-v1-6-de-gaulle-final-minecraft-tdm-ctf-1337.250/page-67#post-831054 Special thanks to TerXIII!
- Changed all calls of the deprecated getRelative() to getRelative()
2011-12-04 12:40:10 +01:00
taoneill f947f204b9 Closes gh-46. Added long missing /deleteteamflag command. Requested since forever (February 12th, actually). 2011-09-19 23:05:29 -04:00
Tim Düsterhus 8788c9c4b6 Code-Style 2011-09-10 17:49:12 +02:00
taoneill e8776d3d74 Closes gh-277. Resolving conflicts while merging Tim's realEnums. 2011-08-31 20:20:32 -04:00