浏览代码

Put empty lines above a skill command to make it easier to distinguish from chat

nossr50 6 年之前
父节点
当前提交
6c0da22d5e
共有 1 个文件被更改,包括 6 次插入0 次删除
  1. 6 0
      src/main/java/com/gmail/nossr50/commands/skills/SkillCommand.java

+ 6 - 0
src/main/java/com/gmail/nossr50/commands/skills/SkillCommand.java

@@ -63,6 +63,12 @@ public abstract class SkillCommand implements TabExecutor {
                 boolean hasEndurance = (PerksUtils.handleActivationPerks(player, 0, 0) != 0);
                 float skillValue = mcMMOPlayer.getSkillLevel(skill);
 
+                //Send the players a few blank lines to make finding the top of the skill command easier
+                for(int i = 0; i < 20; i++)
+                {
+                    player.sendMessage("");
+                }
+
                 permissionsCheck(player);
                 dataCalculations(player, skillValue, isLucky);