NathanCollaert / AugmentedHardcore

AugmentedHardcore is a plugin created for server owners who want to turn their server difficulty up a notch. AH allows for the admins to enable various hardcore enhancements listed down below. Each of these enhancements are incredibly detailed and fully configurable to your own need.
9 stars 12 forks source link

Lifeparts by Playtime doesnt work #11

Closed Scralar closed 3 years ago

Scralar commented 3 years ago

I have it set up in the config that a player is given a life part every 60 minutes, but no one on the server has lifeparts for some reason. Here is the config as i cant upload a yml:

############################################################

+------------------------------------------------------+

| Data |

+------------------------------------------------------+

############################################################

YAML or MySQL

StorageType: YAML

Only necessary if using MySQL

Connection: Hostname: localhost Port: '3306' Database: minecraft Username: root Password: root

############################################################

+------------------------------------------------------+

| Lives |

+------------------------------------------------------+

############################################################

Should the plugin use the lives system configured below?

UseLives: true

What should the maximum amount of lives a player can have be?

Minimum is 1.

MaxLives: 3

What amount of lives should players start with when first joining the server?

Minimum is 1.

LivesAtStart: 1

How many lives should a player start with when joining the server for the first time after a death ban?

Minimum is 1.

LivesAfterBan: 1

How many lives should a player lose on death?

Minimum is 1.

LivesLostPerDeath: 1

Should losing lives be disabled in any worlds?

DisableLosingLivesInWorlds: []

- world

- world_nether

- world_the_end

############################################################

+------------------------------------------------------+

| Life Parts |

+------------------------------------------------------+

############################################################

Should the plugin use the life parts system configured below?

Life parts can used to gain a full life when enough are collected.

UseLifeParts: true

What should the maximum amount of life parts a player can have be?

Life parts are not converted to lives when max lives is reached.

Minimum is 0. -1 is unlimited.

MaxLifeParts: 50

How many life parts does it take to get a full life?

Minimum is 1.

LifePartsPerLife: 10

What amount of life parts should players start with when first joining the server?

Minimum is 0.

LifePartsAtStart: 1

How many life parts should a player start with when joining the server for the first time after a death ban?

Minimum is 0, -1 to keep the current amount.

LifePartsAfterBan: 0

How many life parts should be lost on death?

Minimum is 0, -1 is all life parts.

LifePartsLostPerDeath: 0

How many life parts should be lost upon death ban?

Minimum is 0, -1 is all life parts.

LifePartsLostPerDeathBan: -1

Should players receive life parts when killing another entity?

LifePartsOnKill: true

How many life parts should a player receive when killing another entity?

Any living entity type can be added to the list followed by the amount of life parts it would give. (https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/entity/EntityType.html)

Any living entity type not listed will give 0 life parts.

Minimum is 0

LifePartsPerKill: PLAYER: 2 ZOMBIE: 0 SKELETON: 0 CREEPER: 0 COW: 0 PIG: 0 CHICKEN: 0

Should players receive life parts by playtime?

GetLifePartByPlaytime: true

How long should a player have to play in order to gain 1 life part?

In minutes, minimum is 1.

PlaytimePerLifePart: 60

Should getting parts of a life be disabled in any worlds?

DisableGainingLifePartsInWorlds: []

- world

- world_nether

- world_the_end

Should losing parts of a life be disabled in any worlds?

DisableLosingLifePartsInWorlds: []

- world

- world_nether

- world_the_end

############################################################

+------------------------------------------------------+

| Death Ban |

+------------------------------------------------------+

############################################################

Should the plugin use the death ban system configured below?

UseDeathBan: true

What ban times should these death causes have when a player reaches 0 lives?

Bantime: The ban time in minutes this damage cause will give the player.

Minimum is 0, -1 will ban permanently

DisplayMessages: A list of possible ban messages that can be used in the ban reason of a player.

These ban messages can use ALL placeholders available (if present in the ban cause) in the Ban section of the messages.yml config.

BanTimes:

Death caused by being in the area when a block explodes.

BLOCK_EXPLOSION: BanTime: 4320 DisplayMessages:

Which type of ban should LiteDeathBan enforce when death banning a player?

-> name/ip

BanType: name

What ban time type should be used for calculating the bantime?

Static: Above times will be used for bans.

BanCount: The amount of (times death banned * 35) will be used for determining the bantime.

Bantimes will increase the more death banned the player has been.

Above times will be used as maximum ban time.

Playtime: Playtime will be used for determining the bantime.

