Skip to content

Commit

Permalink
Add README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
EdouardCourty committed Dec 23, 2020
1 parent 0b604fe commit 7dbbca9
Show file tree
Hide file tree
Showing 2 changed files with 61 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,4 @@
/target/
/.idea/
/EasyHeal.iml
/release/
60 changes: 60 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
# EasyHeal

### Introduction

This plugin adds two commands to your server.
`/feed <player>` & `/heal <player>`
`/feed` and `/heal` can also be used to target yourself.

I wrote it for 1.16.4 and will update it for 1.17 when available.
I did not test it for previous verions, but it may work. I don't support it tho.

### Configuration

The configuration file is pretty straight-forward.

```yaml
# Don't change this.
version: 1

# Available permissions (Self-exlpanatory):
# - easyheal.heal.self
# - easyheal.heal.others
# - easyheal.feed.self
# - easyheal.heal.others
# - easyheal.cooldown.bypass

# If set to false, no permission will be needed and the command will be accessible to everyone.

need_permission_to_heal_self: true
need_permission_to_heal_others: true
need_permission_to_feed_self: true
need_permission_to_feed_others: true

# 1 = 1 half heart (20 = full-life)
heal_amount: 20
feed_amount: 20

# If true, the player gets his saturation to be set to max when being fed.
give_saturation: true
saturation_amount: 20

# Cooldowns for players who don't have the easyheal.cooldown.bypass permission
use_feed_cooldown: true
# Cooldown duration (in seconds)
feed_cooldown_duration: 30

use_heal_cooldown: true
heal_cooldown_duration: 30

# Placeholders:
# - %playerName% Player's minecraft username
messages:
no_permission: "§cYou cannot use this command."
heal_received: "§aYou have been healed."
heal_given: "§eYou healed %playerName%"
feed_received: "§aYou have been fed."
feed_given: "§eYou fed %playerName%"
cooldown_not_finished: "§cToo soon ! Wait for it."
player_not_found: "§cPlayer %playerName% not found"
```

0 comments on commit 7dbbca9

Please sign in to comment.