From 74ccc2383d69913dc83053c4a5231e8938c6047c Mon Sep 17 00:00:00 2001 From: yoyosource Date: Sat, 17 Apr 2021 16:42:05 +0200 Subject: [PATCH] Fix genericHelp in NightVisionCommand and SpeedCommand --- .../steamwar/bausystem/features/util/NightVisionCommand.java | 4 ++-- .../src/de/steamwar/bausystem/features/util/SpeedCommand.java | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/BauSystem_Main/src/de/steamwar/bausystem/features/util/NightVisionCommand.java b/BauSystem_Main/src/de/steamwar/bausystem/features/util/NightVisionCommand.java index fb531815..a9b842f3 100644 --- a/BauSystem_Main/src/de/steamwar/bausystem/features/util/NightVisionCommand.java +++ b/BauSystem_Main/src/de/steamwar/bausystem/features/util/NightVisionCommand.java @@ -30,12 +30,12 @@ import org.bukkit.potion.PotionEffectType; @Linked(LinkageType.COMMAND) public class NightVisionCommand extends SWCommand { - protected NightVisionCommand() { + public NightVisionCommand() { super("nightvision", "nv", "light"); } @Register(help = true) - public void genericHelp(Player p, String[] args) { + public void genericHelp(Player p, String... args) { p.sendMessage("§8/§enightvision §8- §7Schalte Nightvision an oder aus."); } diff --git a/BauSystem_Main/src/de/steamwar/bausystem/features/util/SpeedCommand.java b/BauSystem_Main/src/de/steamwar/bausystem/features/util/SpeedCommand.java index 7c2e42e6..e51009ca 100644 --- a/BauSystem_Main/src/de/steamwar/bausystem/features/util/SpeedCommand.java +++ b/BauSystem_Main/src/de/steamwar/bausystem/features/util/SpeedCommand.java @@ -33,7 +33,7 @@ public class SpeedCommand extends SWCommand { } @Register(help = true) - public void genericHelp(Player p, String[] args) { + public void genericHelp(Player p, String... args) { p.sendMessage("§8/§espeed §8[§e1§8-§e10§8] §8- §7Setzte deine Flug- und Laufgeschindigkeit."); p.sendMessage(BauSystem.PREFIX + "Aktuelle geschwindigkeit: §e" + p.getFlySpeed() * 10F); }