Commit Graph

637 Commits

Author SHA1 Message Date
cmastudios
33add7df0d Option to drop inventory on kill
Closes #711, closes #13, closes #11.

Items only drop on kill to prevent players from farming items. Warzone
makers must design their warzone items to fit with this feature if they
choose to enable it. E.g. a warzone might include items that must be
found and then can be stolen on kill.

Thanks to @dylanhansch for testing.
2014-06-12 22:20:20 -05:00
cmastudios
9281ad5c4d Don't set a skull owner if empty
Closes #781

Another bug due to Mojang's new stupid username changing "feature".
Setting the owner requires a web lookup or cache hit for the name in
order to target the correct player. It apparently doesn't like looking
up a blank name.
2014-06-12 21:09:58 -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
bdc961c7e1 Prevent trees from extending out of warzone
Closes #799
2014-06-12 19:12:42 -05:00
cmastudios
382261eb83 Killstreak effects
Closes #776
Customizable effects on killstreak
2014-06-07 12:38:51 -05:00
cmastudios
d4976ecbb4 #790 Add top kills scoreboard
This new scoreboard displays each person's total amount of kills for the
battle in the warzone.
2014-06-07 12:23:57 -05:00
taoneill
5e93ab6bc4 Merge branch 'hotfix/1.8.1' into develop
Conflicts:
	war/pom.xml
	war/src/main/resources/plugin.yml
2014-05-04 17:39:31 -04:00
cmastudios
463d51d41b Print error if the world was deleted
Warzones created in worlds that are then deleted can cause a stack
trace to dump in the error log. This replaces the stack trace with
an informative error message.

Closes #774
2014-04-28 19:03:05 -05:00
cmastudios
aeda124c1c Max health can be changed somehow
Give the player the maximum amount of health on respawn.

Closes #766
2014-04-23 22:08:49 -05:00
cmastudios
9bd9f76b9e Some skulls don't have owners
Bukkit 1.7.9 functionality change now throws an exception rather
than returning null.

Closes #768
2014-04-23 21:59:42 -05:00
cmastudios
14054454af Prevent emptying buckets on important blocks
Closes #775
2014-04-23 21:45:23 -05:00
cmastudios
181fb64c50 break Statement referenced the wrong loop
At least I think. Any comments @taoneill ?

Closes #773
2014-04-20 14:56:45 -05:00
cmastudios
7ed33e8965 Don't send blank messages to the client
Closes #742
2014-04-10 18:58:21 -05:00
cmastudios
a529e0c1fe Reset player fall damage when respawned
Potentially fixes #757.
2014-04-10 18:40:58 -05:00
cmastudios
e229f9fc4e Correct spelling and grammar
* Fix unescaped quotes causing resourcebundle message breakage.
* Fix verb tense of 'loses'
* Fix spelling of 'monument'

Closes #761
2014-03-21 19:39:44 -05:00
Master-chan
367f5d1a73 Fixes NPE when deadly adjectives is empty
For example with russian translation
2014-03-04 23:54:08 -06:00
cmastudios
1ad05dd5f3 Bump version to 1.8.1 2014-03-04 23:49:41 -06:00
cmastudios
0a80198084 Economy support!
Supports any economy supported by Vault. Requires Vault plugin
installed on server.

Closes #98, ping #132, #294, #12
2014-02-26 20:00:29 -06:00
cmastudios
09e0919042 Exemption by-permission for command warm-up
Permission node: war.warmupexempt
2014-02-26 19:07:00 -06:00
cmastudios
8bf6d6047d Literally none of those new features worked
I better test before commit next time :)
2014-02-26 19:02:32 -06:00
cmastudios
f00ed85c4b Add economy reward for winning team 2014-02-26 18:51:39 -06:00
cmastudios
43bbb24dd5 Initial Vault support for economy
I personally dislike forcing our users to use a separate plugin
just to abstract different economy plugins, but sadly we live in a
hell world where there are 20 competing economy plugins and
counting so I don't want to deal with that.
2014-02-26 17:07:44 -06:00
cmastudios
64ae4c617f Teleport 'warmup' time - delay before teleport
Closes #507.

War now includes a configuration option "TPWARMUP" to add delays
before teleporting players to a war. This can be used on full-world
PvP servers to prevent players from running away from a fight.

The configuration option is specified in ticks - 20/sec.

The delay is activated for /zone and /warhub.

@taoneill @cmastudios documentate for 1.9 release.
2014-02-22 19:46:53 -06:00
cmastudios
72a2f08d70 Config to apply potions on spawn.
Closes #615.

The new APPLYPOTION configuration option allows warzone makers to
give potion effects ot players every time they spawn.

Use case: Resistance 5 for a few seconds on player spawn to prevent
them from being "spawn camped" - killed when they step out by other
players waiting nearby.

Format of APPLYPOTION: effect_type:duration:amplification

 effect_type:
  For a valid list of values that can be used for this type param,
  please see http://jd.bukkit.org/rb/apidocs/org/bukkit/potion/PotionEffectType.html

 duration:
  Time in ticks (1/20 sec) that the potion will apply for.

 amplification:
  Amplifier to the potion's power.

