PC [Bukkit/Spigot] HardcorePlus plugin | Minecraft 1.14.1+

griimnak

You're a slave to the money then you die
Messages
899
Likes
736
#1


A Minecraft 1.14.1+ Bukkit/Spigot Plugin

Enhances the vanilla Minecraft hardcore experience by degrading players' max health on death.

On death, users wake up from their nightmare.
The only way to defeat the dream - visit the end.

That is the original concept of the end, after all..

Once a user has ran out of hearts, they are perma dead.

YouTube demonstration:


Permissions:
hardcoreplus.admin - This is only for admin command access

Commands:
/hardcoreplus setmax <player> <value> - Sets the max HP of target.
/harcoreplus enable - Not yet implemented
/hardcoreplus disable - Not yet implemented


Source: [ To view this link you must register here. ]
Releases: [ To view this link you must register here. ]
Post automatically merged:


Users can now restore their max hp by killing the ender dragon.

[May 15 2019]

  • Added blood effect on hit
  • Corrected creeper instakill bug
  • Added sound effect to death
  • Added admin permission
  • Started admin commands
[May 13 2019]
  • Changed health lost from 1 to 2 hearts.
  • Changed DeathEvent to EntityDamagedEvent
  • Death is no longer announced.
  • "Dream" effect created.

Permissions added:
hardcoreplus.admin

gives access to admin commands
/hardcoreplus setmax <player> <value>
/hardcoreplus enable
/hardcoreplus disable
Post automatically merged:

HardcorePlus 0.1.4
Bug fixes and minor tweaks
  • increased weakness after death to 3 minutes 30 sec
  • /hardcoreplus commands are accessible from server console now
  • if hardcore is not set in server.properties console will be notified

  • fixed bug with setmax command always settings to 10 hearts
  • fixed bug with fire and potion effects persisting after death
  • fixed bug with setmax command allowing use of negative numbers
  • fixed bug with setmax command allowing use of invalid numbers

Jar release available: [ To view this link you must register here. ]
Source available on [ To view this link you must register here. ]
Post automatically merged:

HardcorePlus 0.1.8

HardcorePlus 0.1.8 corrects some minor annoyances and finally introduces the configuration system.

Thank you to @LucasLogical for finding the following bugs.
  • Fixed bug with shields not working properly
  • Fixed bug with blood effect showing through shields

  • New command: /hardcoreplus reload - reloads the config.yml

  • Config system complete
  • Config options for toggling: bloodEffect, respawnSound, respawnEffect, respawnWeakness
  • Config option for toggling max hp restore by ender dragon kill
  • Config options for all ingame texts
  • Config option for enforcing hardcore mode upon server.

Default config:
Code:
healthLossText: You have permanently lost health.
bedRespawnText: You awake from your dream in confusion
noBedRespawnText: With no place of rest set, you awake from your dream, in familiar land.
permaDeathServerText: is permanently dead!
permaDeathPlayerText: You are permanently dead.
dragonKillText: The dream is over. Your mind clears, the portal opens.
maxHpRestoreText: Your max health has been restored.

bloodEffectEnabled: true
trippyEffectEnabled: true
trippySoundEnabled: true
weaknessOnRespawn: true

restoreHpOnDragonKill: true
enforceHardcoreMode: true
As always suggestions are welcome.

Jar release: [ To view this link you must register here. ]
Source: [ To view this link you must register here. ]
 
Last edited:

griimnak

You're a slave to the money then you die
Messages
899
Likes
736
#6
HardcorePlus 1.0.0
Jar release: [ To view this link you must register here. ]

Thanks to @Quackster for sharing his plugin sources and inspiring many changes in this plugin.
Thanks to OnyxianSoul (Spigot Community) for suggesting the rework of the hardcoreCheck() method.

The source is much neater, uses more OOP and is compartmentalized properly.
Read the new improved source: [ To view this link you must register here. ]
  • Plugin completely re written
  • Servers must now have hardcore enabled in server.properties.
  • Fixed bug with extra "invisible" health after max health is updated.
  • Source cleaned and using more oop, compartmentalized
  • Spigot api updated to spigot-api:1.14.1

  • Added option to temp ban on respawn/fake death.
  • Added option to permaban on real death/perma death.
  • Added option to announce respawn/fake death to server.
  • Added option to keep inventory respawn/fake death.
  • Added option to keep experience on respawn/fake death.

  • Added hardcoreplus.ban_exempt permission to allow players to ignore banondeath
  • Added /hardcoreplus disable command to disable plugin ingame.
  • Added stat tracking, so far only "total-perm-dead-players" is available.
  • Removed weakness on respawn/fake death