Bantimes will increase the more playtime the player has.

Above times will be used as maximum ban time.

Timesincelastdeath: Time since last death will be used for determining the bantime.

Bantimes will increase the longer the player stays alive.

Every death will reset the bantime back to 0, above times will be used as maximum ban time.

-> static/bancount/playtime/timesincelastdeath

BanTimeType: playtime

At what rate should the ban time by playtime grow?

Linear: a constant increase in bantime the more bancount/playtime/timesincelastdeath(P) you have (constant increase).

Function: [(P+MBT/60) OR MBT]. MBT -> max ban time

exponential: a proportional growth to the current bancount/playtime/timesincelastdeath(P) (slow increase at start, rapid increase at the middle/end).

Function: [(60*(P)^(P/MBT)) OR MBT]. MBT -> max ban time

-> linear/exponential

BanTimeByPlaytimeGrowthType: linear

Should players be banned if killed by themselves (excluding /kill)?

SelfHarmBan: true

Should a lightning strike at the players position on death ban?

LightningOnDeathBan: true

To what world spawn should a spectator banned player be teleported to after the ban ends and no bed spawn location was found?

SpectatorBanRespawnWorld: MainTHCWorld

Should any commands be executed on death ban?

Placeholders: %player%

CommandsOnDeathBan:

Should banning players be disabled in any worlds?

DisableBanInWorlds: []

- world

- world_nether

- world_the_end

############################################################

+------------------------------------------------------+

| Max Health |

+------------------------------------------------------+

############################################################

Should the plugin use the max health system configured below?

UseMaxHealth: false

What should the highest amount of half hearts be that a player is able to get?

