1.1.4
This commit is contained in:
parent
bcfcc2e863
commit
dc75e49988
5
pom.xml
5
pom.xml
@ -6,7 +6,7 @@
|
||||
|
||||
<groupId>net.t2code</groupId>
|
||||
<artifactId>Alias</artifactId>
|
||||
<version>1.1.3</version>
|
||||
<version>1.1.4</version>
|
||||
<packaging>jar</packaging>
|
||||
|
||||
<name>T2C-Alias</name>
|
||||
@ -69,8 +69,7 @@
|
||||
<dependency>
|
||||
<groupId>net.t2code</groupId>
|
||||
<artifactId>T2CodeLib</artifactId>
|
||||
<version>DEV-13.0</version>
|
||||
<classifier>dev-5</classifier>
|
||||
<version>13.2</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>net.t2code</groupId>
|
||||
|
@ -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) {
|
||||
|
@ -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) {
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user