diff --git a/pom.xml b/pom.xml
index f5d9cfc..c859bde 100644
--- a/pom.xml
+++ b/pom.xml
@@ -6,7 +6,7 @@
net.t2code
Alias
- 1.1.3
+ 1.1.4
jar
T2C-Alias
@@ -69,8 +69,7 @@
net.t2code
T2CodeLib
- DEV-13.0
- dev-5
+ 13.2
net.t2code
diff --git a/src/main/java/net/t2code/alias/Spigot/config/alias/CreateExampleAliasConfig.java b/src/main/java/net/t2code/alias/Spigot/config/alias/CreateExampleAliasConfig.java
index 47fb078..0871657 100644
--- a/src/main/java/net/t2code/alias/Spigot/config/alias/CreateExampleAliasConfig.java
+++ b/src/main/java/net/t2code/alias/Spigot/config/alias/CreateExampleAliasConfig.java
@@ -34,10 +34,10 @@ public class CreateExampleAliasConfig {
T2Cconfig.set("Alias.Command.Enable", true, yamlConfiguration);
T2Cconfig.set("Alias.Command.CommandAsConsole", true, yamlConfiguration);
T2Cconfig.set("Alias.Command.BungeeCommand", false, yamlConfiguration);
- T2Cconfig.set("Alias.Command.Commands", Collections.singletonList("say hi"), yamlConfiguration);
+ T2Cconfig.set("Alias.Command.Commands", Arrays.asList("say hi"), yamlConfiguration);
T2Cconfig.set("Alias.Message.Enable", false, yamlConfiguration);
- T2Cconfig.set("Alias.Message.Messages", Collections.emptyList(), yamlConfiguration);
+ T2Cconfig.set("Alias.Message.Messages", Arrays.asList(), yamlConfiguration);
T2Cconfig.set("Alias.Admin.Enable", true, yamlConfiguration);
T2Cconfig.set("Alias.Admin.Permission", "t2code.alias.admin", yamlConfiguration);
@@ -48,14 +48,14 @@ public class CreateExampleAliasConfig {
T2Cconfig.set("Alias.Admin.Command.Commands", Collections.singletonList("say hi"), yamlConfiguration);
T2Cconfig.set("Alias.Admin.Message.Enable", false, yamlConfiguration);
- T2Cconfig.set("Alias.Admin.Message.Messages", Collections.emptyList(), yamlConfiguration);
+ T2Cconfig.set("Alias.Admin.Message.Messages", Arrays.asList(), yamlConfiguration);
T2Cconfig.set("Alias.Console.Enable", false, yamlConfiguration);
T2Cconfig.set("Alias.Console.Command.Enable", false, yamlConfiguration);
T2Cconfig.set("Alias.Console.Command.BungeeCommand", false, yamlConfiguration);
- T2Cconfig.set("Alias.Console.Command.Commands", Collections.emptyList(), yamlConfiguration);
+ T2Cconfig.set("Alias.Console.Command.Commands", Arrays.asList(), yamlConfiguration);
T2Cconfig.set("Alias.Console.Message.Enable", false, yamlConfiguration);
- T2Cconfig.set("Alias.Console.Message.Messages", Collections.emptyList(), yamlConfiguration);
+ T2Cconfig.set("Alias.Console.Message.Messages", Arrays.asList(), yamlConfiguration);
try {
yamlConfiguration.save(config);
} catch (IOException e) {
diff --git a/src/main/java/net/t2code/alias/Spigot/config/subAlias/CreateExampleSubAliasConfig.java b/src/main/java/net/t2code/alias/Spigot/config/subAlias/CreateExampleSubAliasConfig.java
index dd3e4ce..2422152 100644
--- a/src/main/java/net/t2code/alias/Spigot/config/subAlias/CreateExampleSubAliasConfig.java
+++ b/src/main/java/net/t2code/alias/Spigot/config/subAlias/CreateExampleSubAliasConfig.java
@@ -35,10 +35,10 @@ public class CreateExampleSubAliasConfig {
T2Cconfig.set("SubAlias.Command.Enable", true, yamlConfiguration);
T2Cconfig.set("SubAlias.Command.CommandAsConsole", true, yamlConfiguration);
T2Cconfig.set("SubAlias.Command.BungeeCommand", false, yamlConfiguration);
- T2Cconfig.set("SubAlias.Command.Commands", Collections.singletonList("say hi"), yamlConfiguration);
+ T2Cconfig.set("SubAlias.Command.Commands", Arrays.asList("say hi"), yamlConfiguration);
T2Cconfig.set("SubAlias.Message.Enable", false, yamlConfiguration);
- T2Cconfig.set("SubAlias.Message.Messages", Collections.emptyList(), yamlConfiguration);
+ T2Cconfig.set("SubAlias.Message.Messages",Arrays.asList(), yamlConfiguration);
T2Cconfig.set("SubAlias.Admin.Enable", true, yamlConfiguration);
T2Cconfig.set("SubAlias.Admin.Permission", "t2code.alias.admin", yamlConfiguration);
@@ -46,17 +46,17 @@ public class CreateExampleSubAliasConfig {
T2Cconfig.set("SubAlias.Admin.Command.Enable", true, yamlConfiguration);
T2Cconfig.set("SubAlias.Admin.Command.CommandAsConsole", true, yamlConfiguration);
T2Cconfig.set("SubAlias.Admin.Command.BungeeCommand", false, yamlConfiguration);
- T2Cconfig.set("SubAlias.Admin.Command.Commands", Collections.singletonList("say subalias hi"), yamlConfiguration);
+ T2Cconfig.set("SubAlias.Admin.Command.Commands", Arrays.asList("say subalias hi"), yamlConfiguration);
T2Cconfig.set("SubAlias.Admin.Message.Enable", false, yamlConfiguration);
- T2Cconfig.set("SubAlias.Admin.Message.Messages", Collections.emptyList(), yamlConfiguration);
+ T2Cconfig.set("SubAlias.Admin.Message.Messages",Arrays.asList(), yamlConfiguration);
T2Cconfig.set("SubAlias.Console.Enable", false, yamlConfiguration);
T2Cconfig.set("SubAlias.Console.Command.Enable", false, yamlConfiguration);
T2Cconfig.set("SubAlias.Console.Command.BungeeCommand", false, yamlConfiguration);
- T2Cconfig.set("SubAlias.Console.Command.Commands", Collections.emptyList(), yamlConfiguration);
+ T2Cconfig.set("SubAlias.Console.Command.Commands",Arrays.asList(), yamlConfiguration);
T2Cconfig.set("SubAlias.Console.Message.Enable", false, yamlConfiguration);
- T2Cconfig.set("SubAlias.Console.Message.Messages", Collections.emptyList(), yamlConfiguration);
+ T2Cconfig.set("SubAlias.Console.Message.Messages",Arrays.asList(), yamlConfiguration);
try {
yamlConfiguration.save(config);
} catch (IOException e) {
diff --git a/src/main/java/net/t2code/alias/Spigot/system/BCommandSenderReciver.java b/src/main/java/net/t2code/alias/Spigot/system/BCommandSenderReciver.java
index 1a96c1a..cb1d8e8 100644
--- a/src/main/java/net/t2code/alias/Spigot/system/BCommandSenderReciver.java
+++ b/src/main/java/net/t2code/alias/Spigot/system/BCommandSenderReciver.java
@@ -30,10 +30,10 @@ public class BCommandSenderReciver {
}
if (sender instanceof Player) {
Player player = (Player) sender;
- player.sendPluginMessage(Main.getPlugin(), "t2c:alias", stream.toByteArray());
+ player.sendPluginMessage(Main.getPlugin(), "t2c:bcmd", stream.toByteArray());
}else {
for(Player player : Bukkit.getOnlinePlayers()){
- player.sendPluginMessage(Main.getPlugin(), "t2c:alias", stream.toByteArray());
+ player.sendPluginMessage(Main.getPlugin(), "t2c:bcmd", stream.toByteArray());
return;
}
}
diff --git a/src/main/java/net/t2code/alias/Spigot/system/Load.java b/src/main/java/net/t2code/alias/Spigot/system/Load.java
index 8fae57c..b735679 100644
--- a/src/main/java/net/t2code/alias/Spigot/system/Load.java
+++ b/src/main/java/net/t2code/alias/Spigot/system/Load.java
@@ -70,8 +70,7 @@ public class Load {
}
if (SelectConfig.Bungee) {
- plugin.getServer().getMessenger().registerOutgoingPluginChannel(plugin, "BungeeCord");
- Bukkit.getMessenger().registerOutgoingPluginChannel(plugin, "t2codealias:bungee");
+ Bukkit.getMessenger().registerOutgoingPluginChannel(plugin, "t2c:bcmd");
}
AliasRegisterPermissions.onPermRegister();
}