From dd0933c584a63b6b90dd7513a10aeb00b7b82d11 Mon Sep 17 00:00:00 2001 From: GJ Date: Sat, 2 Feb 2013 21:30:21 -0500 Subject: [PATCH] Edit /addlevels a bit, along with some command info in plugin.yml --- .../com/gmail/nossr50/commands/admin/AddlevelsCommand.java | 2 +- src/main/resources/plugin.yml | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/main/java/com/gmail/nossr50/commands/admin/AddlevelsCommand.java b/src/main/java/com/gmail/nossr50/commands/admin/AddlevelsCommand.java index 32d219497..75099fb58 100644 --- a/src/main/java/com/gmail/nossr50/commands/admin/AddlevelsCommand.java +++ b/src/main/java/com/gmail/nossr50/commands/admin/AddlevelsCommand.java @@ -87,7 +87,7 @@ public class AddlevelsCommand implements CommandExecutor{ profile.addLevels(skill, levels); - // TODO: Is it even possible for the player to be offline at this point? + // Check if the player is online before we try to send them a message. if (player.isOnline()) { if (skill.equals(SkillType.ALL)) { player.sendMessage(LocaleLoader.getString("Commands.addlevels.AwardAll.1", levels)); diff --git a/src/main/resources/plugin.yml b/src/main/resources/plugin.yml index 5afe2d21a..051ddbc65 100644 --- a/src/main/resources/plugin.yml +++ b/src/main/resources/plugin.yml @@ -42,7 +42,6 @@ commands: aliases: [] description: Show your individual ranking in mcMMO addxp: - aliases: [] description: Add mcMMO XP to a user addlevels: description: Add mcMMO levels to a user @@ -53,8 +52,7 @@ commands: aliases: [] description: Refresh all cooldowns for mcMMO mcgod: - aliases: [] - description: Make yourself invulnerable + description: Toggles mcMMO god-mode on/off mcstats: aliases: [/stats] description: Shows your mcMMO stats and xp