Commit Graph

551 Commits

Author SHA1 Message Date
ProSavage 7be48b5942 Fixed disband exploit 2018-12-23 18:20:54 -06:00
ProSavage 266c598b76 Fixed the spam issue with a real fix. 2018-12-21 15:46:10 -06:00
ProSavage d19b321438 New deploy & some javadoc fixes 2018-12-20 20:15:10 -06:00
GenialJerome 16aa87a16a Faction Disband Reason & Auto-Completion
- Add Faction Disband Reason
- Add Auto-Completion
- Optimization
2018-12-09 03:13:18 +01:00
ProSavage 7bf5def899 Fixed FactionTop Plugin detection. 2018-12-06 16:06:46 -06:00
Joshua Murphy 364a6d28fa Fixed Typo With Focus 2018-11-22 02:16:58 -05:00
Joshua Murphy a59c226747 Added Focus/Config Fixes 2018-11-22 02:09:58 -05:00
GenialJerome a59e3d9a82 Merge remote-tracking branch 'upstream/1.6.x' into 1.6.x
Merge commit writed after the fork
2018-11-21 02:28:38 +01:00
GenialJerome 5f8ea0bd19 PowerRegenEvent and optimization
- Add power regeneration event
- Change getNone(), a deprecated method, to getWilderness()
- Optimization
2018-11-20 21:01:04 +01:00
Joshua Murphy 139a28de8a Multiple Typos/Fixes From https://github.com/ProSavage/SavageFactions/issues 2018-11-20 07:37:45 -05:00
ProSavage 84f1d354eb Fixed spacing in code around ! operator. 2018-11-07 10:14:42 -06:00
ProSavage 7f1785e152 Fixed disband issue. 2018-11-06 23:38:59 -06:00
ProSavage b1b9bd1b73 Reformatted Code 2018-11-06 23:38:44 -06:00
ProSavage 9d21df9c63 Fixed faction chat mode switch to public, IntelliJ refactor broke it. 2018-11-06 23:01:08 -06:00
ProSavage 32ec804a54 1.7 spectator fix. 2018-10-26 15:10:50 -05:00
ProSavage ffc4812be9 Edited tpBanner to work correctly 2018-10-24 10:48:08 -05:00
ProSavage 9aeb70404d Renamed Main Class of plugin from 'P' to 'SavageFactions', along with the plugin field from 'p' to 'plugin' 2018-10-22 18:43:02 -05:00
ProSavage 80e66d7d6c Changed the enum for Leader to actually be leader and not admin. 2018-10-18 19:39:48 -05:00
ProSavage 713aab8bfa Fixed backward compatibility on 1.12 for particles. 2018-10-18 11:55:21 -05:00
ProSavage f1a42749da Disband exploit fixed 2018-10-01 16:53:10 -05:00
ProSavage 12caa1b9d4 secondary check for disbanding to make sure. 2018-09-30 15:57:16 -05:00
ProSavage a28fe04b8a Merge remote-tracking branch 'origin/1.6.x' into 1.6.x 2018-09-30 15:49:41 -05:00
ProSavage 11f7b7511d Fixed disband issue 2018-09-30 15:48:55 -05:00
Driftay fb8837bd7d Added Grabbing Chunk From World to FLocation API 2018-09-26 22:25:47 -04:00
Driftay fd84ae2a18 Added Grabbing Chunk From World to FLocation API 2018-09-26 22:25:33 -04:00
Driftay 1ee8089ca5 Changes Adding 2018-09-21 02:29:28 -04:00
Driftay ed91f58dc9 Added F Paypal 2018-09-21 02:28:20 -04:00
Driftay e580c7eee9 Revamped F Stealth 2018-09-20 16:55:19 -04:00
ProSavage 2adef31cf5 Secondary Check added to fly particles. 2018-09-10 10:05:16 -05:00
ProSavage 4ad062dddb Fixed all issues with F chest, and a massive increase in performance due to /f chest only serializing / deserializing on startup/shutdown instead of realtime. 2018-09-09 12:40:45 -05:00
ProSavage 90ae1822bc Revert "WIP: Access method for commands"
This reverts commit 9c6cc187f2.
2018-09-08 17:28:09 -05:00
ProSavage 9a773702eb Revert "And I did it again"
This reverts commit 9ce8467224.
2018-09-08 17:26:50 -05:00
ProSavage e1a51b9488 Changed parameter name for hasAccess 2018-09-04 18:33:13 -05:00
ProSavage 99a747adcb Revert "Access check updated"
This reverts commit 6eccfa84f1.
2018-09-04 18:13:50 -05:00
Svenja Reissaus ff59fd50cc Updated check for fly permission with minor enhancements 2018-09-03 12:11:57 -03:00
Svenja Reissaus 6eccfa84f1 Access check updated 2018-09-03 12:11:03 -03:00
ProSavage 989c190c8a Merge branch '1.6.x' of https://github.com/ProSavage/SavageFactions into 1.6.x 2018-08-28 21:08:50 -05:00
Svenja Reissaus 9ce8467224 And I did it again 2018-08-28 12:06:26 -03:00
ProSavage 2410fafcc4 Added a cost per use to stealth mode! 2018-08-27 10:39:34 -05:00
ProSavage 1531efc030 Merge remote-tracking branch 'origin/1.6.x' into 1.6.x 2018-08-26 22:28:15 -05:00
ProSavage 36efd8a24e Added timeout to stealth mode! 2018-08-26 22:27:55 -05:00
Svenja Reissaus 9c6cc187f2 WIP: Access method for commands 2018-08-21 15:02:16 -03:00
ProSavage 94c4ee815a Added support for enabling flight through reload! 2018-08-20 22:55:41 -05:00
ProSavage 8fc9ed7395 Fixed all cross version material issues. 2018-08-13 00:33:40 -05:00
ProSavage 70e069dc05 Banners now work in 1.7-1.13 ( Tested ) 2018-08-11 01:14:18 -05:00
Svenja Reissaus 4c80ade48d Fixed #34 disabled banner alert 2018-08-05 01:52:12 -03:00
ProSavage d0cf88c9c6 Fixed all errors with Sevenja's new commits 2018-08-04 20:32:36 -05:00
Svenja Reissaus 5fe55afc68 Explicit permission checks and more admin bypasses 2018-08-02 14:55:21 -03:00
Svenja Reissaus 85de278dc9 Fixed permission check for /f vault 2018-08-02 13:57:57 -03:00
Svenja Reissaus 40a0d72270 Added /f home permission added to keep players from complaining 2018-08-02 12:33:51 -03:00
Naman 6d397b1cae
Update CmdFly.java 2018-08-02 10:16:55 -05:00
Svenja Reissaus ea861d304d Fixed no confirmation message when inviting offline players 2018-08-02 11:55:47 -03:00
Svenja Reissaus d6d8031804 Only mods and higher should use Mod Chat Channel 2018-08-02 11:54:39 -03:00
Svenja Reissaus 1ac9c123d0 Improved recent Stealth feature to use local variables (performance enchancing) 2018-08-02 11:32:53 -03:00
Svenja Reissaus 6a3b4db565 Added config to allow vanished players to hide particles for moderation purposes 2018-08-02 11:29:41 -03:00
Svenja Reissaus cbb7d478a7 Fixed re invite spam to already invited member and enhanced kick permission check 2018-08-02 11:13:16 -03:00
Driftay 8deb02f29f Merge branch '1.6.x' of https://github.com/ProSavage/SavageFactions into 1.6.x 2018-07-30 12:05:56 -04:00
Driftay 751f46e57e F Stealth Added
Signed-off-by: Driftay <saser_elite@yahoo.com>
2018-07-30 12:05:28 -04:00
ProSavage a7275278e4 Fixed seechunk particles being seen by all players & their locations. 2018-07-29 23:58:07 -05:00
ProSavage bab7a2361d 1.13 see chunk particles are now functional 2018-07-29 23:53:20 -05:00
ProSavage e7e3e14825 1.13 now has working particles. 2018-07-29 14:34:40 -05:00
ProSavage 51f157931f Fixed all compile errors ( Took forever ) 2018-07-28 00:31:58 -05:00
ProSavage 403a086ea7 Super basic /f top which organizes factions by money etc. Just so people dont complain. 2018-07-26 18:40:27 -05:00
ProSavage afc4dbf9b8 /f warunclaimall now actually sends a message on success. 2018-07-26 18:17:24 -05:00
ProSavage cb6f0a8104 Fix claiming check bug caused by Sevenja's Pull Request 2018-07-25 15:09:55 -05:00
ProSavage df9506ca9c /f unclaim fix 2018-07-22 11:33:53 -05:00
ProSavage c5f06f910a /f tnt take inventory space issue fix for new tnt checks 2018-07-20 20:34:33 -05:00
ProSavage e9b080bc9e Made a check for tnt when disbanding. 2018-07-20 20:32:46 -05:00
ProSavage 408725c1d7 Made a Factions.disband() method into the api. 2018-07-20 11:42:47 -05:00
ProSavage 2320fe2586 If player is owner of a claim, all permissions are bypassed The order is OP -> Ownership -> Permission 2018-07-18 09:48:25 -05:00
ProSavage 410e932826 Cancel tpbanner command if banners are disabled. 2018-07-17 10:07:54 -05:00
ProSavage 3543030e64 /f tnt withdraw issue fix. 2018-07-17 09:26:25 -05:00
ProSavage 07d8d95969 Containers can now be accessed by default if undefined & the player is in the same faction as the container being accessed. 2018-07-17 09:03:01 -05:00
ProSavage 143daad9e6 F map autoupdate during flying fixed. 2018-07-12 11:11:07 -05:00
ProSavage 2426142664 Fixed the invite command permission check. 2018-07-11 16:45:55 -05:00
Naman eb288c5cdc /f vault deny perm fix 2018-07-11 08:33:43 -05:00
Naman f70cc119df 1.7 spectator bug fixed.
Placeholderapi is no longer a requirement.
/f showclaims lag fixed
Scoreboard is now off by default, can be turned on in config.
Issue with Flight AutoEnabling when disabled has been fixed.
1.7 itemflag bug fixed
2018-06-21 14:16:55 -05:00
ProSavage e948f56fd2 warbanner item stack could be set higher than 1, fixed. 2018-05-11 18:13:02 -05:00
ProSavage 3ce14d2085 Finished up setbanner command and colored the meta and display name for the serialized banners 2018-05-11 18:11:02 -05:00
ProSavage d95c80ae5b 1.4-STABLE
------------------------------------------------------------------
No Enderpearls in fly fixed - The option was bugged, so if it was true it would do the opposite.
Improved /f map visuals and title!
Title fadeout time, showtime, and fadeintime options added for 1.9+ servers
Fixed Bug in /f upgrades where the slots option for exp would move the spawner instead.
Added Faction chest, an upgradable shared "enderchest" for factions to share!
Added some more entries into /f help in config.
Added Upgrade for faction chest
Banner pattern storage
------------------------------------------------------------------
2018-05-11 17:47:58 -05:00
ProSavage f30cd44b54 1.3-STABLE
------------------------------------------------------------------
1.7 Support Added
- Titles disabled in 1.7
- Banners disabled in 1.7
- Itemflags disabled in 1.7 for /f warp, /f perms, and /f upgrades
/f perms GUI has been redesigned ( Reset your config.yml or Change it from the config differences )

