Mango Revival
A light-weight and extremely configurable HCFactions plugin with claiming wands.
PLEASE DO NOT TRY AND REPORT BUGS IN THE REVIEW SECTION.
You can either join my discord server or create an issue on Github.
Note: I'm currently looking for ways to improve the plugin. If you have any suggestions, please let me know in my discord server.
Dependencies
Vault
Economy provider(Such as essentials)
Soft dependencies
Placeholder API
config.yml
Code (YAML):
# Mango-Revival configuration file
#
# You can edit here the basic things of Mango-Revival
# Please read everything CAREFULLY!
# You don't want to break anything, do you?
#
# The following section will contain all the configuration options for your scoreboard
Scoreboard
:
# The title of the scoreboard
Title
:
"&6Mango Revival&7(Map 1)"
# What will be displayed on scoreboard when a player does /f stuck
Faction-Stuck
:
"&cStuck Teleport &8»&7"
# What will be displayed on scoreboard when a player does /f home
Faction-Home
:
"&cHome Teleport &8»&7"
# Scoreboard lines, note that any countdown will be added just to the bottom of this list
# Note, these changes will not apply until the server is restarted
# If these placeholders are not working, make sure you have done the follow commands
# /papi ecloud download Player
# /papi ecloud download Server
# /papi reload
# The numbers in front have no particular meaning, the order the scoreboard follows is the
# order the lines are placed here into the config file
Lines:
1
: '&aPlayer name
:
%player_name%'
2
: '&aTPS
:
%server_tps%'
3
: '&aServer uptime
:
%server_uptime%'
4
: ' '
# What the root permission node will be for mango
# e.g. "mango" will make permissions look like "mango.setdtr"
Root-Permission-Node
:
"mango"
# The following section will contain all the configuration options for your faction values
Faction
:
# The amount of time for ally request to timeout in seconds
Ally-Request-Timeout
: 30
# The amount of time for a faction to regen 0.1 dtr in seconds
Dtr-Regen-Speed
: 60
# The maximum number of ally factions a faction can have
Max-Allies
: 1
# The amount of dtr a player will increase the dtr cap of a faction
Dtr-Per-Player
: 1.1
# The maximum dtr a faction can have
Max-Dtr
: 5.5
# The starting balance of a faction
Starting-Balance
: 0
# The maximum number of players a faction can have
Max-Players
: 30
# The maximum name length of a faction
Max-Name-Length
: 12
# The minimum name length of a faction
Min-Name-Length
: 3
# The dtr freeze duration in seconds
Freeze-Duration
: 3600
# The following section will contain all the configuration options for display colours in tab and chat
Colors
:
# Player in the faction is offline
Offline
:
"&c"
# Player in the faction is online
Online
:
"&a"
# Faction is raidable
Raidable:
Color
:
"&c"
Symbol
:
" &c"
# Faction is not raidable
Not-Raidable:
Color
:
"&a"
Symbol
:
"&a"
# Faction is on dtr regen
Regen:
Color
:
"&a"
Symbol
:
"&a"
# Faction is on dtr freeze
Frozen:
Color
:
"&e"
Symbol
:
"&e"
# The following section will contain all the configuration options for your teleportation timers
Teleport-Cooldown
:
# The amount of time in seconds for a player to teleport to faction home
# Note that the exact world names should be placed and there should always be a Default
# Set to -1 to disable faction home in that world
Home:
world
: 10
world_nether
: 25
world_the_end
: -1
Default
: 10
# The amount of time in seconds for a player to wait for faction stuck
Stuck
: 60
# The following section will contain all the configuration options for your chat
Chat-Prefix
:
# Should this feature be enabled or not
Enabled
: true
# The color of the prefix when the player is not in a faction
No-Faction
:
"&e[&c-&e] &r"
# The color of the prefix when the player is in the same faction
Friendly-Faction
:
"&e[&a{faction}&e]&r "
# The color of the prefix when the player is in an ally faction
Ally-Faction
:
"&e[&d{faction}&e] &r"
# The color of the prefix when the player is in an enemy faction
Enemy-Faction
:
"&e[&c{faction}&e] &r"
# What the name of wilderness should be
Wilderness:
Name
:
"&7Wilderness"
# The following section will contain all the configuration options for your claims
Claim
:
# The price of a claim would be the distance from one bottom corner,
# to the opposite top corner multiplied by this number
# The default value would make a 5 x 5 claim cost around $40
Price-Multiplier
: 7
# The amount of blocks from another faction's claim a player can claim
Buffer
: 10
# The side length of a claim a player is allowed to claim
Minimum-Size
: 5
# The worlds in which the claims are allowed without admin permissions
# Note that admins can claim in any world
Worlds
:
-
"world"
# The following section will contain all the configuration options for your wand
Claiming-Wand
:
# The item that will be used to claim land
Item
:
"GOLDEN_HOE"
# The name of the item that will be used to claim land
Name
:
"&aClaiming Wand"
# The lore of the item that will be used to claim land
Lore
:
-
"&7This is the claiming wand."
-
"&aLeft-click the ground&7 to set the first position."
-
"&aRight-click the ground&7 to set the second position."
-
"&aShift and left-click&7 to claim land after setting points."
-
"&aRight-click the air twice&7 to clear your selection."
# Hooks
# Note, these changes will not apply until the server is restarted
Hooks
:
# Should we use PlaceholderAPI
PlaceholderAPI
: true
Placeholders
%mango_faction_name% : returns player faction name
%mango_faction_name_<player>% : returns target's faction name
%mango_faction_dtr% : returns player faction dtr
%mango_faction_dtr_<player>% : returns target's faction dtr
%mango_faction_online% : returns player faction online member count
%mango_faction_online_<player>% : returns target's faction online member count
%mango_faction_playercount% : returns player faction member count
%mango_faction_playercount_<player>% : returns target's faction member count
%mango_timer_home% : returns the current faction home timer time
%mango_timer_home_<player>% : returns the current faction home timer time of target
%mango_timer_stuck% : returns the current faction stuck timer time
%mango_timer_stuck_<player>% : returns the current faction stuck timer time of target
%mango_energy%: returns the current player's class energy
%mango_energy_<player>%: returns the target player's class energy
Disclaimer
This project is a continuation of:
Mango.
This project uses the library
Glaedr.
An attempt was made to try and contact the authors, however no contact methods could be found.
If you are the creator of any of the two plugins above, please contact me via
discord.
Download milestones
50 - 30th Nov 2023
100 - 31st Dec 2023
150 - 8th Jan 2024
200 - 4th Mar 2024
250 - 15th Apr 2024
300 - 23rd May 2024
400 - 28th June 2024
500 - 30th July 2024