Project Abandoned
If you'd like to buy rights for the plugin (including selling rights without royalties), contact me through PM and we can discuss business there. Thanks.
Hospital
DeathBan your players into a hospital
Price: $5 USD
No vouch copies being given out
PM me if you would like to purchase
Hospital is a death ban plugin completely custom coded by me. On death (assuming the player does not have the bypass permission or is an OP), the player will be automatically locked in a hospital (specified by the configuration file coordinates) until their death ban has expired.
For this plugin to work effectively, you must have a spawnpoint (specified coordinates in the configuration file), as well as a enclosed building for a hospital (specified coordinates in the configuration) for players to be kept while death banned.
Features include:
- Death Bans
- Extremely configurable (almost every message)
- Lives system (reviving, giving, setting, etc)
- Check Death Ban command (shows information on where, and how a player died)
- Donor revive command (/drevive) with cooldown (configurable)
- Clickable signs to use lives (configurable)
- To use the sign: (make sure you have the permission hospital.placesign) Place a sign with the top line as "[Hospital]" and exit the sign. It will automatically create into a lives reviving sign.
Commands include:
/revive [player] - Revives and teleports a death banned player out of the hospital and to spawn. Typically used by staff members to remove unfair deaths
Permission: hospital.revive
/checkdeathban [player] - Shows information of a current death banned player
Permission:
hospital.checkdeathban
Aliases: /dbinfo [player]
/Drevive [player] - A donor command, allows a group with this permission (or cmd) to revive a player specified every X amount of time (specified in configuration)hospital.checkdeathban
Aliases: /dbinfo [player]
Permission: hospital.drevive
/lives - Base command for the lives system
/lives set [player] [amt] - Typically used by staff, sets a players lives to the specified amount
Other Permissions:Permission: hospital.setlives
/lives give [player] [amt] - Takes the sender's lives and gives that amount to the player specified in the command
Permission: No permission - Usage by defaults
/lives revive [name] - Uses 1 life from the sender and uses it to revive the provided playerPermission: No permission - Usage by defaults
/lives check [name] - Checks the amount of lives the specified player hasPermission: No permission - Usage by defaults
Death Ban Bypass: hospital.bypassban - Players with this permission will not be sent to the hospital on death
Screenshots of my plugin:
(Almost all of these messages can be configured)
Configuration File (default, can be configured and changed)
* Any other generated files (other than the config.yml) are data files that are not meant to be edited *
Code:
#Hospital Configuration File - Developed by DaCavE
#Location player will be teleported to on death
#CHANGE THESE TO YOUR HOSPITAL VALUES
Hospital:
World: 'world'
X: 20.5
Y: 74.0
Z: 20.5
Yaw: 0.0
Pitch: 0.0
#Spawn of your world (where player will be teleported once un-deathbanned
#CHANGE THESE TO YOUR SPAWN VALUES
Spawn:
World: 'world'
X: 0.5
Y: 74.0
Z: 0.5
Yaw: 0.0
Pitch: 0.0
#The death ban for players
BanLength: 10800 #in seconds
DenyMessage: '&7You cannot do this (&cdeathbanned for <hours> hours, <minutes> minutes, and <seconds> seconds&7)!'
YOU_ARE_BANNED: '&7You have been death-banned for &c<hours> hours, <minutes> minutes, and <seconds> seconds&7!'
Released: '&aYou have been released from the hospital!'
StaffDeath: '&cYou would of been deathbanned, but you have bypass permission.'
NoPerms: '&cYou do not have permission!'
#Commands players can use while they are death banned
AllowedCommands:
- '/msg'
- '/lives'
Player_Not_Joined: '&cThis player has never joined before!'
#Hospital sign messages
HospitalSign:
SUCCESS: '&aYou have successfully revived yourself with a life!'
NOT_BANNED: '&cYou are not death-banned! Why are you here...'
MORE_LIVES: '&cYou must have at least 1 life to execute this!'
#Command values and messages
Commands:
REVIVE:
ERROR: '&7Usage: (&c/revive (username)&7)'
SUCCESS: '&aYou have successfully revived <player>!'
YOU_REVIVE: '&aYou have been staff-revived by <staff>!'
NOPE: '&c<player> is not death-banned!'
CHECK_BAN:
ERROR: '&7Usage: (&c/checkdeathban (username)&7)'
NOPE: '&c<player> is not death-banned!'
INFO:
- '&8&m--------------------------------'
- '&4* &cName: &7<name>'
- '&4* &cDate: &7<date>'
- '&4* &cReason: &7<reason>'
- '&4* &cWorld: &7<world>'
- '&4* &cCoordinates: &7<x>, <y>, <z>'
- '&4* &cLeft: &7<hours> hrs, <minutes> mins, <seconds> secs'
- '&8&m--------------------------------'
LIVES:
INFO:
- '&8&m--------------------------------'
- '&4* &c/lives set &oname amount &7(staff cmd)'
- '&4* &c/lives give &oname amount'
- '&4* &c/lives revive &oname'
- '&4* &c/lives check &oname'
- '&7You currently have <lives> lives'
- '&8&m--------------------------------'
NOT_BANNED: '&c<player> is not death-banned!'
MORE_LIVES: '&cYou must have at least 1 life to execute this!'
SUCCESS: '&aYou have successfully revived <player>!'
YOU_REVIVED: '&aYou were revived by <player>!'
MUST_NUM: '&cYou must input an integer value'
LIVES_SET_SUCCESS: '&aYou have set <player>''s lives to <amount>!'
LIVES_GIVE_SUCCESS: '&aYou have transferred <amount> lives to <player>!'
LIVES_CHECK: '&a<player> has <amount> lives!'
DREVIVE:
COOLDOWN: 3600 # in seconds
ERROR: '&7Usage (&c/DRevive (username)&7)'
ON_COOLDOWN: '&cYou can''t use DRevive for <hours> hours, <minutes> minutes, <seconds> seconds'
SUCCESS: '&aYou have successfully revived <player>!'
NOPE: '&c<player> is not death-banned!'
YOU_REVIVE: '&aYou have been DRevived''d by <player>'
BROADCAST: '&c<player> used their &lDonor&c rank to revive <target>'
Signs:
Hospital:
line1: '&c&lHospital'
line2: '&f&m------------'
line3: '&oRight-Click'
line4: 'to use a life!'
When you download (or buy) this plugin, you agree to the following:
- You may not decompile this plugin or use the code in any way without direct permission from me
- You may not redistribute this plugin to anyone
- This plugin may be only used for your own server or network (the buyer)
- You may not share, leak, or claim the plugin as your own
- You must pay through Friends and Family on PayPal
Feel free to reply with any suggestions or bugs, thanks!
Project Abandoned
If you'd like to buy rights for the plugin (including selling rights without royalties), contact me through PM and we can discuss business there. Thanks.
If you'd like to buy rights for the plugin (including selling rights without royalties), contact me through PM and we can discuss business there. Thanks.
Last edited:
