Small Code Changes
This commit is contained in:
@@ -6,6 +6,7 @@ import net.t2code.alias.Spigot.config.config.SelectConfig;
|
||||
import net.t2code.alias.Spigot.config.languages.SelectMessages;
|
||||
import net.t2code.alias.Spigot.objects.Alias_Objekt;
|
||||
import net.t2code.alias.Spigot.system.*;
|
||||
import net.t2code.alias.Util;
|
||||
import net.t2code.lib.Spigot.Lib.commands.Cmd;
|
||||
import net.t2code.lib.Spigot.Lib.messages.TextBuilder;
|
||||
import net.t2code.lib.Spigot.Lib.messages.send;
|
||||
@@ -17,7 +18,7 @@ import org.bukkit.entity.Player;
|
||||
|
||||
public class RegisterCommands extends Command {
|
||||
private String alias;
|
||||
private String prefix = Main.prefix;
|
||||
private String prefix = Util.getPrefix();
|
||||
|
||||
public RegisterCommands(String alias) {
|
||||
super(alias);
|
||||
@@ -46,8 +47,8 @@ public class RegisterCommands extends Command {
|
||||
} else BCommand_Sender_Reciver.sendToBungee(player, cmd.replace("[player]", player.getName()), false);
|
||||
|
||||
} else {
|
||||
send.console(Main.prefix + " §4To use bungee commands, enable the Bungee option in the config.");
|
||||
send.player(player, Main.prefix + " §4To use bungee commands, enable the Bungee option in the config.");
|
||||
send.console(Util.getPrefix() + " §4To use bungee commands, enable the Bungee option in the config.");
|
||||
send.player(player, Util.getPrefix() + " §4To use bungee commands, enable the Bungee option in the config.");
|
||||
}
|
||||
} else {
|
||||
if (Alias.AdminCommandAsConsole) {
|
||||
@@ -101,8 +102,8 @@ public class RegisterCommands extends Command {
|
||||
} else BCommand_Sender_Reciver.sendToBungee(player, cmd.replace("[player]", player.getName()), false);
|
||||
|
||||
} else {
|
||||
send.console(Main.prefix + " §4To use bungee commands, enable the Bungee option in the config.");
|
||||
send.player(player, Main.prefix + " §4To use bungee commands, enable the Bungee option in the config.");
|
||||
send.console(Util.getPrefix() + " §4To use bungee commands, enable the Bungee option in the config.");
|
||||
send.player(player, Util.getPrefix() + " §4To use bungee commands, enable the Bungee option in the config.");
|
||||
}
|
||||
} else {
|
||||
if (Alias.CommandAsConsole) {
|
||||
@@ -144,8 +145,8 @@ public class RegisterCommands extends Command {
|
||||
if (SelectConfig.Bungee) {
|
||||
BCommand_Sender_Reciver.sendToBungee(sender, cmd.replace("[player]", sender.getName()), true);
|
||||
} else {
|
||||
send.console(Main.prefix + " §4To use bungee commands, enable the Bungee option in the config.");
|
||||
send.sender(sender, Main.prefix + " §4To use bungee commands, enable the Bungee option in the config.");
|
||||
send.console(Util.getPrefix() + " §4To use bungee commands, enable the Bungee option in the config.");
|
||||
send.sender(sender, Util.getPrefix() + " §4To use bungee commands, enable the Bungee option in the config.");
|
||||
}
|
||||
} else {
|
||||
Cmd.console(cmd.replace("[player]", sender.getName()));
|
||||
|
Reference in New Issue
Block a user