The Ultimate Factions Plugin!
This plugin will allow your players to purchase Factions Immunity. There is a GUI that you can open using /immunity. When you have Factions Immunity active, no TNT in your faction's territory will explode, same with creepers. In this GUI there are 3 options, one immunity is one hour that costs $750,000, 12 hours which costs $8,000,000 and 24 hours which costs $15,000,000. The prices are of course configurable in the config. To make sure that it's not too OP, there is a cooldown for the immunities. You can only use the 24 hours one every 7 days, the 12 hours one every 4 days and the one hour every 2 days. This plugin will also include an automatic broadcast function to broadcast as many messages as you wish.
- Allows players to protect their bases from TNT
- Fully configurable (messages & everything else)
- MySQL compatible
- Works with Essentials economy (depends on Vault)
- Ability to view other factions immunities
- Includes automatic broadcasts (not related to FImmunity)
- Comes with a messages.yml
- Source code for an extra $20 (PM ME)
- /immunity - Opens the immunity GUI
- /immunity list - Opens the immunity list GUI
The /immunity GUI when not purchased any immunity
The /immunity GUI when purchased a immunity
You can purchase this plugin here
Code:
MySQL:
Host: hostip
Port: '3306'
Database: databasename
User: user
Password: password
Announcements:
Interval: 300
Messages:
- '&8&l&m-----------------------------------%newline%&4&l» &e&lAnnouncements%newline%&8|
&eVote for incredible rewards and perks with &6&l/vote%newline%&8| &eCheck out
our forums at &dwww.rexraids.com &efor updates!%newline%&8| &ePurchase awesome
perks with &6&l/buy%newline%&8&l&m-----------------------------------'
- '&8&l&m-----------------------------------%newline%&4&l» &e&lAnnouncements%newline%&8|
&eUnlock amazing pets using &6&l/pets%newline%&8| &eCheck out our store at &dstore.rexraids.com%newline%&8|
&eBecome immune from TNT with &6&l/immunity%newline%&8&l&m----------------------------------- '
List:
Name: '&8&lActive Immunities'
Icon: WOOL
Lore:
- '&eTime Left&8: &6%timeleft%'
Enchanted: true
Enchantment: DAMAGE_ALL
Pane_Name: ''
Pane_Color: 15
Inventory:
Active:
Icon: GOLD_SWORD
Name: '&c&lActive'
Slot: 22
Lore:
- '&eTime left&8: &6%timeleft%'
Enchanted: true
Enchantment: DAMAGE_ALL
Name: '&8&lFaction Immunity'
Pane_Name: ''
Pane_Color: 15
Contents:
Number_Of_Items: 3
Items:
'1':
Name: '&c&l1 Hour Immunity'
Lore:
- '&ePrice&8: &6$750,000'
- '&eTime&8: &61 hour'
Price: 750000.0
Item: IRON_BLOCK
Enchanted: true
Enchantment: DAMAGE_ALL
Time: 72000
Slot: 20
'2':
Name: '&c&l12 Hour Immunity'
Lore:
- '&ePrice&8: &6$8,000,000'
- '&eTime&8: &612 hours'
Price: 8000000.0
Item: GOLD_BLOCK
Enchanted: true
Enchantment: DAMAGE_ALL
Time: 864000
Slot: 22
'3':
Name: '&c&l24 Hour Immunity'
Lore:
- '&ePrice&8: &6$15,000,000'
- '&eTime&8: &624 hours'
Price: 1.5E7
Item: DIAMOND_BLOCK
Enchanted: true
Enchantment: DAMAGE_ALL
Time: 1728000
Slot: 24