In half hearts, minimum is 1 (Minecraft will not display health over 1024 but it's still there)

MaxHealth: 20

What should the lowest amount of half hearts be that a player is able to get?

In half hearts, minimum is 1 (Minecraft will not display health over 1024 but it's still there)

MinHealth: 6

How many half hearts should a player respawn with after a death ban?

In half hearts, minimum is 1, -1 to keep the current amount (Minecraft will not display health over 1024 but it's still there)

MaxHealthAfterBan: 20

With how many half hearts should the max health drop per death?

In half hearts, minimum is 0

MaxHealthDecreasePerDeath: 2

Should players be able to increase their max health by killing other entities?

MaxHealthIncreaseOnKill: true

How many max health should a player receive when killing another entity?

Any living entity type can be added to the list followed by the amount of max health it would give. (https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/entity/EntityType.html)

Any living entity type not listed will give 0 max health.

In half hearts, minimum is 0

MaxHealthIncreasePerKill: PLAYER: 2 ENDER_DRAGON: 2 ELDER_GUARDIAN: 2 PIGLIN_BRUTE: 1

Should players receive max health by playtime?

GetMaxHealthByPlaytime: false

How long should a player have to play in order to gain half a heart?

In minutes, minimum is 1.

PlaytimePerHalfHeart: 30

Should losing max health be disabled in any world?

DisableLosingMaxHealthInWorlds: []

- world

- world_nether

- world_the_end

Should gaining max health be disabled in any world?

DisableGainingMaxHealthInWorlds: []

- world

- world_nether

- world_the_end

############################################################

+------------------------------------------------------+

| Combat Tag |

+------------------------------------------------------+

############################################################

Should players die and be banned if they log out while in combat with another player?

PlayerCombatTag: true

Should players die and be banned if they log out while in combat with a monster?

MonsterCombatTag: true

Should players be able to combat tag themselves?

CombatTagSelf: false

How long should a player be combat tagged for?

In Seconds, minimum is 1.

CombatTagTime: 10

Should players tagged in combat be killed on kick?

CombatTagPlayerKickDeath: true

Should combat tagging be disabled in any worlds?

DisableCombatTagInWorlds: []

- world

- world_nether

- world_the_end

############################################################

+------------------------------------------------------+

| Reviving |

+------------------------------------------------------+

############################################################

Should players be able to give a lives of their own to someone else?

Players who were previously banned by the plugin will be unbanned if given a life.

UseRevive: true

How many lives should be lost when reviving another player?

Minimum is 1

LivesLostOnReviving: 1

How many lives should a player gain when revived?

Minimum is 1

LivesGainedOnRevive: 1

How much time should the revive option go on cooldown for after using it?

In minutes, minumum is 0.

TimeBetweenRevives: 2880

Should players be able to use the revive option directly on first join?

If false, players will be able to use revive after TimeBetweenRevives minutes.

ReviveOnFirstJoin: false

Should reviving be disabled in any worlds?

DisableReviveInWorlds: []

- world

- world_nether

- world_the_end

############################################################

+------------------------------------------------------+

| Miscellaneous |

+------------------------------------------------------+

############################################################

Setting this configuration to true will disable the following health regeneration:

- When a player regains health from eating consumables

- When a player is healed by a potion or spell

- When a player is healed over time by a potion or spell

DisableArtificialRegeneration: false

Should a lightning strike be spawned at the players position on death?

LightningOnDeath: false

Should any commands be executed on death?

Placeholders: %player%

CommandsOnDeath: []

- "minecraft:advancement revoke %player% everything"

Should the death screen be shown on death?

DeathScreen: false

############################################################

+------------------------------------------------------+

| GUIs |

+------------------------------------------------------+

############################################################

======================--- GENERAL ---======================

What should the filler item for GUI's look like?

FillerDisplay: Material: gray_stained_glass_pane Name: ' ' Lore: [] Amount: 1

What should the accent item for GUI's look like?

AccentDisplay: Material: light_blue_stained_glass_pane Name: ' ' Lore: [] Amount: 1

What should the loading item for GUI's look like?

LoadingDisplay: Material: orange_stained_glass_pane Name: '&eLoading, please wait..' Lore:

What should the not available item for GUI's look like?

NotAvailableDisplay: Material: red_stained_glass_pane Name: '&cThis item is currently not available.' Lore: [] Amount: 1

What should the next button for paged GUI's look like?

NextPageDisplay: Material: arrow

Placeholders: %current_page% - %total_pages% - %next_page%

Name: '&eNext Page &6&l>>' Lore: [] Amount: 1

What should the next button for paged GUI's look like?

PreviousPageDisplay: Material: arrow

Placeholders: %current_page% - %total_pages% - %previous_page%

Name: '&6&l<< &ePrevious Page' Lore: [] Amount: 1

What should the page information item for paged GUI's look like?

PageInformationDisplay: Material: paper

Placeholders: %current_page% - %total_pages%

Name: '&ePage &6%current_page% &eof &6%total_pages%' Lore: [] Amount: 1

What should the go back to previous GUI button look like?

PreviousGuiDisplay: Material: barrier Name: '&eGo back to the previous GUI' Lore: [] Amount: 1

===================--- CONFIRMATION ---====================

What should the confirmation button look like?

ConfirmationDisplay: Material: emerald_block Name: '&aConfirm' Lore:

What should the cancellation button look like?

CancellationDisplay: Material: barrier Name: '&cCancel' Lore:

=======================--- INFO ---========================

What should the lives and life parts item look like?

Placeholders: %lives_number% - %lives% - %life_parts_number% - %life_parts%

LivesAndLifePartsDisplay: Material: turtle_egg Name: '&6&lLives &eand &6&lLife Parts &einfo' Lore:

What should the max health item look like?

Placeholders: %max_health% - %min_health% - %current_max_health% - %time_till_next_max_health_long% - %time_till_next_max_health_short% - %time_till_next_max_health_digital%

MaxHealthDisplay: Material: gold_nugget Name: '&6&lMax Health &einfo' Lore:

What should the revive button look like?

ReviveDisplay: Material: totem_of_undying Name: '&eIs there someone you''d like to &6&lrevive&e?' Lore:

What should the revive on cooldown button look like?

Placeholders: %time_till_next_revive_long% - %time_till_next_revive_short% - %time_till_next_revive_digital%

ReviveOnCooldownDisplay: Material: orange_stained_glass_pane Name: '&eYour revive is still on cooldown' Lore:

What should the life part item look like?

Placeholders: %max_life_parts% - %life_parts_number% - %life_parts% - %time_till_next_life_part_long% - %time_till_next_life_part_short% - %time_till_next_life_part_digital%

LifePartDisplay: Material: iron_nugget Name: '&6&lLife Parts &einfo' Lore:

What should the previous bans button look like?

Placeholders: %total_death_bans%

PreviousBansDisplay: Material: skeleton_skull Name: '&6&lPrevious bans &e(&b%total_death_bans%&e)' Lore:

=======================--- BANS ---========================

What should the player data icon look like?

Placeholders:

%player% - %total_deaths% - %total_death_bans% - %last_ban_time_long% - %last_ban_time_short% - %last_ban_time_digital% -

%last_death_time_long% - %last_death_time_short% - %last_death_time_digital%

PlayerDisplay:

Will be overridden to player skull

Material: player_head Name: '&6&l%player%' Lore:

What should the server data icon look like?

Placeholders: %total_death_bans% - %total_ongoing_death_bans%

ServerDisplay: Material: nether_star Name: '&6&lOngoing death bans' Lore:

What should the ban items look like?

Placeholders:

%ban_number% - Number of the ban.

%ban_killer% - Killer that caused the ban.

%ban_in_combat_with% - In combat with while the ban happened.

%ban_damage_cause% - The raw damage cause that caused the ban E.g: block explosion.

%ban_damage_cause_random_message% - A random display message configured in config.yml of the damage cause that caused this ban.

%ban_damage_cause_type% - The damage cause type that caused the ban (block, entity, environment).

%ban_location% - The location of the player while being banned E.g: x:150, y:50, z:150 (world_name).

%ban_death_message% - The vanilla ban message shown to players E.g: player was shot by <player/mob>.

%ban_death_message_stripped% - The vanilla ban message shown to players without the player name E.g: was shot by <player/mob>.

%ban_time_long% - Ban time in long format E.g: 1 day, 20 hours, 30 minutes, 40 seconds.

%ban_time_short% - Ban time in short format E.g: 1 d, 20 h, 30 m, 40 s.

%ban_time_digital% - Ban time in digital format E.g: 1:20:30:40.

%ban_time_left_long% - Ban time left in long format E.g: 1 day, 20 hours, 30 minutes, 40 seconds.

%ban_time_left_short% - Ban time left in short format E.g: 1d, 20h, 30m, 40s.

%ban_time_left_digital% - Ban time left in digital format E.g: 1:20:30:40.

%ban_start_date_long% - Start date of ban of servers timezone in long format E.g: Saturday Jun 15, 2015 at 9:03:01 CEST.

%ban_start_date_medium% - Start date of ban of servers timezone in medium format E.g: Jun 15, 2015, 9:03 CEST.

%ban_start_date_short% - Start date of ban of servers timezone in short format E.g: 6/15/15, 9:03 CEST.

%ban_expiration_date_long% - Expiration date of ban of servers timezone in long format E.g: Saturday Jun 15, 2015 at 9:03:01 CEST.

%ban_expiration_date_medium% - Expiration date of ban of servers timezone in medium format E.g: Jun 15, 2015, 9:03 CEST.

%ban_expiration_date_short% - Expiration date of ban of servers timezone in short format E.g: 6/15/15, 9:03 CEST.

%ban_time_since_previous_death_ban_long% - Time since previous ban in long format E.g: 1 day, 20 hours, 30 minutes, 40 seconds.

%ban_time_since_previous_death_ban_short% - Time since previous ban in short format E.g: 1 d, 20 h, 30 m, 40 s.

%ban_time_since_previous_death_ban_digital% - Time since previous ban in digital format E.g: 1:20:30:40.

%ban_time_since_previous_death_long% - Time since previous death in long format E.g: 1 day, 20 hours, 30 minutes, 40 seconds.

%ban_time_since_previous_death_short% - Time since previous death in short format E.g: 1 d, 20 h, 30 m, 40 s.

%ban_time_since_previous_death_digital% - Time since previous death in digital format E.g: 1:20:30:40.

BanDisplay: Material: conduit Name: '&eBan &6#&l%ban_number% &e(&6%ban_start_date_short%&e)' Lore:

======================--- REVIVE ---=======================

What should the player info icon look like in the revive GUI?

Placeholders: %player% - %lives_number%

RevivingDisplay:

Will be overridden to the player head

Material: player_head Name: '&6&l%player%' Lore:

NathanCollaert commented 3 years ago

Hey there, this is indeed a known bug that I didn't have time to push to Spigot yet. Please use the following jar and try again! AugmentedHardcore-3.3.3-beta5.zip

Scralar commented 3 years ago

Thank you, the solution worked

On Wed, 28 Jul 2021, 11:05 Nathan, @.***> wrote:

Hey there, this is indeed a known bug that I didn't have time to push to Spigot yet. Please use the following jar and try again! AugmentedHardcore-3.3.3-beta5.zip https://github.com/NathanCollaert/AugmentedHardcore/files/6892140/AugmentedHardcore-3.3.3-beta5.zip

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/NathanCollaert/AugmentedHardcore/issues/11#issuecomment-888181981, or unsubscribe https://github.com/notifications/unsubscribe-auth/ASWQBW3JON2Z76UWTDO6OG3TZ7I5FANCNFSM5BEAAKBA .