Olof Larsson
ea7d0f8305
Adding in future load method.
2013-04-11 12:32:38 +02:00
Olof Larsson
6f897e15ff
Starting to preparation of Faction entity.
2013-04-11 12:22:35 +02:00
Olof Larsson
e45592432a
rename getOpen --> isOpen and remove old money migration code.
2013-04-11 11:44:55 +02:00
Olof Larsson
4a63d50cbb
Use PS instead of FLocation in a few places.
2013-04-11 11:11:31 +02:00
Olof Larsson
9d347715d5
Rename Board --> BoardOld
2013-04-11 07:01:30 +02:00
Olof Larsson
61b526e387
First pass at using Txt.
2013-04-10 10:32:04 +02:00
Olof Larsson
57f5372d43
Removing some deprecated stuff and fixing some ASCII art.
2013-04-10 09:40:39 +02:00
Olof Larsson
936c28d5a9
Move all in the struct package to main package.
2013-04-09 13:24:55 +02:00
Olof Larsson
a726e1c49f
Rename FPlayers --> FPlayerColl
2013-04-09 13:22:23 +02:00
Olof Larsson
1b0c0a4b72
Rename Conf --> ConfServer.
2013-04-09 13:15:25 +02:00
Olof Larsson
c8870d10d4
MCorify the MPlugin class Factions slightly.
2013-04-09 13:12:13 +02:00
Olof Larsson
c88847bd3e
Rename P --> Factions.
2013-04-09 13:00:09 +02:00
Olof Larsson
8a4b26cbd9
Rename Factions --> FactionColl
2013-04-09 12:58:39 +02:00
Brettflan
3e0a68fd6e
Performance overhaul sponsored by rockxz3, using his large server's data for reference to help with testing and tuning. Timing numbers below are based on this data set on my test server.
...
* PlayerMoveEvent performance boost (from 0.047ms to 0.015ms in testing, ~313% as fast): now more thrifty in determining whether player has actually moved between chunks before doing anything else; important since this event triggers extremely quickly
* PlayerInteractEvent performance boost (from 0.068ms to 0.034ms in testing, ~200% as fast): now ignores left-clicks for interaction checks, since in CraftBukkit 1.4 left-clicks no longer open doors or activate buttons/levers/etc.; not as important as above, but still triggers quite often as people are digging or interacting with blocks
* "/f list" command performance boost (from 234ms to 30ms in testing, ~780% as fast): code was getting information for all factions, narrowed it down to only getting info for displayed page range
* "/f show" command performance boost (from 132ms to 28ms in testing, ~470% as fast): tweaked the ally & enemy listing code used
2012-11-06 09:43:27 -06:00
Olof Larsson
5988e8e5af
Simplified the perm command.
2012-05-09 06:29:52 +02:00
Olof Larsson
2c5438bf70
Some minor fixes to the previous commit.
2012-05-09 03:32:04 +02:00
Olof Larsson
ca6b185bd1
New cape system and refactored spout appearances.
2012-05-09 03:24:07 +02:00
Brettflan
c32736f3f1
fix for rare case where faction home location's world being removed or renamed (world with specified name not existing) could lead to NPE
2012-05-08 12:47:46 -05:00
Olof Larsson
06d22549e2
Added in some deprecated methods for backwards-compat.
2012-04-27 20:29:41 +02:00
Brettflan
d8a39140fc
Faction homes should no longer be lost if their target world isn't already loaded when Factions loads at server startup. This is done using a new lazy-load Location container class which only initializes the Location when it's actually needed.
2012-03-14 13:06:38 -05:00
Brettflan
4348d2c35e
Fix for storing player data in factions.json unnecessarily, and FPlayer add/remove methods are now marked as protected
2012-01-28 12:11:12 -06:00
Brettflan
9a6c15edd1
New command /f powerboost <p|f|player|faction> <name> <#>, which will apply a permanent power bonus/penalty to a specified player or faction. When applied to a player, it will affect their max power and min power. When applied to a faction, it will be applied to current and max power levels. Whether it is a bonus or a penalty depends on whether the number you specify is positive or negative.
...
New permission factions.powerboost which is required to use the above command. This permission is added to the factions.kit.mod permission kit.
example usage:
/f powerboost p Player1 1.5 (give player "Player1" a bonus of 1.5 power)
/f powerboost faction SomeFaction -6 (give faction "SomeFaction" a penalty of -6 power)
2012-01-28 11:56:51 -06:00
Olof Larsson
92bddb0f9a
Add optional essentials integration for /f home delay and cooldown (enabled by default).
2012-01-27 22:22:32 +01:00
Brettflan
1196d74140
Fix for error when deleting a faction if Vault wasn't present;
...
Fix for slashless Factions commands not working for player in faction chat or alliance chat modes
2012-01-20 11:19:34 -06:00
Brettflan
19b9bffc43
New conf.json setting "permanentFactionsDisableLeaderPromotion" (default false) which, if enabled, will circumvent the promotion routine for permanent factions so that they can exist without a faction leader, only regular members and/or officers.
2012-01-18 21:21:26 -06:00
Brettflan
bc40f3b751
Server admins can now promote or demote any member of any faction to/from faction leader or officer using the existing /f leader and /f officer commands, with two new permissions added to allow that. A third permission is also added to allow server admins or moderators to join any faction without the need of /f bypass mode.
...
Also, a couple more minor bugfixes are included for /f home payment giving the wrong message, player/faction descriptions being wrong for console messages, and potential NPE in new faction leader promotion routine if faction was permanent with no current leader.
New permissions:
factions.leader.any - allows use of /f leader on any player in any faction
factions officer.any - allows use of /f officer on any player in any faction
factions.join.any - allows player to join any faction, bypassing invitation process for closed factions (the same as players with /f bypass enabled can do)
2012-01-18 06:01:50 -06:00
Brettflan
2a9b475012
Economy integration is now handled through Vault instead of Register. You will need to download and install the Vault plugin now if you want to use any Economy-related features. If you're not using the Register plugin for anything other than Factions, it should be safe to remove it from your server.
...
Vault: http://dev.bukkit.org/server-mods/vault/
Note: for proper faction bank support, if you're using iCo5 or EssentialsEco, I recommend waiting for Vault 1.2.5 to be released which addresses faction account creation issues related to those.
2012-01-16 19:38:14 -06:00
Brettflan
47ba56de9e
Optimization: Factions (as objects) now maintain a list of FPlayers in the faction for faster lookup
...
INTEGRATION NOTE: getFPlayers() and getFPlayersWhereOnline(boolean online) now return Set<FPlayer> instead of ArrayList<FPlayer>, so other plugins which hook into those methods will probably need to be updated.
2012-01-13 03:46:31 -06:00
Brettflan
6ea54cb7ac
When a faction leader is kicked from his faction for whatever reason (not logging in for too long, a server admin running the /f kick command on him, the player being banned from server), another player will now be promoted to faction leader in his place. If the faction has at least one officer, one of them will be chosen. Otherwise, a normal member will be promoted. If the faction leader was the last/only member, the faction will of course be disbanded.
...
Also, players being kicked due to inactivity is now logged.
2011-12-18 07:50:41 -06:00
Olof Larsson
b4ea5228ec
Backwards compat for Dynmap-Factions
2011-11-27 23:13:43 +01:00
Olof Larsson
686986eeb9
Fixes to the show command.
2011-11-24 16:53:59 +01:00
Olof Larsson
fc6bfcf061
Merge branch 'master' of github.com:MassiveCraft/Factions
2011-11-24 16:27:23 +01:00
Olof Larsson
e935a56ff9
New SeeChunk command and cleanup of the show command.
2011-11-24 16:27:14 +01:00
Brettflan
101aa8cabe
Hopefully fix a couple of economy integration problems
2011-11-23 00:11:30 -06:00
Brettflan
d614dec781
Fix for faction chat referring to all speakers as "you"
...
Fix for faction account being null from Register and triggering NPE with some economy plugins
Updated Register lib
2011-10-27 08:48:14 -05:00
Olof Larsson
72db45e45e
Updated readme, Fixed admin bypass command and corresponding permissions, Swapped colors for ally and truce, added new faction permissions, improved explosion protection and implemented firespread protection, fixed painbuild check order, flags can only be changed by server admins now and implemented type adapters for some enumerations for future changes to be non breaking. That it \:D /
2011-10-25 21:18:08 +02:00
Olof Larsson
5f437b1862
Changed permission view. Bank withdraw permission in the works
2011-10-24 11:56:41 +02:00
Olof Larsson
0c46809952
Some refactoring and better messages
2011-10-24 11:07:06 +02:00
Olof Larsson
bb5a676430
Changes to the ascii map and minor tweaking
2011-10-24 09:28:08 +02:00
Olof Larsson
074be07510
Some dead code elimination
2011-10-24 03:02:25 +02:00
Olof Larsson
46161f61db
Started to implement special faction behavior
2011-10-24 02:33:30 +02:00
Olof Larsson
e3821a8d4e
REMOVED owned plots
2011-10-24 01:37:51 +02:00
Olof Larsson
958a1e0d9f
Working permdelta parser
2011-10-23 23:38:26 +02:00
Olof Larsson
371261a07f
Working on the faction perms as well now
2011-10-23 23:17:02 +02:00
Olof Larsson
21783ef9d4
Woop
2011-10-23 22:08:57 +02:00
Olof Larsson
98c5230655
Wheeerp
2011-10-23 20:50:49 +02:00
Olof Larsson
842844969b
Merged Relation and Role into one enum
2011-10-23 17:55:53 +02:00
Olof Larsson
d280f9409d
In the middle of refactoring to merged role and relation as one enum
2011-10-23 17:30:41 +02:00
Olof Larsson
2ac96f4278
Added a permanent power command
2011-10-22 18:12:15 +02:00
Olof Larsson
7ebed6db9c
Improving the faction tag matching
2011-10-22 17:42:13 +02:00