diff --git a/pom.xml b/pom.xml
index 042c656..1e89fdc 100644
--- a/pom.xml
+++ b/pom.xml
@@ -6,7 +6,7 @@
net.t2code
Alias
- 1.0.6-Snapshot
+ 1.0.6-Snapshot-2
jar
T2C-Alias
@@ -56,16 +56,21 @@
- Builders-Paradise
- https://dojagames.net:8081/repository/Builders-Paradise/
+ T2Code
+ https://repo.t2code.net/repository/T2Code/
- T2Code
- https://dojagames.net:8081/repository/T2Code/
+ Builders-Paradise
+ https://repo.t2code.net/repository/Builders-Paradise/
+
+ net.t2code
+ T2CodeLib
+ 10.8
+
net.t2code
bungee
@@ -76,11 +81,6 @@
PlugmanGUI
3.0
-
- net.t2code
- T2CodeLib
- 7.4
-
net.t2code.minecraft.1_18.r1
spigot
diff --git a/src/main/java/net/t2code/alias/Spigot/system/BCommand_Sender_Reciver.java b/src/main/java/net/t2code/alias/Spigot/system/BCommand_Sender_Reciver.java
index ce4e405..1b62ab5 100644
--- a/src/main/java/net/t2code/alias/Spigot/system/BCommand_Sender_Reciver.java
+++ b/src/main/java/net/t2code/alias/Spigot/system/BCommand_Sender_Reciver.java
@@ -16,10 +16,10 @@ public class BCommand_Sender_Reciver {
ByteArrayOutputStream stream = new ByteArrayOutputStream();
DataOutputStream output = new DataOutputStream(stream);
try {
- if (console){
+ if (console) {
output.writeUTF("T2Code-Console");
} else {
- if (sender instanceof Player){
+ if (sender instanceof Player) {
output.writeUTF(sender.getName());
} else {
output.writeUTF("T2Code-Console");
@@ -29,7 +29,15 @@ public class BCommand_Sender_Reciver {
} catch (IOException e) {
e.printStackTrace();
}
- Bukkit.getServer().sendPluginMessage(Main.plugin, "t2codealias:bungee", stream.toByteArray());
+ if (sender instanceof Player) {
+ Player player = (Player) sender;
+ player.sendPluginMessage(Main.plugin, "t2codealias:bungee", stream.toByteArray());
+ }else {
+ for(Player player : Bukkit.getOnlinePlayers()){
+ player.sendPluginMessage(Main.plugin, "t2codealias:bungee", stream.toByteArray());
+ return;
+ }
+ }
}
}