Commit Graph

543 Commits

Author SHA1 Message Date
cmastudios
0955df7503 Added new classes to manage loadouts instead of the hashmap method. 2013-03-22 21:59:03 -05:00
cmastudios
ce72ba36fa Add permission based access to warzones
Adds a team default permission configuration option. Default is
war.player. It is modifiable at the zone level and the team level. In
autoassign zones where there is a mix of teams that some players have
access to and some that they don't, the player will only ever be placed
in a team he can access. You can't /join a team you don't have
permission to join.
2013-03-21 17:15:45 -05:00
taoneill
e83c53061d Update version to 1.7.4.
Updated Bukkit dependency to 1.4.7-R1.0.
2013-03-12 22:41:14 -04:00
taoneill
101bff45c5 Merge pull request #586 from cmastudios/patch-1
Fixed inability to download spout from maven. Thanks @cmastudios.
2013-03-12 19:32:11 -07:00
cmastudios
8dac3f4ea9 Fixes gh-608 - loadout "first" will be given on join and each battle after
When a player joins a warzone for the first time, they will be given a
loadout called "first" instead of the default loadout. After they have died
once, they will receive the default loadout. Players will also be assigned
the "first" loadout every battle if they are on the default loadout when
the battle ends.

I do not know how servers will deal with players who might constantly leave
and rejoin the zone in order to get the loadout back. This could be fixed
with a war change if it becomes necessary (maybe remember the player until
the battle ends). But, as always, if a server does not want to have a
"first" loadout in a warzone, they do not have to create one.
2013-03-07 18:13:39 -06:00
cmastudios
6b35645150 Prevent players from smuggling items into warzones with ender chests.
This is mainly for servers such as the Warhub, where most players can make
their own warzones. Inexperienced zone makers may place ender chests in
zones which makes their zone susceptible to smuggling items.

This may also apply for zones which would like to use ender chests for
aesthetics.

