ba5d7a3981
Working on permissions handling
Olof Larsson
2011-10-08 18:44:47 +02:00
77a7b2d85c
New Spout feature, for Spoutcraft client users only: current territory info will now be permanently shown at top of screen, instead of being echoed out to chat as you move around New conf.json setting "spoutTerritoryDisplayPosition" to set the screen position at which the current territory is shown. 0 = disabled, 1 = top left, 2 = top center, 3 (default) = top right. Moved all integration code to separate package, ofr better code organization. Also moved EssentialsChat integration code out to separate file in there, allowing us to safely remove our copy IEssentialsChatListener.java file (which is otherwise needed to prevent a nasty NoClassDefFoundError).
Brettflan
2011-10-05 05:13:54 -05:00
d64ed374f1
missed from last commit
Brettflan
2011-10-05 02:14:07 -05:00
149257f154
When a player is kicked from their faction by the autoLeaveAfterDaysOfInactivity routine, the rest of their stored data is now dropped as well When a player is banned from the server, they will now be kicked from their faction and have their stored data removed (only works on CB 1240 or newer)
Brettflan
2011-10-05 00:33:15 -05:00
7c249e1884
Added 3 new hookable functions to main Factions class, for use by other plugins: boolean isPlayerAllowedToBuildHere(Player player, Location location) boolean isPlayerAllowedToInteractWith(Player player, Block block) boolean isPlayerAllowedToUseThisHere(Player player, Location location, Material material) Also update Bukkit lib for new RB.
Brettflan
2011-10-04 22:46:11 -05:00
58d97076b8
New conf.json setting "territoryDenyEndermanBlocksWhenOffline" (default true). As might be expected, this will prevent Enderman from removing or placing blocks in the territory of a faction which has no members online. "territoryDenyEndermanBlocks" of course now only applies when a faction has members online.
Brettflan
2011-10-01 06:16:53 -05:00
ce0559cda9
Autoclaim mode is now disabled when a player is removed from a faction (whether leaving, being kicked, or whatever) Also the new permission I missed in the last commit
Brettflan
2011-10-01 06:10:49 -05:00
feac58c6d6
Some tweaking of the faction bank code... The new help page with bank related commands will now only be shown if banks are enabled and the Economy is enabled and hooked in. Shortened a couple of command descriptions to fit on one line. Made Deposit, Pay, and Withdraw commands additionally log to the server console/log. When bank is given to person disbanding a faction, it now lets them know and logs it to the server log. Added commands to commandDisable list in plugin.yml, along with "permanent" command which I'd missed adding before Added new permission node factions.viewAnyFactionBalance (granted by default if using superperms), which is required to view the bank balance of other factions
Brettflan
2011-10-01 05:59:09 -05:00
4cab42ec6e
Merge branch 'banks' of git://github.com/eXeC64/Factions
Brettflan
2011-10-01 03:45:28 -05:00
dc9042674c
Merge branch 'master' of github.com:MassiveCraft/Factions
Brettflan
2011-10-01 03:12:13 -05:00
3d62676168
Merge branch 'alliancechat' of git://github.com/eXeC64/Factions
Brettflan
2011-09-30 20:40:34 -05:00
9e73681125
Merge branch 'master' of github.com:MassiveCraft/Factions
Brettflan
2011-09-30 20:30:54 -05:00
9c1cd8c85a
Added senderIsConsole boolean to FBaseCommand to simplify checking whether sender is console or player Fix for /f disband indicating a random player if command came from console Fix for factions being able to potentially set relations with safe zone or war zone (though it didn't do anything, of course)
Brettflan
2011-09-30 20:17:47 -05:00
3627996dc6
Updated SpoutAPI lib, added forgotten setPermanent permission to plugin.yml, added endermen and cave spiders and silverfish to no-spawn list for safe zones
Brettflan
2011-09-30 19:44:53 -05:00
5eaf9c6835
Fixed autoclaim
Harry Jeffery
2011-09-26 22:11:07 +01:00
d718e8bddc
Fixed error when no parameter given to f balance.
Harry Jeffery
2011-09-26 17:18:37 +01:00
9f8f125a92
f balance now accepts an optional <faction name> parameter. f who now shows balance of the faction.
Harry Jeffery
2011-09-26 16:44:20 +01:00
b1ee58a2b6
Fixed alliance chat still being purple.
Harry Jeffery
2011-09-24 21:22:23 +01:00
f4d56d4796
Alliance chat is now white, with ally-colour names.
Harry Jeffery
2011-09-24 20:30:15 +01:00
ea8310c695
Fixed bug where you could not create factions if they cost money.
Harry Jeffery
2011-09-24 18:08:18 +01:00
46abcadf93
Added alliance only chat mode.
Harry Jeffery
2011-09-24 11:04:49 +01:00
2b23f93fba
Added faction banks.
Harry Jeffery
2011-09-24 02:22:53 +01:00
28f86548c8
Moderators can now affect themselves.
Harry Jeffery
2011-09-24 02:21:24 +01:00
60abb61cb9
Fix for "territoryEnemyProtectMaterials" and "territoryAllyProtectMaterials" not working correctly, and wrong protection message being sent to neutral players. Re-jiggered the related code a bit which handles such things based on enemy/ally/member/neutral status.
Brettflan
2011-09-22 16:12:35 -05:00
28e881d905
Players now lose power over time while they are offline. New conf.json setting "powerOfflineLossPerDay" (default 1.0) is how much power they lose; note that this power loss actually occurs frequently in very tiny amounts as time passes, not just once per day. New conf.json setting "powerOfflineLossLimit" (default 0.0) which will stop offline power loss once a player's power drops to the specified amount. As an example, the default 1.0 power loss per day offline is roughly 0.0417 power loss per hour, 0.00695 per minute, and so forth.
Brettflan
2011-09-22 06:33:34 -05:00
fa21358a23
When players enable/disable admin bypass mode (/f bypass), it is now logged to the server console/log.
Brettflan
2011-09-22 06:23:25 -05:00
34e4afee2c
Four new conf.json settings to prevent Endermen from removing or placing blocks. "territoryDenyEndermanBlocks" (default true) for claimed territory. "safeZoneDenyEndermanBlocks" (default true) for Safe Zones. "warZoneDenyEndermanBlocks" (default true) for War Zones. "wildernessDenyEndermanBlocks" (default false) for unclaimed wilderness areas.
Brettflan
2011-09-22 06:22:01 -05:00
492d983464
Support for iConomy 6 and other economy plugins added through Register support (with new conf.json setting "econRegisterEnabled", defaults to false); you will need to have the Register plugin on your server
Brettflan
2011-09-22 04:22:24 -05:00
2aa51a4781
Added some quick and dirty fix notes for people who get a specific chat formatting error
Brettflan
2011-09-16 01:50:25 -05:00
538b387f2f
Fix for players being able to hurt members of their own faction while in their own land if the "enablePVPAgainstFactionlessInAttackersLand" option is enabled
Brettflan
2011-09-16 01:45:23 -05:00
443e083f23
Bugfix release 1.4.9: material protection (interaction with doors, chests, etc.) was being incorrectly triggered in wilderness, war zones, and safe zones
Brettflan
2011-09-15 09:12:24 -05:00
43fdc8ae14
New command to set a faction as permanent: /f permanent <faction tag> (requires new admin-level permission "factions.setPermanent"). Permanent factions will not be deleted if they have no members, and faction admins of such factions are allowed to leave without a replacement available. Faction admins are also unable to disband their own faction if it is Permanent; only those with the admin-level "factions.disband" permission can disband such a faction while it is set as Permanent.
Brettflan
2011-09-13 13:14:09 -05:00
249846d6ae
New conf.json setting "newPlayerStartingFactionID" which can be used to have new players start out in a specific faction
Brettflan
2011-09-12 22:46:20 -05:00
877cfe914d
Added note when player tries to use faction chat when it's disabled, moved disband command in the Help listing out of the server-admin-only section since it can now be used by faction admins on their own factions
Brettflan
2011-09-12 22:36:59 -05:00
632e2b2d1c
Faction admins can now disband their own faction using /f disband; note that use of /f disband with another faction specified (/f disband <faction tag>) still requires the factions.disband permission, but the permission is not required for faction admins disbanding their own faction
Brettflan
2011-09-12 22:23:44 -05:00
a5a0125195
Add an option to disable faction only chat
Elias Woods
2011-09-10 00:26:15 -04:00
120039b07f
minor cleanup and tweaks to WorldGuard code added/updated libs
Brettflan
2011-09-08 06:24:55 -05:00
b5a1151178
fix for arrow damage not being properly detected and prevented (when needed) which was broken by Bukkit's recent deprecation of EntityDamageByProjectileEvent
Brettflan
2011-09-08 03:20:55 -05:00
c89db2c4d6
Fix for allies bypassing ownership if Ally options allowed them to build/interact/use in allied territory Also consolidated some Conf lookups into new functions for Relations, to simplify and de-uglify the code a bit
Brettflan
2011-09-06 16:35:43 -05:00
61e7667010
Spout always shows displaynames even with factionless players
Spathi
2011-09-06 03:31:15 +01:00
445d10afb7
Optional disabling of WG checks
Spathi
2011-08-29 04:59:49 +01:00
8be43164d2
Worldguard region checking
Spathi
2011-08-29 04:50:45 +01:00
a7cce7e428
Changed checkForRegions to be checkForRegionsInChunk
Andy "Spathi" F
2011-08-29 15:06:34 +02:00
5ea055a260
WorldGuard regions will block factions claiming them
Andy "Spathi" F
2011-08-29 14:54:04 +02:00
55c9067e34
Factionless players now have nothing extra shown over their heads, instead of "Factionless" Also added AuthMe to softdepend list to have it load first
Brettflan
2011-08-28 18:24:05 -05:00
c512f80866
Release 1.4.7: bugfix for exception triggered by blank cape URL
Brettflan
2011-08-23 21:49:49 -05:00
9fd79d5588
more hookable functions for use by other plugins, these for getting a list of all factions and for listing players in a specified faction
Brettflan
2011-08-23 17:34:40 -05:00
82db1624c9
Added new "Ally" related protection options to complement the "Enemy" ones (added thanks to donation from BeTrayed)
Brettflan
2011-08-23 17:12:17 -05:00
83d1e52be3
point default cape image URLs to GitHub
Brettflan
2011-08-23 12:49:32 -05:00
56e63ec8ee
cape images, for Spout capes
Brettflan
2011-08-23 12:43:02 -05:00
ef465dfcf4
New conf.json setting "worldsNoWildernessProtection", for worlds in which you don't want wilderness protections to apply
Brettflan
2011-08-23 00:37:31 -05:00
72bf1492c3
Merge branch 'master' of github.com:MassiveCraft/Factions
Brettflan
2011-08-22 23:49:08 -05:00
e970c02808
Capes were not applying properly to players when added at login (at least as seen by existing connected clients), so a slight delay has been added there to fix it
Brettflan
2011-08-22 23:48:18 -05:00
e573895d8a
Added owner list display for faction members when moving between to/from claimed chunks which have owners set (code by Zidkon)
Brettflan
2011-08-22 23:31:37 -05:00
55a1003ebb
Update some lib files
Brettflan
2011-08-22 22:10:36 -05:00
409f98e1e6
Changed ownership mapping from HashMap to ConcurrentHashMap to hopefully take care of reported ConcurrentModificicationException error; bugfix for faction admin not being able to bypass ownership if "ownedAreaModeratorsBypass" was set
Brettflan
2011-08-22 15:13:12 -05:00
08f314fef0
Small typo in Readme (/f help 1 was there 2 times)
greatman
2011-08-21 03:59:31 -03:00
697e0cf466
Added Spout features, with Spout client required for all: relation-colored faction tags over players' heads via option "spoutFactionTagsOverNames", player's faction title over their head via option "spoutFactionTitlesOverNames", and relation-colored capes shown on faction admins and/or moderators via "spoutFactionAdminCapes" and "spoutFactionModeratorCapes" (all new settings default to true) When a faction is disbanded or has peaceful status added or removed, all online players are now notified Added further debug output if an UnknownFormatConversionException is triggered during relational chat messages, to help track down cause
Brettflan
2011-08-19 20:36:23 -05:00
62f80a607b
minor cleanup
Brettflan
2011-08-19 19:41:28 -05:00
b2ad4b43e4
Allow PVP vs. Factionless in attacker's faction territory
sp1ky
2011-08-12 16:08:11 +01:00
4e7aa893a3
Move economy plugin setup process over to the Econ class
Brettflan
2011-08-08 04:51:06 -05:00
b45224fff0
Added handling for potential null strings in "territoryNeutralDenyCommands" and "territoryEnemyDenyCommands"
Brettflan
2011-08-05 14:06:35 -05:00
f29bba29d5
Added to default "territoryEnemyDenyCommands": /home, /sethome, and /spawn
Brettflan
2011-08-05 03:51:35 -05:00
68e1313776
New "peaceful" status for factions which can only be set by server admins/moderators. Members of peaceful factions cannot deal or receive PvP damage (unless in a war zone which has friendly fire enabled), cannot claim land from another faction and likewise can't have their land claimed, and cannot be considered as ally or enemy of any other faction. Faction admins and moderators of peaceful factions can enable/disable all explosions inside their faction's territory at will. The main purpose of this is to provide a way for more peaceful players who don't want to take part in faction wars (or just want to take a break from them) to still have fun on the server. It is also meant to allow groups of players to make protected buildings, monuments, grand constructions, and so forth without having to worry about another faction destroying them.
Brettflan
2011-08-05 03:50:47 -05:00
4ad9829fd4
Removing /f worldnoclaim and /f worldnopowerloss commands; they're redundant now that you can use /f config worldsnoclaim [world name] and /f config worldsnopowerloss [world name] respectively to set those options. Also removing factions.worldOptions permission node since it was only used for those commands.
Brettflan
2011-08-04 02:35:48 -05:00
523d3216c5
/f config [setting] [value] command now accepts setting names which are inside quotation marks, to prevent confusion since they're also in quotation marks in conf.json
Brettflan
2011-08-04 02:27:58 -05:00
e6ac1c0f98
Economy integration now works for EssentialsEco as well
Brettflan
2011-08-04 02:25:12 -05:00
100a1ffb1e
improved command prevention from last commit to also monitor slashless Faction commands, for full coverage
Brettflan
2011-08-04 00:34:52 -05:00
699c22f655
New conf.json settings "territoryNeutralDenyCommands" and "territoryEnemyDenyCommands", which can have lists of commands added to them that will be denied while in the territory of a neutral or enemy faction. It is recommended you use /f config to add/remove such commands, for example /f config territoryEnemyDenyCommands spawn would prevent players from using /spawn in enemy territory. You can add the slash to the command string or not, it will work either way. If the used command starts with one of your denied commands, it will be prevented. For example, if you deny "time", both "/time night" and "/time day" will be prevented. However, if you deny "time n", /time night will be prevented but /time day won't. (thanks for some code contribution from Cal27)
Brettflan
2011-08-04 00:07:38 -05:00
7d3cdfdc20
removed need for "is it initialized" checks done on claimOwnership by simply making sure it's initialized with the class instance
Brettflan
2011-08-03 23:53:10 -05:00
2900bf372f
changed findFactions() method to try matching faction tags before trying to match player names, instead of the other way around
Brettflan
2011-08-03 21:49:11 -05:00
f9d39271c0
Modified locutus' Pain feature so that all conf.json settings related to it default to false, so that the damage amount can be specified through "actionDeniedPainAmount" in conf.json, and so that DenyBuild doesn't override PainBuild but instead both will be used if both are enabled
Brettflan
2011-08-03 21:47:49 -05:00
a38267fe74
Error handling for user entering non-integer value for radius of safeclaim and warclaim, along with usage info
Brettflan
2011-08-03 15:38:54 -05:00
92448ca4d2
New conf.json setting "worldsIgnorePvP" as a list of worlds which you don't want Factions to pay any attention to PvP in. No new command has been added to set this, since we now have the /f config command. So, to add/remove worlds, simply use /f config worldsIgnorePvP [YourWorldHere].
Brettflan
2011-08-01 20:22:16 -05:00
f38651ca94
New conf.json settings "showNeutralFactionsOnMap" and "showEnemyFactionsOnMap" (both default to true) which, if disabled, will hide neutral and enemy factions on the faction map. However, if a player is standing inside territory claimed by a neutral or enemy faction, all of that faction's nearby claims will be shown on the faction map regardless.
Brettflan
2011-08-01 19:59:48 -05:00
ad2bb5f4d0
"disablePVPForFactionlessPlayers" is now overridden if "warZoneFriendlyFire" is enabled and the PvP is occurring inside a War Zone
Brettflan
2011-08-01 18:28:34 -05:00
2154b89005
Added basic support for iConomy, where most Factions commands can be made to cost (or give) money. For claiming land, there are some extra features. Each additional land claimed by default costs more than the last, with the multiplier being configurable. For example, the first claim might cost $30, the 2nd $45, the third $60, and so forth. When land is claimed from a weakened faction, there is a configurable bonus amount of money deducted from the cost of claiming the land, as an incentive; this number can be changed to a negative value to instead make it cost more to claim such land. When land is unclaimed, a configurable percentage of the cost of claiming the land can be refunded (defaults to 70% of the cost). The total value of a faction's claimed land is now shown in the info given by /f who [faction tag], along with the depreciated (refund) value.
Brettflan
2011-08-01 18:05:01 -05:00
c0676c3548
Fix for error that could occur when unclaiming land
Brettflan
2011-08-01 17:54:05 -05:00
508f953ce9
Faction admins can now mark already claimed areas as owned by specific faction members. Ownership can include multiple members. New command /f owner *[player name], to set/remove ownership. This command is only available to the faction admin and optionally the faction moderators. If no player name is specified, it will either set ownership to the player running the command (if no owner is currently set) or completely clear ownership of the territory. New command /f ownerlist, to view a list of owners for the current area. Only works inside your own faction's territory. New conf.json options "ownedAreasEnabled", "ownedAreasModeratorsCanSet", "ownedAreaModeratorsBypass", "ownedAreaDenyBuild", "ownedAreaProtectMaterials", and "ownedAreaDenyUseage" (all defaulting to true) to determine whether faction moderators can set or bypass ownership (faction admin always can), and what sort of protection these owned areas have against normal members of the faction (members other than the owner(s), faction admin, and probably faction moderators). New conf.json option "ownedAreasLimitPerFaction" to limit how many owned areas can be set. New permission node "factions.ownershipBypass" which allows a player to bypass ownership protection, but only within the person's own faction. various little tweaks and improvements to other code moderate speed boost to FLocation code made commandDisable permissions work for any command alias of a command, instead of just the first one
Brettflan
2011-07-30 20:17:00 -05:00
63ab41f933
New conf.json option "safeZonePreventAllDamageToPlayers" (default false) which will prevent all damage to players while they're in a Safe Zone; note that attack damage from other players and monsters is still prevented regardless
Brettflan
2011-07-29 06:39:20 -05:00
e3cb829e6b
If "autoLeaveAfterDaysOfInactivity" is set to 0.0 or a negative number, it's now effectively disabled Renamed "disablePVPBetweenNeutralFaction" to "disablePVPBetweenNeutralFactions" because the grammar nazi in me calls for it a couple of minor optimizations finally, include gson.jar in the lib folder
Brettflan
2011-07-29 05:12:14 -05:00
aaa56ec40a
New setting in conf.json: "disablePVPBetweenNeutralFaction": false whether PvP damage will be disabled between neutral faction
Amrac
2011-07-28 16:04:11 +02:00