@taoneill @cmastudios documentate how to tune this option before
 1.9 release on the wiki. Also please test use of this option in
 game (pulling a @grinning here).
2014-02-22 18:12:11 -06:00
cmastudios
4106dd887f Autojoin zone on connect
Closes #698. #733.

@taoneill please test.
2014-02-22 01:17:20 -06:00
cmastudios
1d6ffcea7e Bump version to 1.9-SNAPSHOT for development
@taoneill @grinning we need a new name for War 1.9. Maybe Bob can have his
chance again after all?

@taoneill also please update main war branch to 'develop'.
2014-02-22 01:15:42 -06:00
taoneill
6294922225 Bumped up version to 1.8. Congrats! 2014-02-01 22:21:20 -05:00
taoneill
bed0385476 Instead of small redstone torch to highlight active zones, now we have two big redstone blocks and two torches.
- Less subtle, but really gets the point accross (and doesn't have the won't-work-on-glass problem). :)
2014-02-01 21:31:19 -05:00
taoneill
0e481bb5d5 Changed all gate signs to be wall signs instead of sign posts.
- Also, now highlighting active warzones with a redstone torch on its warhub gate
2014-02-01 17:08:46 -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
cmastudios
5146a7c9c8 Send "English" instead of an empty string 2014-01-19 15:09:41 -06:00
cmastudios
20223d1c12 Fix lobby width issue with auto assign
Fixed by moving calculateLobbyWidth logic into constructors.

@taoneill this is to fix the issue zac encountered on war hub.
2014-01-19 14:38:25 -06:00
taoneill
4fde95ee7b Merge branch 'master' of https://github.com/taoneill/war 2014-01-12 22:16:50 -05:00
taoneill
7ee243e20d Prevent players from leaving spawn while zone is resetting.
- Closes #738
2014-01-12 22:16:36 -05:00
Connor Monahan
82267764e1 OMG I COMMITTED SPACES 2014-01-12 18:31:31 -06:00
taoneill
0c9ed4b238 Merge branch 'master' of https://github.com/taoneill/war 2014-01-12 18:32:34 -05:00
taoneill
95ee0c1972 Closes #739. Respawning doesn't wipe your chat anymore.
- We just take care of wiping top inventory slots in CRAFTING-type inventory views (container inventories weren't causing the same issue)
- End-of-game teleport and state restoration shouldn't wipe your chat anymore either
2014-01-12 18:32:19 -05:00
Connor Monahan
95cc2c7a34 Update team spawns for TXT files. Closes #717 2014-01-11 22:13:11 -06:00
Connor Monahan
2ef0f3e324 Remove java 1.7 locale methods 2014-01-11 21:09:17 -06:00
Connor Monahan
076e8ce9bd Update locales KO PL
PL has been completed, KO corrections.
There needed to be a trailing newline on the warhub sign localization or the plugin crashed when loading a lobby.
2014-01-07 20:57:14 -06:00
Connor Monahan
ce1b60b85f Make country-specific localizations work properly
Language tags such as pt_BR and ko_KR now work correctly
2014-01-07 20:51:52 -06:00
Connor Monahan
a92b2ea4ae Magic wool block appears when hat clicked 2014-01-07 20:18:32 -06:00
Connor Monahan
c6c93ba44f Set helmets on players instead of blocks 2014-01-07 19:49:22 -06:00
Connor Monahan
20068cbb15 Fix player list spacing issue 2014-01-07 18:37:33 -06:00
Connor Monahan
b011d3a46f New active sign, gets random warzone with players 2014-01-07 17:59:08 -06:00
Connor Monahan
bc07a60b51 Only randomly teleport to zones that are enabled 2014-01-07 17:51:49 -06:00
Connor Monahan
dc764de258 Restore maven2 compatibility
Adding metrics support via shading caused a unexpected break due to versions of shade being incompatible with older versions of maven. In theory, everyone should update to maven3 if possible. However, I would like to retain compatiblity for our older CI servers.
2014-01-04 17:40:49 -06:00
Connor Monahan
a45a833e68 Merge branch 'metrics' 2014-01-04 17:08:41 -06:00
Connor Monahan
fdc4e90635 [Lang] Add FR HU KO NO PL PT localizations
This commit adds localizations for the languages French, Korean, and Norwegian. Portuguese, Hungarian, and Polish are still a work-in-progress but they have been added. The languages German, Spanish, and Russian have been updated also.
2014-01-03 20:16:28 -06:00
Connor Monahan
0805a04cad Collect metrics statistics from servers
War now collects statistics from servers running the plugin. The statistics are minimal. The goal is so the developers of the plugin can tell what areas they need to do more work in.
In addition to the default statistics collected by PluginMetrics, War sends the number of warzones and if certain plugins that War interfaces with are enabled.
To prevent your server from sending statistical data, set "opt-out" to "true" in plugins/PluginMetrics/config.yml.
Closes #716.
2013-12-27 18:13:30 -06:00