Hopefully this change shouldn't be a problem. I cannot think of any way
that an ender chest would be used inside of a warzone.
2013-03-07 17:17:06 -06: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
cmastudios
a3f73b5fe7 Fixes gh-594 - blockheads:off now results in a colored helmet 2013-02-09 12:47:11 -06:00
cmastudios
9ca2ed1f46 Fixed anvil names not being saved to loadout.
I also fixed "lore" too, but I do not know what it is.
2013-01-29 22:21:41 -06:00
cmastudios
c3d7b74109 Fixed colored armor not working at all in loadouts 2013-01-25 19:17:20 -06:00
cmastudios
c87799c03d Fixed inability to download spout from maven
Spout changed the format of their repository again. @tommytony probably didn't notice because it was cached in his local maven repositoy.
2013-01-25 17:29:29 -06:00
taoneill
bff034a299 Fixed rotating warhub at restart after /warcfg.
Stops the warhub from rotating upon restart after a call to /warcfg -
sorry for the mess.  Still have to convert config files and fix
commands.
2013-01-10 22:29:26 -05: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
381047f915 Finally releasing v1.7.3.
No real improvement. Just targeting 1.4.5-R0.2 now instead of
1.2.5-R4.0. BlockFace compatibility with 1.4.5-R0.3 will come later.
2012-12-08 15:07:24 -05:00
taoneill
666f604133 Removed console warning. 2012-09-04 23:20:50 -04:00
taoneill
d71adaa8ab Stopgag patch: support block IDs from 128 to 255
Got my head out of my butt and figured how I was casting bytes to ints
all wrong. War map format can support block ids up to 255 now with this
ugly patch. This is just to tide people over until a format switch to
something that will supports custom blocks and items.
2012-09-04 23:16:47 -04:00
taoneill
39a8becdfe Now handling negative block types
Closes gh-530. Weirdly, it seems that some new blocks (e.g. emerald
block) get saved with negative block type ids. For the time being, the
absolute value of the negative type id is used instead. The console spam
should be lessened as well - leading to less crashes. Still gotta find
the reason for the weird block ids, though.
2012-08-14 19:29:12 -04:00
taoneill
00af397929 Merge pull request #531 from MegaMinerJon/patch-1
Fix for (some of) the map reset crashes. Thanks @MegaMinerJon.
2012-08-13 19:04:54 -07:00
MegaMinerJon
f14d21a35f Update war/src/main/java/com/tommytony/war/mapper/ZoneVolumeMapper.java 2012-08-09 11:29:43 -07:00
taoneill
cd47e28e9f Removed kick prevention when flying in warzones.
Closes gh-526. Restoring a user's inventory when geting kicked. This
should technically solve an inventory reset problem. I've always found
the kick-prevention pretty hacky, anyway. Hopefully, the accidental
flying in warzones caused by War's teleporting people around has been
fixed upstream by the Bukkit folks since back in the day when this was
an issue.
2012-07-22 13:28:46 -04:00
taoneill
e6d2bd0950 This sword feels wodden
I just don't see these mistakes anymore after seeing them for 1000s of
times, but they are so obvious! Thanks @revo96.
2012-07-22 13:16:06 -04:00
taoneill
411021fc35 Smoother spawn re-entry protection
Closes gh-503. Now letting players just walk through their own spawn
really fast (instead of just getting them stuck blindly), and being a
bit smarter about where I teleport them (i.e. mostly not in walls
anymore). Much less brutal than in v1.7.2.
2012-06-25 17:41:13 -04:00
taoneill
120af8e817 Updated version numbers to 1.7.3-PREVIEW 2012-06-25 14:55:14 -04:00
taoneill
5aaf25c1c7 Removed the game-end thread safety
The inventory reset bug was caused by a concurrency issue, but all this
sychronization added some now unnecessary weight. Hopefully this should
help with the lock ups that have been happenning with v1.7.2.
2012-06-25 13:50:14 -04:00
taoneill
ff5318c8f6 War v1.7.2 release
Removed PREVIEW snapshot tag.
2012-06-23 17:27:47 -04:00
taoneill
41ecb512ed Unsafe/illegal enchantments are now supported
Closes gh-461. Closes gh-429. Items enchanted with Time the Enchanter to
high levels now get managed and persisted by War properly.
2012-06-23 17:08:45 -04:00
taoneill
bdc8b4057c Fixed broken zonemaker command permissions.
Closes gh-501. Build 77 broke all zonemaker command while allowing
public access to /zonecfg -p. Sorry!
2012-06-23 10:43:49 -04:00
taoneill
b6d1ea2c90 Highest priority for death event handler
Just to see if this can help @shankomaster's problem with missing
loadouts upon respawn.
2012-06-23 02:20:59 -04:00
taoneill
6304b39fc8 Everyone can /warcfg -p, /zonecfg -p, /teamcfg -p
Closes gh-499. Now all players have read access to the game rules and
settings. Awesome!
2012-06-23 02:12:52 -04:00
taoneill
afa82ce13f Updated plugin.yml documentation.
Prettified the /warcfg, /zonecfg, /teamcfg and other usage outputs.
Removed duplication by using command aliases. Grouped War, warzone and
team settings together for more clarity. /setteam and /setteamflag now
have pretty colors.
2012-06-23 01:32:51 -04:00
taoneill
1b1c74ed26 Lobby and warhub clear a bit more air by default
Also tweaked how gates make space for the players to navigate around the
structure.
2012-06-22 23:05:06 -04:00
taoneill
b2d0a5c355 Accidentally exiting a warzone != flag/cake cap
Closes gh-497. Before, getting warpped or dropping out of a warzone
could cause you to auto-cap the flag or the cake. Bad. Players now
simply drop their payload, get respawned and the structures get reset.
Bomb carriers are forced to drop their bomb as well.
2012-06-22 20:43:49 -04:00
taoneill
06d6ae9bdb Check minplayers/teams only upon respawn.
Closes gh-496. New can't-re-enter-spawn protection was conflicting with
the minplayers/minteams check that used to bring back everyone to spawn
as soon as the limit was hit. From now on, you will only be stopped from
exiting the spawn after your next death. This is how it probably should
have been implemented from the start - much less brutal when a player
leaves the match suddenly. :)
2012-06-22 19:53:53 -04:00
taoneill
9139f9df45 Merge pull request #494 from cmastudios/patch-3
Allow players in the same faction to PVP. Thanks @cmastudios!
2012-06-21 20:06:50 -07:00
Connor
6056ff0c87 Allow players in factions to PVP 2012-06-21 19:55:21 -05:00
taoneill
14d4efea9d Cake thief can now come back to spawn.
New can't-re-enter-spawn bump was preventing them from scoring. Oops!
2012-06-21 19:59:30 -04:00
taoneill
53aa9cda52 Nicer messages with words unbroken at end-of-line
Closes gh-493. Looks much better. Just had to drop an old ChatFixUtil
from the olden days before Bukkit at all that fancy end-of-word line
breaks built in. Should have done this much earlier. Thanks for
reminding me to remove this @cmastudios.
2012-06-21 19:51:14 -04:00
taoneill
c6e98769e5 Let flag carrier into the spawn when we should
Broke this two commits ago.
2012-06-20 23:58:47 -04:00
taoneill
4835d0f37d Startup warning when War files take over 100MB
Temp files tend to accumulate rapidly if some zonemakers are
particularly trigger happy with /savezone. Added a warning. Should
probably add a real limit on number of oldversions that can be saved.
2012-06-20 22:56:08 -04:00
taoneill
7a90119c97 Spawn protection is back. Can't re-enter spawn.
- Players are now technically invincible while in spawn. Closes gh-492.
- More air cleared around warhub tp and moved the warhub sign by one
block.
2012-06-20 21:32:44 -04:00
taoneill
b504b5b014 New playerloadoutasdefault:true/false setting
Closes gh-491. Players can now safely bring their own inventories in the
warzone. They still get it back after leaving, but now thei own items
can be used to replace the default loadout. You *need* to have a loadout
named "default" available in your warzone.
2012-06-19 23:00:37 -04:00
taoneill
520bac05da Less complicated file numbering system
Closes gh-486. There will still be duplicate numbers when old versions
are deleted, as the version only takes into account the number of old
versions in the /temp/oldversion/warzone-x/ folder.
2012-06-19 00:37:18 -04:00
taoneill
0557d94911 Logging code back in 2012-06-19 00:19:02 -04:00
taoneill
a1634b8b94 Merge pull request #483 from cmastudios/patch-2
POM update. Couldn't compile with old one (spout changed their repo addr...
2012-06-18 21:17:56 -07:00
taoneill
2dc7d4aa75 Test build without custom War logger
For @shankomaster who is having trouble with crashes with the newest War
builds. This build removes the new War-specific file logger.
2012-06-18 23:42:14 -04: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
Connor
623af5d16a POM update. Couldn't compile with old one (spout changed their repo address) 2012-06-18 18:36:16 -05:00
taoneill
9f657c4a59 Test build with no game-end synchronization
For @shankomaster. This has the newer features but no endgame lock
around player deaths and flag/cake/bomb thief movements.

I'm not sure I really want to remove this, since a lock shouldn't cost
much usually and I thought through the threadsafe logic so it would work
properly.
2012-06-18 19:24:01 -04:00
taoneill
6c33314288 Warhub and lobby materials settable by commands
First, make sure you have a block (or air) in you hand.  Then use
/warcfg warhubmaterial:<floor/outline/gate/light> or /zonecfg
lobbymaterial:<floor/outline/gate/light>.

This is from a previous commit but: when you have AIR in your hand and
you change the floor or the floor's outline, that tells War to leave the
user-build or natural original floor in place.

New and cool: setting down the warhub now only clears the blocks needed
for players to find the gates, letting you build a nice warhub that
won't get wiped. Lobbies now also clear only a small path for players
instead of the whole volume.
2012-06-18 13:30:02 -04:00
taoneill
e80bdc9e2a Updated link to Jenkins in readme. 2012-06-18 02:53:28 -03:00