Hospital - Death Bans [$5]

Status
This thread has been locked.

DaCavE

d e v
Supreme
Feedback score
13
Posts
134
Reactions
86
Resources
0
CpVR7Zt.png

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
tCOjVZC.png

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.

hMmu0qj.png

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.
WnK3ZYa.png

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)

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

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 player

Permission: No permission - Usage by defaults​
/lives check [name] - Checks the amount of lives the specified player has

Permission: No permission - Usage by defaults
Other Permissions:

Death Ban Bypass: hospital.bypassban - Players with this permission will not be sent to the hospital on death

vICS407.png

Screenshots of my plugin:
(Almost all of these messages can be configured)

e74b96a97bcda443de507bb1bdc6746b.png

2600b6f4f4d5c73922f5e827a04a69e4.png

9f3d2206cd9ac662ace9283f7fa2fcc4.png

4ecb9d1e5600718008e5f9863ca5725b.png

304de5011dda8b3ffe7339dbbe985fb2.png


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!'

2DuRsfV.png

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
If you would like to purchase this plugin (for $5), please contact me through PM. Thanks.

75ca6c66a8bd68e1b6cf74c835484414.png

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.
 
Last edited:
PebbleHost
High performance, consistent uptime and fast support. Minecraft hosting that just works.

DaCavE

d e v
Supreme
Feedback score
13
Posts
134
Reactions
86
Resources
0
is there an API for this ?
No, this is currently a stand-alone plugin. However, I am going to make this an API in the future, so people can add it into their cores etc.
 

Hunting_Potato

Developer
Deactivated
Feedback score
11
Posts
745
Reactions
425
Resources
0
Why not SQL?
 

Conflicted

drip or drown
Premium
Feedback score
12
Posts
273
Reactions
142
Resources
0
glws bud
 

DaCavE

d e v
Supreme
Feedback score
13
Posts
134
Reactions
86
Resources
0
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.
 
Status
This thread has been locked.
Top