Reset conf.json for the following.
Default color for members set to light green ( &a )
Default color for wilderness set to gray ( &7 )
------------------------------------------------------------------
2018-05-03 09:03:16 -05:00
Naman 6bf4598d57 1.2-STABLE
/f tntfill wont spam chat anymore,
I changed the tntfill_success option, so you're gonna wanna delete that to rengerate it. If you havent edited the lang.yml just delete it and restart
/f stuck wont tp players outside the border anymore.
Nametags & Tab has placeholderapi support added
use {relationcolor} and {faction} for relational color and faction ( These were already built in )
They can be edited in the lang.yml the option is default_prefix.
/f perms now has tntfill, tntbank, and vault permission options
2018-04-24 19:32:26 -05:00
Naman ba9b3587e0 1.1.1-STABLE
/f coords - displays your coords and current world to your faction
/f showclaims - Lists all your claims in every world
/f lowpower - lists players with power under max
/f tntfill <radius> <amount> - fills tnt in a radius and amount, hooks into /f tntbank if you're a mod or higher.

Some of these commands require permissions please see the permissions page here
https://www.prosavage.net/wiki/permissions
2018-04-17 20:06:14 -05:00
Naman aa4bbb3895 1.1.1-STABLE
/f coords - displays your coords and current world to your faction
/f showclaims - Lists all your claims in every world
/f lowpower - lists players with power under max
/f tntfill <radius> <amount> - fills tnt in a radius and amount, hooks into /f tntbank if you're a mod or higher.

