mirror of
https://github.com/essentials/Essentials.git
synced 2025-08-31 02:10:06 +02:00
Merge pull request #97 from JamieSinn/patch-1
Added the ability to stop fire with /heal
This commit is contained in:
@@ -26,6 +26,7 @@ public class Commandheal extends EssentialsCommand
|
|||||||
user.checkCooldown(TimestampType.LASTHEAL, ess.getRanks().getHealCooldown(user), true, Permissions.HEAL_COOLDOWN_BYPASS);
|
user.checkCooldown(TimestampType.LASTHEAL, ess.getRanks().getHealCooldown(user), true, Permissions.HEAL_COOLDOWN_BYPASS);
|
||||||
|
|
||||||
user.setHealth(20);
|
user.setHealth(20);
|
||||||
|
user.setFireTicks(0);
|
||||||
user.setFoodLevel(20);
|
user.setFoodLevel(20);
|
||||||
user.sendMessage(_("heal"));
|
user.sendMessage(_("heal"));
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user