feat: Remove Craftaro as an alias for the Songoda-Command

This commit is contained in:
Christian Koop 2024-03-26 20:55:10 +01:00
parent 69c4628c63
commit c68c419f4f
No known key found for this signature in database
GPG Key ID: 89A8181384E010A3
3 changed files with 2 additions and 9 deletions

View File

@ -10,9 +10,6 @@ import com.craftaro.core.dependency.Relocation;
import com.craftaro.core.hooks.HookRegistryManager;
import com.craftaro.core.locale.Locale;
import com.craftaro.core.utils.Metrics;
import com.craftaro.core.verification.CraftaroProductVerification;
import com.craftaro.core.verification.ProductVerificationStatus;
import com.cryptomorin.xseries.XMaterial;
import de.tr7zw.changeme.nbtapi.utils.MinecraftVersion;
import org.bukkit.Bukkit;
import org.bukkit.ChatColor;

View File

@ -372,10 +372,6 @@ public class CommandManager implements CommandExecutor, TabCompleter {
// Set tab complete
commandObject.setTabCompleter(tabManager);
if (command.equalsIgnoreCase("songoda")) {
commandObject.setAliases(Collections.singletonList("craftaro"));
}
// Register the command
Field fieldKnownCommands = SimpleCommandMap.class.getDeclaredField("knownCommands");
fieldKnownCommands.setAccessible(true);

View File

@ -1,7 +1,7 @@
package com.craftaro.core.core;
import com.craftaro.core.commands.AbstractCommand;
import com.craftaro.core.SongodaCore;
import com.craftaro.core.commands.AbstractCommand;
import com.craftaro.core.gui.GuiManager;
import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player;
@ -12,7 +12,7 @@ public class SongodaCoreCommand extends AbstractCommand {
protected GuiManager guiManager;
public SongodaCoreCommand() {
super(CommandType.CONSOLE_OK, "craftaro", "songoda");
super(CommandType.CONSOLE_OK, "songoda");
}
@Override