mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2026-02-20 10:43:12 +01:00
Added checking to make sure that the next character after a ^ is color code.
This commit is contained in:
@@ -61,13 +61,12 @@ public class vminecraftCommands{
|
||||
if(vminecraftSettings.getInstance().cmdHeal())
|
||||
{
|
||||
//If a target wasn't specified, heal the user.
|
||||
if (args == null){
|
||||
if (player.getHealth() < 20){
|
||||
vminecraftChat.gmsg("Your health is restored");
|
||||
}
|
||||
if (args.length < 1){
|
||||
player.setHealth(20);
|
||||
player.sendMessage("Your health is restored");
|
||||
//If a target was specified, try to find them and then heal them
|
||||
//Otherwise report the error
|
||||
} else if (args != null){
|
||||
} else if (args.length > 0){
|
||||
Player playerTarget = etc.getServer().matchPlayer(args[0]);
|
||||
|
||||
if (playerTarget != null){
|
||||
|
||||
Reference in New Issue
Block a user