Some of these commands require permissions please see the permissions page here
https://www.prosavage.net/wiki/permissions
2018-04-17 20:01:53 -05:00
Naman 6c2ca2a468 1.1-RELEASECANDIDATE-2
Scoreboard bug fixed
inspect message disable fixed
/f seechunk particle options disabled, because they were breaking if invalid.
2018-04-13 22:23:04 -05:00
Naman 175a4a6a12 1.1-RELEASECANDIDATE-2
Scoreboard bug fixed
inspect message disable fixed
2018-04-13 21:31:37 -05:00
Naman e36927db9f 1.1-RELEASECANDIDATE-1
Made the particles in /f fly more cloud like
Changed wilderness color to Darkgreen
Added a factionless check to inspect, so itll now disable the when you try to check with no faction.
Inspect will disable upon entering combat
You cannot claim outside the worldborder anymore, the chunkbuffer is taken into account.
Particles WILL NOT appear in /vanish and in spectator mode
2018-04-13 21:05:43 -05:00
Naman efee66071b 1.0.23
configurable enemy check radius for fly, option added in conf.json
Added a system faction check to neutral
Added a enderpearl disable while flying option to conf.json
Added my own repository to maven along with coreprotect for shading.
--Factions Inspect Added--
2018-04-08 22:13:41 -05:00
Naman 76d1bc0e9b SavageFactions 1.0.23
Ability to remove items from main menu in perms for choosing roles/relations by setting the slot to -1
Changed placeholder identifier back because hooks in many plugins broke :(
Removed debug message from warzone fly.
Changed public modifiers on relation back, as they broke the method signature.
2018-04-07 16:31:13 -05:00
Naman f1bfe2e8c4 SavageFactions 1.0.21-BETA-3
Tweaked fly disabler, hitting mobs wont disable it.
Fly bypass permisssions logic redone
issues with safezone fly and warzone fly fixed
Fixed click to claim in f map
Changed tooltips ot one line in map because of heavy load in areas with lots of claims
option to disable banners
Kicking throwing error cause of typo in lang file.
Tnt Bank limit added.
2018-04-03 22:20:30 -05:00
Naman 009e3e715c SavageFactions 1.0.21-BETA-2
Fixed tnt message
New message for fly disable to show cooldown
Started on remaking lang file
fly will not disable when an ally, truce, or faction member hits you.
Role prefix value added to placeholderapli class
changed identifier for placeholderapi
Made 1.7 detection
Placing blocks wont throw errors anymore in 1.7.
2018-04-03 09:38:11 -05:00
Naman 12b9f94fe4 removed the iterator in fly checks.
...
2018-04-01 09:13:23 -05:00
Naman 21587db74d Iterator Fix in Fly to avoid concurrent exceptions
1.12 particle support
2018-03-31 11:46:37 -05:00
Naman e14af238bf SavageFactions 1.0.21
fixed this error (https://pastebin.com/4gtiQPYX)
 fixed damage bug (https://pastebin.com/56JHiPYt)
 fixed (https://prnt.sc/iy4l7q) (( I think I did, I could not replicate it ))
 Added methods to check if players can fly in claim types e.g.
 "if (fplayer.canflyinsafezone()){
 //do stuff
 }"
 Autofly now enables if you have bypass permissions.
 Fixed faction members, truces, and allies being able to hit each other and disable fly
 Fixed Autofly's enable message spamming multiple times if fly is already on.
2018-03-30 21:22:06 -05:00
Naman cdf870b782 Added Invalid Location to checkpoint
Fixed Checkpoint cooldown
Made it so you have to buy vaults from /f getvault, and buy banners from /f banner
Particle based seechunk that works when moving between chunks
Particle support for 1.7-1.12
Made fly particles mode subtle
2018-03-28 19:33:10 -05:00
Naman 3d2bf73497 Option to remove permissions from perm gui.
bStats tracking
Admins are demoted coleaders instead of mods
Changed fly for loop to iterator to avoid concurrent exceptions
2018-03-27 08:17:55 -05:00
Naman b92202e86b Promote, kick, and admin command bugs fixed. 2018-03-26 18:42:26 -05:00
Naman 44b3de91dd adding new stuff 2018-03-26 16:43:15 -05:00
Trent Hensler 026b33b427 Don't even load /f fly if its set to false in config. 2018-03-18 14:37:55 -07:00
Trent Hensler 999067a430 Allow show to be ran from console even if we can't fill in all placeholders 2018-03-11 18:31:06 -07:00
Trent Hensler b78ff51e10 Allow console to run /f list 2018-03-11 17:59:11 -07:00
Trent Hensler 2291554e1e Faction create event is no longer cancellable, and is called AFTER the faction is made. This allows people to hook into the event and manipulating the Faction without having a delay. And if the event was ever cancelled before, it was silent. 2018-03-09 22:08:17 -08:00
Dariasc 819cb542cd Major f perm fix; Fix sethome permission check (#1079) 2018-03-09 10:22:15 -08:00
Dariasc 693c831327 Add Admin and Permission check to /f perm (#1062)
* Remove perms Action

* Add Permission check to /f perm

* Refactor flight perm

* Add fly perm to GUI

* Remove useless perm check
2018-03-06 11:46:55 -08:00
_ProSavage_ fe464ba750 Added /f chat mod 2018-03-04 19:21:53 -08:00
Trent Hensler 055adf2e9e Don't enable our own f top command if other plugin that handles it is enabled. Resolves #1066 2018-03-04 16:46:17 -08:00
Trent Hensler f1905d04a3 factions.fly as the perm node 2018-03-04 14:16:17 -08:00
Dariasc a90299d32e Implement /f fly (#1023) 2018-03-04 14:13:32 -08:00
Dariasc d6b147ef7b Add /f warp GUI (#1069)
* Add /f warp GUI

* Fix typo
2018-03-04 12:53:20 -08:00
Dariasc a8ce60b457 Add rank check to /f ban (#1068)
* Add rank check to /f ban

* Fix incorrect f perm check at SetHome
2018-03-03 19:12:14 -08:00
Trent Hensler a42d4d1d50 Handle null config section to be more friendly with people upgrading 2018-03-02 19:07:34 -08:00
Trent Hensler 81a33de33a Format and check for null section 2018-03-02 13:57:36 -08:00
Dariasc d490bb8366 F Perm GUI (#1045) 2018-03-02 13:53:01 -08:00
Trent Hensler c4a56de3b7 Compile against PlayerVaultsX 2018-03-01 18:54:14 -08:00
Trent Hensler 151d38fd7b Faction Bans
Adds /f ban, /f unban, and /f banlist
Permission: factions.ban - included with factions.kithalfplayer
Also added as a /f perm that can be granted. Otherwise, defaults to faction mods.
Number of bans now shows up in f show
Banning a player will notify your faction and target player. It'll also kick the player from your faction if they are currently in it.
TODO: make /f banlist prettier
2018-02-28 20:23:37 -08:00
Trent Hensler d45b5ac612 Add placeholders to f show 2018-02-17 12:17:37 -06:00
Trent Hensler 3f1edf1096 Allow players to set titles with colors. Adds #1036.
factions.title.color permission which is included in factions.fullplayer permission subset.
2018-02-15 18:02:59 -08:00
Trent Hensler f29efa116d Clickable f map
* New command /f claimat world x z
* Permission: factions.claimat
* Permission is not included in factions.halfplayer or anything for now. Will need to be granted manually.
* If players don't have factions.claimat, they won't see the clickable f map
2018-02-12 18:09:02 -08:00
Trent Hensler ea7213cbd7 Fix sethome perm check 2018-02-12 10:59:45 -08:00
Trent Hensler a034030ba5 Fix setting perms.
Annoyingly setting them to und by default now
2018-02-11 17:38:04 -08:00
Trent Hensler d8125eb0d2 Max mapheight is 2x default 2018-02-10 17:03:31 -08:00
Trent Hensler 0f6bd8eabd Fix default mapheight 2018-02-10 16:27:49 -08:00
Trent Hensler 50930d7583 Bigger /f map
Add /f mapheight <height> command to allow players to set their mapheight.
Increase default map height and width to be in line with larger values servers want
2018-02-10 16:20:13 -08:00
Trent Hensler 47f0bf1ce5 Tooltips in f map 2018-02-10 15:59:21 -08:00
Trent Hensler 79410d91f1 Command to view your permissions 2018-02-05 20:46:53 -07:00
Trent Hensler 1b088ccd54 Set warp and f warp f perms 2018-02-03 13:04:21 -08:00
Trent Hensler ad10222c2d Withdraw f perm 2018-02-03 13:01:25 -08:00
Trent Hensler 925014bd60 f perm for kick 2018-02-03 12:59:05 -08:00
Trent Hensler baea59a1cd F perm for invite and sethome 2018-02-03 12:56:16 -08:00
Trent Hensler 3eda8750cc Format 2018-02-03 12:50:12 -08:00
Trent Hensler 182022fe5f Check for f perm in building 2018-02-03 12:49:04 -08:00
Trent Hensler 249770d2cd Add Permissable interface for f perm compatibility.
Allows Roles and Relations to be permissable, so we can set f perms for both of those in the same map.
2018-02-03 12:33:28 -08:00
Trent Hensler 9e8205b5e2 Work with PlayerVaultsX 2018-01-31 17:03:55 -08:00
Trent Hensler 79d4a885f8 Allow bulk setting of permissions 2018-01-04 23:16:24 -08:00
Trent Hensler 39f1bd7404 Fix permissions 2018-01-04 23:01:52 -08:00
Trent Hensler 4110fb2ef4 Fix up default role and promote commands 2018-01-04 18:10:49 -08:00
Trent Hensler f019c4f833 Don't let them set default to admin 2018-01-04 17:38:29 -08:00
Trent Hensler f6bd156f89 Add command to set default rank. Only used by admins.
/f defaultrole <role>
2018-01-04 17:37:23 -08:00
Trent Hensler 4db185e3ee Role updates.
* Adds recruit role below the normal role.
* Adds /f promote and demote. Access to this command defaults to moderator if not set in /f perm
* Default role is still set to recruite. Will have to /f demote to set players to that rank.
2018-01-04 17:17:30 -08:00
Trent Hensler 7a4ddc6855 Actually allow setting of truce 2018-01-04 01:47:36 -08:00
Trent Hensler 687bac31db Initial f perm.
TODO:
* Add GUI for viewing and changing permissions.
* Currently no way to view access for all perms.
* Test this because I didn't.
* Finish implementation of all permissions, add more.
2018-01-04 01:36:51 -08:00
Trent Hensler ff8ae7be3b Check for sender in f money ff. Fixes #993 2018-01-03 23:32:19 -08:00
Trent Hensler 3b644cd6c3 Java 7 and make intellij happy 2017-12-19 02:18:13 -08:00
Trent Hensler ce132ed033 Add password protected warps 2017-12-19 02:10:52 -08:00
Trent Hensler 9ed7603e38 Fix showing the faction's balance in f show instead of the player who executed it. 2017-12-19 00:37:17 -08:00
Joel Puig Rubio 08c0995741 Allow unclaiming all safezones and warzones in a specific world 2017-09-04 23:17:12 +02:00
Kakifrucht 208434972f Also exempt from /f list 2016-12-17 02:06:44 +01:00
Kakifrucht 04dd47dfea Add faction exemption to /f show 2016-12-17 00:16:42 +01:00
novucs d2e3e7c18c Fire unclaim event when unclaiming
Claim events fire even with bypass mode enabled, so the same functionality should apply for unclaiming.
2016-07-25 15:07:03 +01:00
Kakifrucht eb503fdfa8 Fix formatting codes in description 2016-06-29 19:10:07 +02:00
Trent Hensler 9f89010af1 Add /f vault description. 2016-05-30 16:25:27 -07:00
Trent Hensler 0294a60675 Add Faction vaults.
These can be accessed with /f vault <number>
Set a Faction's max vaults with /f setmaxvaults <faction> <number> - can be run from console so Buycraft can execute it.
* This is a not very tested implementation. Should be tested more in depth before being pushed to a release.
2016-05-30 16:22:45 -07:00
Troy Frew 46805200dd Fixed /f unclaim and /f unclaim 1 2016-05-30 13:00:53 -04:00
Trent Hensler 14946cd1b2 Add /f unclaim <radius> per #684. 2016-05-29 17:20:50 -07:00
Gabriele C bd416059bc Cleanup 2016-05-03 23:05:18 +02:00
gsand a85728cd21 Additional aliases for common commands 2016-01-01 19:05:02 -08:00
ItsMonkeyyy 8b6cf4fe8c Added a feature to enable or disable broadcasting tag changes 2015-12-10 19:05:42 -08:00
drtshock 1cf2158021 Add option to reset powerboost from #572.
Functionality is now /f powerboost p <name> 0 or reset to set the powerboost to 0 for that player or faction.
2015-12-02 16:26:06 -08:00
cnr f5432cd227 Add missing forward-slash prefix to clickable commands. Fixes #401 2015-09-11 23:04:53 -05:00
drtshock c5571ba8ee Add command to forcefully send player to f home from #478.
Functionality: /f ahome <target> - sends a player to their f home as long as they have an f home and are online.
Permission node is  and given to factions.admin and factions.*
2015-09-08 12:18:00 -05:00
drtshock 4414b1589f Remove deprecated isNone usages in favor of isWilderness 2015-09-08 11:46:48 -05:00
vemacs 1fa2abcc88 Resolve NPE on /f warp with cooldown 2015-09-07 08:00:58 -06:00
drtshock 05cbf4cf5d Powerboost now adds to the current powerboost instead of sets it. Adds #501
This will break existing functionality but that existing functionality is stupid.
2015-08-08 21:53:31 -05:00
drtshock 518eba9e18 Check for pay before passing teleport off to essentials. 2015-08-07 16:39:07 -05:00
drtshock 1a94e89558 Initial async saving on auto save and force save. 2015-08-06 17:41:37 -05:00
drtshock f76fc190fd Don't readd wilderness faction to f top. Fixes #470 2015-08-06 17:30:50 -05:00
drtshock ce77799ef1 Add minimal f show. 2015-08-06 16:59:54 -05:00
drtshock 8926d0b434 Don't allow % in faction descriptions.
Was messing up string formatting. Fixes #490
2015-08-06 16:09:07 -05:00
drtshock 786f2d655f Deprecate Factions#getNone in favor of Factions#getWilderness 2015-07-23 14:39:50 -05:00
vemacs 03cc7f7394 Perform a null check for teleport cooldowns to prevent exceptions when players log out before cooldown 2015-06-13 16:18:42 -06:00
drtshock e7f8060441 Don't show home location by default.
This was in there for HCFactions and isn't really meant for regular factions.
2015-05-25 19:16:46 -05:00
drtshock 7205c0012d Apparently it didn't revert correctly. 2015-05-25 15:53:48 -05:00
drtshock de57060819 Revert "Remove Fanciful, fix compilation (part 1/2)"
This reverts commit fc1d08e507.
We have users on builds before this was included in Spigot. We don't want to break those servers.
2015-05-25 15:46:18 -05:00
Paul Sauve 1481d604d4 Cancel warmup on damage or movement 2015-05-25 12:20:33 -05:00
Paul Sauve fc1d08e507 Remove Fanciful, fix compilation (part 1/2) 2015-05-24 18:05:27 -05:00
drtshock 0285c005dd Update f version command. 2015-05-18 14:34:45 -05:00
drtshock f69f1cc025 Use FPlayer to store board toggle instead of separate file.
Honestly not sure why we ever did it like this in the first place.
2015-05-18 14:32:12 -05:00
drtshock 7a2dcca067 Check for warzone and safezone when claiming.
Helpful when claiming a warzone or safezone after renaming either.
2015-05-14 10:36:03 -05:00
drtshock f37e38b011 Reformat. 2015-05-12 23:17:22 -05:00
Nick Porillo d7067d3f27 Add /f stuck command to root
forgot to commit this
2015-05-12 23:24:08 -04:00
Nick Porillo fede341cc7 Implement /f stuck command from hcf 2015-05-12 23:16:47 -04:00
Nick Porillo aeef4d69c2 Fix last seen variable 2015-05-12 23:14:51 -04:00
Nick Porillo 6921dd1796 Fully configurable /f help
defaults to legacy /f help
implements hcf's configurable /f help system
2015-05-12 22:09:52 -04:00
Nick Porillo ab6a19e436 Fully configurable /f list
Implement the configurable f list feature from HCF
2015-05-12 21:47:22 -04:00
Nick Porillo 44542261ae Variable overhaul and configurable /f show 2015-05-12 21:34:00 -04:00
Nick Porillo dbba8c055c Adds Faction founding date
..but does not implement it. Future commit will need to add this to /f
show.
2015-05-12 12:20:11 -04:00
Nick Porillo 362bb55a0f Fix relation limit glitch
Hand merged from HCF. Fixes issue where factions could exceed the max
relation setting in config.
2015-05-12 12:13:30 -04:00
drtshock 2b0638f54f Pull out null check because console can have null faction. Fixes #375. 2015-05-07 10:39:04 -05:00
drtshock d0b514eff6 Fix some lag with f show. Remove offline permission lookups.
The lookup was locking up my server on almost any f show executions. It's just not worth it.
2015-04-25 19:15:54 -05:00
drtshock 41d0195c9e Remove unused value. 2015-04-25 14:25:17 -05:00
Evan Lindsay 7b522be2c7 Remove duplicate message for land/power/maxpower 2015-03-31 03:14:20 -07:00
Evan Lindsay f5b3628bc4 Fix IllegalStateException due to creating a FancyMessage with no args constructor resulting in first MessagePart having no text. 2015-03-31 02:43:05 -07:00
drtshock c3452c97aa Add null check before toggling scoreboard. 2015-03-09 23:44:34 -05:00
drtshock 6d6b63ba19 Merge branch '1.6.x' of https://github.com/vemacs/Factions into vemacs 2015-03-06 16:35:19 -07:00
vemacs 1ea6dbe12d Fix one type checking warning 2015-03-05 00:16:57 -05:00
vemacs 7fd590fc75 Add ToggleAllianceChat command (sorry I couldn't think of a shorter name, but this is extremely useful for YouTubers) 2015-03-04 23:55:46 -05:00
drtshock 607be6b8fb Merge t00ths branch. 2015-02-26 08:59:00 -06:00
Nick Porillo 0aea7c6b9d Remove redundant messaging. Fixes #276
When informing faction members, if the command sender is part of the
faction, do not send another message to him because he has already been
informed.
2015-02-20 12:47:48 -06:00
drtshock d888b320db Add DTR (deaths til raidable) option for f show.
Will show 0 if they are raidable to prevent a negative number from showing.
2015-01-27 11:07:55 -06:00
drtshock 147a051fee Add max relation type. Adds HCF feature from #169.
If used, max relation should be set to -1 for the default relation.
2015-01-27 09:34:22 -06:00
drtshock 092d4b352c Add ability to display if Faction is raidable. Resolves #167. 2015-01-27 09:06:18 -06:00
eueln 3c0c835160 Fix TL path for `/f save` success message 2015-01-23 19:48:49 -06:00
drtshock 0c2253ef73 Iterate over correct Faction for balance. 2015-01-23 09:17:16 -06:00
drtshock 3e6bd4e88a Add f top command functionality. Resolves #71.
Gives the ability to see top Factions on the server sorted by certain criteria:
Balance: sorts by faction bank balance and all faction member balances.
Power: total power.
Land: total land claimed.
Online: members currently online.
Members: total members, online and offline.

Future criteria can be added of course.
2015-01-23 09:07:18 -06:00
drtshock ebf00ccf0d Add claim line. Resolves #142. 2015-01-22 22:38:46 -06:00
drtshock a4a11e7045 Allow f show to be executed by non players. 2015-01-22 20:31:26 -06:00
drtshock 8c2f08b694 Truces.
Add chat channel functionality. Essentially the same as Allies except it's a different word.
2015-01-22 20:30:40 -06:00
korikisulda 7e6aa4fc25 Even more TL. Fixes command description issues. 2015-01-21 19:25:45 -06:00
Joshua Popoff 355e1f58b0 Add warmups for /f home and /f warp 2015-01-19 15:59:15 -08:00
drtshock 4d13c9cada Change command syntax for radius claiming.
Syntax was confusing and people wanted change. Resolves #215.
2015-01-15 13:27:11 -06:00
eueln 2955370c9e Fix misleading error in CmdKick
The error was shown to a player when s/he tried to kick someone who
didn't belong to a faction, and incorrectly asserted that something had
"went wrong".
2015-01-10 11:32:56 -06:00
eueln 561ab22924 Remove most mentions of getOfflinePlayer(String)
Faction bank accounts will need to be migrated to use UUID identifiers
before we can remove the remaining getOfflinePlayer(String) calls.
2015-01-09 11:44:15 -06:00
mrlolethan dc3e7e953b Fix "No player found" message in CmdKick
When `/f kick` was used with zero arguments, an ugly message was sent to
the player regarding a missing player match for "null"
2015-01-07 18:14:27 -06:00
drtshock 8300b2ff2b Allow players to monitor joins and leaves of their faction members.
Larger servers tend to have join and leave messages disabled for the entire server. A few have requested to allow faction members to monitor join and leave messages of their own members.
2015-01-06 16:06:46 -06:00
eueln 5799a0480b Fix String-related bugs
The result of a call to String#toLowerCase() was ignored, and two
Strings were being compared with ==
2015-01-06 11:59:15 -06:00
eueln d6bbea7244 Add missing early `return` in CmdMod 2015-01-05 10:00:51 -06:00
t00thpick1 44dc04e3e1 There are lots of unfactioned players, but we shouldn't care about them. 2015-01-02 19:19:57 -05:00
drtshock 91f9d1d8db Remove tooltips for f show and f list.
Tooltips were causing a lot of issues on larger servers. Constructing them as well as the lookups required to display them caused significant lag.

Resolves #197, #164.
2015-01-02 13:38:35 -06:00
Tibo442 2209090783 Different message for own faction and for other factions when faction not found.
Still weird for faction-less players to do /f show <other faction-less player>
2014-12-30 10:07:35 -06:00
t00thpick1 3f949e18cc Lets not do hundreds of object clones when they are nearly never needed. 2014-12-30 00:31:36 -05:00
eueln c4c5bd9df9 Don't perform /f who for players without a faction 2014-12-29 22:02:18 -06:00
eueln 190c2d793f Use rounded value to match format in /f powerboost 2014-12-24 04:15:16 -06:00
Tibo442 0d75b1164a Changed FancyMessage.command() to accept command aliases.
Also adds support for servers where slash-less commands are disabled.
2014-12-19 13:51:24 +01:00
Tibo 728b6b0fbc Fix /f enemy/neutral/ally's message of sender's faction 2014-12-19 13:11:38 +01:00
eueln 3c2e51e8ed Make LandUnclaimAllEvent Cancellable 2014-12-17 20:50:28 -06:00
eueln 3733539077 Add cancellable FactionRelationWishEvent
This event is called before a faction relation wish is applied by a
player using `/f relation`
2014-12-17 20:31:21 -06:00
eueln 1ada19b02e Properly split FancyMessages for /f show 2014-12-14 17:24:25 -06:00
korikisulda 10fd3f082a Fixed phantom section. Accursed underscores. 2014-12-14 13:39:45 -06:00
drtshock 9aecd5f439 Reformat. 2014-12-11 10:05:04 -06:00
korikisulda 1ce1eb51d4 Add Japanese translation 2014-12-11 09:46:06 -06:00
drtshock 8788778d05 Expose loadLang as public and reload from disk on /f reload. 2014-12-11 09:16:12 -06:00
drtshock fa4154a0ce Allow f show to be sent to non-players.
Fanciful will remove the json formatting to send a readable message.
2014-12-10 22:36:46 -06:00
drtshock c9433d0cf3 Send f show messages all at once to remove delay. 2014-12-10 22:32:47 -06:00
eueln a70cfdaf71 Fix /f {set,del,}warp transactions 2014-12-09 17:16:42 -06:00
korikisulda 1230803cfb Add TL for commands. Resolves #162. Supercedes #97. 2014-12-08 19:47:19 -06:00
eueln a6585e6f5c Fix /f warp on Java 6 and 7
Covariance on ConcurrentHashMap#keySet() in Java 8 was to blame.
2014-12-07 21:59:59 -06:00
eueln 5e676bdd50 Order `/f show` by rank. Adds #150 2014-12-06 21:44:00 -06:00
korikisulda 6107e9502e Truncate excessively long online/offline player messages in /f show/who. Resolves #154. 2014-12-06 21:23:19 -06:00
eueln ff2e32feff Fix format in CmdModifyPower message. Fixes #145 2014-11-29 16:29:29 -06:00
drtshock edfe465ad5 Add missing return statements. 2014-11-17 14:30:41 -06:00
Tibo 356842ab41 Fix clients getting kicked from too many allies/enemies. 2014-11-17 20:16:58 +01:00
Tibo b970755cb1 Fix spaces with ", "
Fixes #134
2014-11-17 19:32:34 +01:00
drtshock 8910de367c Require players to be in a faction to promote. 2014-11-14 14:13:51 -06:00
drtshock bad874495b Add command to modify a player's power specified in #133.
use /f modpower name number
2014-11-14 13:27:23 -06:00
drtshock 104f90c1db Send invite message to correct player. Fixes issue #132 2014-11-14 13:03:51 -06:00
drtshock 54d486cc84 Add tooltips and click commands to f deinvite and show invites. 2014-11-14 10:08:18 -06:00
drtshock 2aa7d7f98d Add tooltips and click commands to f deinvite. 2014-11-14 10:03:57 -06:00
drtshock 03b8f11646 Add tooltips and click commands to f mod. 2014-11-14 09:59:36 -06:00
drtshock b895fa1e99 Add tooltips and click commands to f kick. 2014-11-14 09:56:13 -06:00
drtshock 656dc90b33 Add tooltips and ability to click to warp when you list faction warps. 2014-11-14 09:46:28 -06:00
drtshock c4f4036e1d Add tooltips for f show.
Refactor tooltip methods to be shared across command classes.
2014-11-13 13:49:13 -06:00
drtshock 43826d986f Add colors to /f list 2014-11-13 12:52:21 -06:00
drtshock 64e234144e /f list tool tips 2014-11-13 12:45:57 -06:00
drtshock e585ab57a9 Remove unused f list code. 2014-11-13 09:12:34 -06:00
drtshock 201d10ada5 Add economy option for f warps from #126. 2014-11-11 09:28:53 -06:00
eueln 29836a9183 Remove faction team prefixes when disbanded 2014-11-07 12:55:59 -06:00
drtshock 962f92496c Don't allow vanished players to block others from teleporting. Fixes #111. 2014-11-07 12:08:57 -06:00
drtshock 8b64b4bfe1 Adds per faction warps functionality from #72.
Default max warps per faction is 5. It can be changed in the config.yml.
You can now use {warps} in the info board to show how many warps a faction has when you walk into their territory.
Only faction mods+ can set faction warps.
2014-11-07 11:49:54 -06:00
drtshock 35813c7210 Reformat. 2014-11-05 18:36:47 -06:00
drtshock b66c9ad078 Add missing command help to help command. Resolves #101. 2014-11-05 11:34:46 -06:00
eueln 99c582dda8 Fix issues in CmdOpen
A formatted message was missing a format argument, and comparison on
Strings was being performed with ==
2014-11-02 01:10:41 -05:00
t00thpick1 ee52016a87 Abstract Data storage method for future implementations. Thanks to Ryan from Reactive MC
Also included:
-Heavily optimized loading process
-Optimizations for various commands.
2014-10-30 23:59:59 -04:00
eueln 653f918a1b Add support for Glowstone
Glowstone doesn't yet support PlayerMoveEvent nor Scoreboards, so
functionality is unfortunately limited.
2014-10-30 23:26:23 -04:00
eueln 7f2ef4cbd5 Improve Team prefix performance
This change vastly improves performance for faction team prefix update
operations.
2014-10-30 23:26:23 -04:00
eueln c049768e21 Add faction tag to team prefix 2014-10-30 23:26:20 -04:00
Byteflux 51f1ceee14 Show power next to member names in /f show 2014-10-30 23:26:20 -04:00
drtshock 4929e5dd18 Limit block changes sent in seechunk to prevent client freezing. Use prettier blocks. 2014-10-30 23:26:19 -04:00
Byteflux 5569e5076a Add /f seechunk command for visualizing a chunk 2014-10-30 23:26:19 -04:00
eueln 7ada15992b Refactor scoreboard issue. Resolves issue #80. 2014-10-30 23:26:13 -04:00
eueln 25696f32aa Refactor scoreboard usage
In preparation for team colors, we need to unify scoreboard usage into a
single scoreboard per player.

Rather than creating a new scoreboard for each desired sidebar
objective, we provide an interface FSidebarProvider that allows
implementation-agnostic retrieval of the title and lines of the desired
sidebar, along with appropriate methods in the new implementation of
FScoreboard.

The new FScoreboard implementation manages the currently-visible
sidebar, with methods to set default (non-timed, with update interval)
and temporary (timed, no update interval) sidebars.

Temporary sidebars are replaced with the default sidebar upon
expiration.
2014-10-30 23:26:04 -04:00
drtshock bed6fe0741 Add faction announcements to send to all players and show to players when they login if they were not online when it was first sent as requested in issue #82. 2014-10-18 03:54:45 -05:00
drtshock e290ac0320 Add new permissions to plugin.yml and permission kits. Set scoreboards to enabled per player by default. 2014-10-16 13:35:21 -05:00
drtshock e20995464e Toggling of scoreboards now affects the default board. 2014-10-15 20:58:37 -05:00
drtshock 4f3310d88f Reload the config.yml on /f reload. 2014-10-15 15:45:20 -05:00
drtshock 2fc17c62b5 Properly persist scoreboard toggles. Fixes issue #61 2014-10-15 15:29:04 -05:00
blha303 9baf297ff7 Add /f status command, closes #70 2014-10-15 12:30:03 -05:00
drtshock a170a0f4ad /f showinvites for ability to see pending invites for current faction. Adds feature in ticket #76 2014-10-14 13:30:05 -05:00
drtshock 04fd18f17a Add tooltips and commands for f invite command as specified in issue #73. 2014-10-13 14:10:18 -05:00
Ihaveaporpoise 8e248c9ea7 Make reload command only call configuration file. Fixes issue #59 2014-10-05 00:28:00 -05:00
drtshock 0f88e8535d Limit length of f show messages. Fixes issue #44.
Clients could crash if the messages were too long so we'll limit it here. Thanks to @mccore for the method here.
2014-08-26 13:05:54 -05:00
drtshock ddf054330a First implementation of scoreboards.
Boards can be toggled with /f sb. Toggles are persistent in a yml file.
Also fix some small spelling and format things that were really bugging me.
2014-08-05 10:17:27 -05:00
drtshock 3298183fdf Add missing javadocs. 2014-07-09 14:01:53 -05:00
drtshock 7604b4455b Don't allow players to be kicked from wilderness faction for whatever reason. Somewhat fixes issue #29. 2014-07-09 13:38:19 -05:00
drtshock 8a6a97cc90 Reformat 2014-07-01 15:10:18 -05:00
drtshock 5066934a95 More reformatting 2014-07-01 14:52:40 -05:00
drtshock dc54f78cc1 Some reformat 2014-07-01 14:49:42 -05:00
drtshock a8e3b3c1e2 Add Metrics. Disable opting out because we want to know. Increment version to U0.1.1 2014-05-23 00:46:35 -05:00
drtshock 997d0c5a43 Offline players will not be null. This was interfering with faction invites for some reason. 2014-05-20 16:45:13 -05:00
drtshock 28afd6530c Fix f who issue with looking up offline players. Fixes issue #8 2014-05-19 13:03:26 -05:00
drtshock 5d50dc9971 Add this. 2014-05-19 11:45:45 -05:00
CoOwner/Developer for @ArkhamNetwork - Java, PHP, Redis, LAMP 1a9a2f65c0 Replace getName with hasPlayedBefore as offlineplayer will never be null. This fixes quite a few command bugs. 2014-05-16 17:48:59 +01:00
gravitylow 51ac5d2cb2 Update commands to search by UUID 2014-04-16 23:15:14 -04:00
gravitylow da16b662b4 Update faction storage to use UUID 2014-04-16 21:10:12 -04:00
gravitylow 91e7b1587f Update command player lookups, fixes #3 2014-04-16 18:35:36 -04:00
gravitylow e3c0f6376f More housekeeping 2014-04-15 13:42:09 -04:00
gravitylow 255549099f Store and lookup from UUID 2014-04-15 13:18:13 -04:00
drtshock a73f2b0174 Update to newer API. 2014-04-05 17:00:33 -05:00
drtshock c4f7d6b756 Remove spout features, add worldguard and worldedit. 2014-04-05 15:42:01 -05:00
drtshock d9b7cf7058 Remove spout, update pom for lwc. Still need lots of dependencies. 2014-04-04 14:35:35 -05:00
drtshock 814e439705 Reformat before I go crazy. 2014-04-04 13:55:21 -05:00