SetAmounts
SetAmounts
READ ME
-
I have used Java 7 for this project
-
I have uploaded v1.6.2.5 which is FULL of bug fixes! it is Here
Commands
/setfood <amount> [player] Aliases: /sf
/sethealth <amount> [player] Aliases: /sh
/setair <amount> [player] Aliases: /sa
/setmaxhealth <amount> [player] Aliases: /smh
/gethealth [player] Aliases: /gh
/getmaxhealth [player] Aliases: /gmh
/getfood [player] Aliases: /gf
/geteffects [player] Aliases: /gpe
[] are optional
<> are required
Installation
Just add this plugin to your plugin folder and you can use it after reloading your server.
Permissions
new as of 1.6.2.2
setamounts.sethealth:
description: Allow access to the /sethealth command
default: op
setamounts.setfood:
description: allow access to the /setfood command
default: op
setamounts.setair:
description: allow access to the /setair command
default: op
setamounts.setmaxhealth:
description: allow access to the /setmaxhealth command
default: op
setamounts.getmaxhealth:
description: allow access to the /getmaxhealth command
default: op
setamounts.gethealth:
description: allow access to the /gethealth command
default: op
setamounts.geteffects:
description: allow access to the /geteffects command
default: op
setamounts.getfood:
description: allow access to the /getfood command
default: op
ToDo/planned features
1) add console compatibility
Please post issues/requests in the comments!
-
View User Profile
-
Send Message
Posted Dec 29, 2013I've added a few things in preparation for an update.
Expect console support (and command blocks), setting a players fireticks (how many ticks they'll be on fire for) and getting fire ticks.
-
View User Profile
-
Send Message
Posted Aug 18, 2013By the way, if you're setting your own health you don't have to include a players name. Also you don't have to type the players full name.
-
View User Profile
-
Send Message
Posted Aug 18, 2013I know about this, it will be fixed in v1.6.2.4 which is a VERY big update.
It has shorthand commands (for setHealth it's /sh) and has /setmaxhealth , /getmaxhealth , /gethealth , /getpotioneffects .
-
View User Profile
-
Send Message
Posted Aug 11, 2013I completed that 12 hours ago and uploaded it twice but it doesn't seem to have worked.
As of the permissions, aren't they registered in the plugin.yml
-
View User Profile
-
Send Message
Posted Aug 10, 2013Do you need any help on the /setfood or the permissions?
Simple;
copy the same code as /sethealth, but rename the command's check statement to setfood, not sethealth. After that, go replace the player.setHealth(); with player.setFood(); for permissions, just wrap the command's inner code with this: