Fixes errors when using hologram related admin commands

e.g. `/island admin sethologram bank`
This commit is contained in:
Christian Koop 2023-08-18 10:47:26 +02:00
parent 64c4affe3f
commit c9abab64d5
No known key found for this signature in database
GPG Key ID: 89A8181384E010A3
2 changed files with 2 additions and 2 deletions

View File

@ -76,7 +76,7 @@ public class RemoveHologramCommand extends SubCommand {
}
Bukkit.getServer().getScheduler().runTask(this.plugin, () -> {
HologramType hologramType1 = HologramType.valueOf(WordUtils.capitalize(args[0].toLowerCase()));
HologramType hologramType1 = HologramType.valueOf(args[0].toUpperCase());
Hologram hologram = hologramManager.getHologram(hologramType1);
if (hologram != null) {

View File

@ -55,7 +55,7 @@ public class SetHologramCommand extends SubCommand {
Bukkit.getServer().getScheduler().runTask(this.plugin, () -> {
HologramType hologramType1 = HologramType.valueOf(WordUtils.capitalize(args[0].toLowerCase()));
HologramType hologramType1 = HologramType.valueOf(args[0].toUpperCase());
Hologram hologram = hologramManager.getHologram(hologramType1);
if (hologram != null) {