mirror of
https://github.com/Aust1n46/VentureChat.git
synced 2025-05-23 10:39:05 +00:00
Updated plugin to 1.14.4
This commit is contained in:
parent
12999289b3
commit
9c79065e04
@ -19,5 +19,6 @@
|
|||||||
<classpathentry kind="lib" path="C:/Users/Austin/Desktop/Mineverse Network/Servers/Hub/spigot-1.11.2-R0.1-SNAPSHOT.jar"/>
|
<classpathentry kind="lib" path="C:/Users/Austin/Desktop/Mineverse Network/Servers/Hub/spigot-1.11.2-R0.1-SNAPSHOT.jar"/>
|
||||||
<classpathentry kind="lib" path="C:/Users/Austin/Desktop/Mineverse Network/Servers/Hub/spigot-1.12.2.jar"/>
|
<classpathentry kind="lib" path="C:/Users/Austin/Desktop/Mineverse Network/Servers/Hub/spigot-1.12.2.jar"/>
|
||||||
<classpathentry kind="lib" path="C:/Users/Austin/Desktop/Mineverse Network/Servers/Hub/spigot-1.13.2.jar"/>
|
<classpathentry kind="lib" path="C:/Users/Austin/Desktop/Mineverse Network/Servers/Hub/spigot-1.13.2.jar"/>
|
||||||
|
<classpathentry kind="lib" path="C:/Users/Austin/Desktop/Mineverse Network/Servers/Hub/spigot-1.14.4.jar"/>
|
||||||
<classpathentry kind="output" path="bin"/>
|
<classpathentry kind="output" path="bin"/>
|
||||||
</classpath>
|
</classpath>
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
name: VentureChat
|
name: VentureChat
|
||||||
main: mineverse.Aust1n46.chat.bungee.MineverseChatBungee
|
main: mineverse.Aust1n46.chat.bungee.MineverseChatBungee
|
||||||
version: 2.15.1
|
version: 2.16.0
|
||||||
author: Aust1n46
|
author: Aust1n46
|
@ -582,14 +582,33 @@ public class MineverseChat extends JavaPlugin implements PluginMessageListener {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private static void splitComponents(List<Object> finalList, Object o, Class<?> c) throws Exception {
|
private static void splitComponents(List<Object> finalList, Object o, Class<?> c) throws Exception {
|
||||||
ArrayList<?> list = (ArrayList<?>) c.getMethod("a").invoke(o, new Object[0]);
|
if(plugin.getConfig().getString("loglevel", "info").equals("debug")) {
|
||||||
for(Object component : list) {
|
for(Method m : c.getMethods()) {
|
||||||
ArrayList<?> innerList = (ArrayList<?>) c.getMethod("a").invoke(component, new Object[0]);
|
System.out.println(m.getName());
|
||||||
if(innerList.size() > 0) {
|
|
||||||
splitComponents(finalList, component, c);
|
|
||||||
}
|
}
|
||||||
else {
|
}
|
||||||
finalList.add(component);
|
if(VersionHandler.is1_14_4()) {
|
||||||
|
ArrayList<?> list = (ArrayList<?>) c.getMethod("getSiblings").invoke(o, new Object[0]);
|
||||||
|
for(Object component : list) {
|
||||||
|
ArrayList<?> innerList = (ArrayList<?>) c.getMethod("getSiblings").invoke(component, new Object[0]);
|
||||||
|
if(innerList.size() > 0) {
|
||||||
|
splitComponents(finalList, component, c);
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
finalList.add(component);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
ArrayList<?> list = (ArrayList<?>) c.getMethod("a").invoke(o, new Object[0]);
|
||||||
|
for(Object component : list) {
|
||||||
|
ArrayList<?> innerList = (ArrayList<?>) c.getMethod("a").invoke(component, new Object[0]);
|
||||||
|
if(innerList.size() > 0) {
|
||||||
|
splitComponents(finalList, component, c);
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
finalList.add(component);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -144,10 +144,10 @@ public class ChatListener implements Listener {
|
|||||||
filtered = cc.FilterChat(event.getMessage());
|
filtered = cc.FilterChat(event.getMessage());
|
||||||
}
|
}
|
||||||
if(mcp.getPlayer().hasPermission("venturechat.color")) {
|
if(mcp.getPlayer().hasPermission("venturechat.color")) {
|
||||||
filtered = Format.FormatStringColor(filtered);
|
//filtered = Format.FormatStringColor(filtered);
|
||||||
}
|
}
|
||||||
if(mcp.getPlayer().hasPermission("venturechat.format")) {
|
if(mcp.getPlayer().hasPermission("venturechat.format")) {
|
||||||
filtered = Format.FormatString(filtered);
|
//filtered = Format.FormatString(filtered);
|
||||||
}
|
}
|
||||||
filtered = " " + filtered;
|
filtered = " " + filtered;
|
||||||
if(plugin.getConfig().getString("tellformatto").equalsIgnoreCase("Default")) {
|
if(plugin.getConfig().getString("tellformatto").equalsIgnoreCase("Default")) {
|
||||||
|
@ -73,6 +73,10 @@ public class VersionHandler {
|
|||||||
return Bukkit.getVersion().contains("1.14");
|
return Bukkit.getVersion().contains("1.14");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static boolean is1_14_4() {
|
||||||
|
return Bukkit.getVersion().contains("1.14.4");
|
||||||
|
}
|
||||||
|
|
||||||
public static boolean isCauldron() {
|
public static boolean isCauldron() {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
name: VentureChat
|
name: VentureChat
|
||||||
version: 2.15.1
|
version: 2.16.0
|
||||||
api-version: 1.13
|
api-version: 1.13
|
||||||
main: mineverse.Aust1n46.chat.MineverseChat
|
main: mineverse.Aust1n46.chat.MineverseChat
|
||||||
depend: [Vault, ProtocolLib, PlaceholderAPI]
|
depend: [Vault, ProtocolLib, PlaceholderAPI]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user