mirror of
https://github.com/songoda/FabledSkyBlock.git
synced 2025-02-10 16:51:41 +01:00
Fixes errors when using hologram related admin commands
e.g. `/island admin sethologram bank`
This commit is contained in:
parent
64c4affe3f
commit
c9abab64d5
@ -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) {
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user