Please be sure to delete your old config
New config preview: (will be auto generated for you)
YAML:
BloodEffectEnabled: true # create blood when a player is hit
RespawnSoundEnabled: true # make eerie sound when player respawns/dies
RespawnEffectEnabled: true # give nausea to player on respawn/death

KeepInventoryEnabled: false # keep inventory?
KeepExperienceEnabled: false # keep experience?

LoseMaxHealthOnRespawnEnabled: true
LoseMaxHealthOnRespawnAmmount: 4.0 # 2.0 = 1 heart, 1.0 = half a heart
HealthLossText: "You have permanently lost health."

BanOnDeathEnabled: true # ban on respawn/death?
BanOnDeathHoursAmmount: 12 # hours
BanOnDeathText: "You Died!"

PermaBanOnFinalDeathEnabled: true # perma ban a player when they run out of max health?
PermaBanText: "Game over."

AnnounceDeathEnabled: true # announce when someone respawn/dies?
AnnounceDeathText: " died." # <player> died.

PermaDeathServerText: " is permanently dead"
PermaDeathPlayerText: "You are permanently dead."

DragonKillRestoresMaxHealthEnabled: true # restore max health to all players in The End when dragon dies
DragonKillText: "The dream is over. Your mind clears, the portal opens.."
MaxHealthRestoreText: "Your max health has been restored."

# If BanOnDeath is enabled there's no reason to config below
# Without BanOnDeath, these give the immersion that the player woke from a bad dream instead of dying
RespawnBedText: "You awake from your dream in confusion."
RespawnWildText: "With no place of rest set, you awake from your dream in familiar land."
Stability has been well tested on Minecraft 1.14.3, with Paper 1.14.3.

Ideas and suggestions are always welcome.
 

rcmrocks2

New Member
Messages
1
Likes
0
#7
Hey! im running into a issue on 1.14.2 where im trying to reset someones health with the command "/hardcoreplus setmax nymph1762 20" then i get a error "10.08 01:57:02 [Server] INFO Caused by: java.lang.IllegalArgumentException: Health must be between 0 and 16.0(20.0) " and the lower the max health the lower the error. aka i cant set someone max hp back up after its been lowered. love the plugin tho me and my friends are having alot of fun
 

Quackster

Conrad Alex
Messages
1,678
Likes
1,063
#8
Hey! im running into a issue on 1.14.2 where im trying to reset someones health with the command "/hardcoreplus setmax nymph1762 20" then i get a error "10.08 01:57:02 [Server] INFO Caused by: java.lang.IllegalArgumentException: Health must be between 0 and 16.0(20.0) " and the lower the max health the lower the error. aka i cant set someone max hp back up after its been lowered. love the plugin tho me and my friends are having alot of fun
From what I can see, you're trying to go further than what Minecraft allows, have you tried using "/hardcoreplus setmax nymph1762 16"?
 

griimnak

You're a slave to the money then you die
Messages
899
Likes
736
#9
Hey! im running into a issue on 1.14.2 where im trying to reset someones health with the command "/hardcoreplus setmax nymph1762 20" then i get a error "10.08 01:57:02 [Server] INFO Caused by: java.lang.IllegalArgumentException: Health must be between 0 and 16.0(20.0) " and the lower the max health the lower the error. aka i cant set someone max hp back up after its been lowered. love the plugin tho me and my friends are having alot of fun
From what I can see, you're trying to go further than what Minecraft allows, have you tried using "/hardcoreplus setmax nymph1762 16"?

Yeah this plugin needs some work again, I did receive a message by someone on Spigot forums so a fix is on the way.
Post automatically merged:

HardcorePlus 1.0.1

  • Fixed a suffucation bug when dying in a dimension other than the overworld.
  • Fixed an issue with /hardcoreplus command crashing when plugin is disabled.
  • Fixed a bug with /hardcoreplus setmax command.
  • Custom state management, since disabling the plugin was buggy.
  • Maxhealth is reset on final death, incase an admin wishes to unban the player.



Feel free to leave suggestions or bug reports here or [ To view this link you must register here. ]

Source: [ To view this link you must register here. ]
Release jar: [ To view this link you must register here. ]

NOTE: Delete your old config before using the new version.
 
Last edited:

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Top