mirror of
https://github.com/Aust1n46/VentureChat.git
synced 2025-05-22 18:09:06 +00:00
Pushing 2.12.2 changes
This commit is contained in:
parent
d79bb350c3
commit
db901ffd6f
@ -8,11 +8,12 @@
|
||||
<classpathentry kind="lib" path="C:/Users/aust1/workspace/VentureChat Dependencies/Heroes.jar"/>
|
||||
<classpathentry kind="lib" path="C:/Users/aust1/workspace/VentureChat Dependencies/MassiveCore.jar"/>
|
||||
<classpathentry kind="lib" path="C:/Users/aust1/workspace/VentureChat Dependencies/PlaceholderAPI.jar"/>
|
||||
<classpathentry kind="lib" path="C:/Users/aust1/workspace/VentureChat Dependencies/ProtocolLib-3.5.0-SNAPSHOT.jar"/>
|
||||
<classpathentry kind="lib" path="C:/Users/aust1/workspace/VentureChat Dependencies/spigot-1.8.8.jar"/>
|
||||
<classpathentry kind="lib" path="C:/Users/aust1/workspace/VentureChat Dependencies/spigot-1.9.jar"/>
|
||||
<classpathentry kind="lib" path="C:/Users/aust1/workspace/VentureChat Dependencies/spigot-1.9-R0.1-SNAPSHOT.jar"/>
|
||||
<classpathentry kind="lib" path="C:/Users/aust1/workspace/VentureChat Dependencies/Towny.jar"/>
|
||||
<classpathentry kind="lib" path="C:/Users/aust1/workspace/VentureChat Dependencies/Vault.jar"/>
|
||||
<classpathentry kind="lib" path="C:/Users/aust1/Desktop/SSD Backup 12_28_17/Desktop/Mineverse Network/Servers/Hub/plugins/ProtocolLib.jar"/>
|
||||
<classpathentry kind="lib" path="C:/Users/aust1/Desktop/SSD Backup 12_28_17/Desktop/Mineverse Network/Servers/Hub/spigot-1.12.2.jar"/>
|
||||
<classpathentry kind="output" path=""/>
|
||||
</classpath>
|
||||
|
@ -1,4 +1,4 @@
|
||||
name: VentureChat
|
||||
main: mineverse.Aust1n46.chat.bungee.MineverseChatBungee
|
||||
version: 2.12.3
|
||||
version: 2.12.2
|
||||
author: Aust1n46
|
File diff suppressed because it is too large
Load Diff
@ -158,15 +158,15 @@ public class MineverseChatBungee extends Plugin implements Listener {
|
||||
String f = in.readUTF();
|
||||
String c = in.readUTF();
|
||||
String json = in.readUTF();
|
||||
out.writeUTF("Chat");
|
||||
out.writeUTF(chatchannel);
|
||||
out.writeUTF(message);
|
||||
out.writeUTF(playerName);
|
||||
out.writeUTF(lastMessage);
|
||||
out.writeUTF(f);
|
||||
out.writeUTF(c);
|
||||
out.writeUTF(json);
|
||||
for(String send : getProxy().getServers().keySet()) {
|
||||
out.writeUTF("Chat");
|
||||
out.writeUTF(chatchannel);
|
||||
out.writeUTF(message);
|
||||
out.writeUTF(playerName);
|
||||
out.writeUTF(lastMessage);
|
||||
out.writeUTF(f);
|
||||
out.writeUTF(c);
|
||||
out.writeUTF(json);
|
||||
if(getProxy().getServers().get(send).getPlayers().size() > 0) {
|
||||
getProxy().getServers().get(send).sendData("VentureChat", outstream.toByteArray());
|
||||
}
|
||||
@ -174,9 +174,9 @@ public class MineverseChatBungee extends Plugin implements Listener {
|
||||
}
|
||||
if(subchannel.equals("RemoveMessage")) {
|
||||
String hash = in.readUTF();
|
||||
out.writeUTF("RemoveMessage");
|
||||
out.writeUTF(hash);
|
||||
for(String send : getProxy().getServers().keySet()) {
|
||||
out.writeUTF("RemoveMessage");
|
||||
out.writeUTF(hash);
|
||||
if(getProxy().getServers().get(send).getPlayers().size() > 0) {
|
||||
getProxy().getServers().get(send).sendData("VentureChat", outstream.toByteArray());
|
||||
}
|
||||
|
@ -1,190 +1,194 @@
|
||||
package mineverse.Aust1n46.chat.command.chat;
|
||||
|
||||
import java.io.ByteArrayOutputStream;
|
||||
import java.io.DataOutputStream;
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import mineverse.Aust1n46.chat.ChatMessage;
|
||||
import mineverse.Aust1n46.chat.MineverseChat;
|
||||
import mineverse.Aust1n46.chat.api.MineverseChatPlayer;
|
||||
import mineverse.Aust1n46.chat.command.MineverseCommand;
|
||||
//import mineverse.Aust1n46.chat.json.JsonButton;
|
||||
import mineverse.Aust1n46.chat.utilities.Format;
|
||||
|
||||
import org.bukkit.ChatColor;
|
||||
import org.bukkit.command.CommandSender;
|
||||
import org.bukkit.entity.Player;
|
||||
import org.bukkit.scheduler.BukkitRunnable;
|
||||
|
||||
import com.comphenix.protocol.PacketType;
|
||||
import com.comphenix.protocol.events.PacketContainer;
|
||||
import com.comphenix.protocol.wrappers.EnumWrappers.ChatType;
|
||||
import com.comphenix.protocol.wrappers.WrappedChatComponent;
|
||||
|
||||
public class Removemessage extends MineverseCommand {
|
||||
private PacketContainer emptyLinePacketContainer = createPacketPlayOutChat(WrappedChatComponent.fromJson("{\"extra\":[\" \"],\"text\":\"\"}"));
|
||||
private MineverseChat plugin;
|
||||
private WrappedChatComponent messageDeletedComponentPlayer;
|
||||
|
||||
public Removemessage(String name) {
|
||||
super(name);
|
||||
this.plugin = MineverseChat.getInstance();
|
||||
}
|
||||
|
||||
@Override
|
||||
@SuppressWarnings({ "unchecked", "rawtypes" })
|
||||
public void execute(CommandSender sender, String command, String[] args) {
|
||||
if(args.length == 0) {
|
||||
sender.sendMessage(ChatColor.RED + "Invalid command: /removemessage [hashcode]");
|
||||
return;
|
||||
}
|
||||
final int hash;
|
||||
try {
|
||||
hash = Integer.parseInt(args[0]);
|
||||
}
|
||||
catch(Exception e) {
|
||||
sender.sendMessage(ChatColor.RED + "Invalid hashcode.");
|
||||
return;
|
||||
}
|
||||
if(args.length > 1 && Boolean.parseBoolean(args[1]) && sender instanceof Player) {
|
||||
ByteArrayOutputStream byteOutStream = new ByteArrayOutputStream();
|
||||
DataOutputStream out = new DataOutputStream(byteOutStream);
|
||||
try {
|
||||
out.writeUTF("RemoveMessage");
|
||||
out.writeUTF(String.valueOf(hash));
|
||||
((Player) sender).sendPluginMessage(plugin, "VentureChat", byteOutStream.toByteArray());
|
||||
out.close();
|
||||
}
|
||||
catch(Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
new BukkitRunnable() {
|
||||
public void run() {
|
||||
final Map<Player, List<PacketContainer>> packets = new HashMap();
|
||||
for(MineverseChatPlayer p : MineverseChat.onlinePlayers) {
|
||||
List<ChatMessage> messages = p.getMessages();
|
||||
List<PacketContainer> playerPackets = new ArrayList();
|
||||
boolean resend = false;
|
||||
for(int fill = 0; fill < 100 - messages.size(); fill++) {
|
||||
playerPackets.add(Removemessage.this.emptyLinePacketContainer);
|
||||
}
|
||||
for(ChatMessage message : messages) {
|
||||
if(message.getHash() == hash) {
|
||||
WrappedChatComponent removedComponent = p.getPlayer().hasPermission("venturechat.message.bypass") ? Removemessage.this.getMessageDeletedChatComponentAdmin(message) : Removemessage.this.getMessageDeletedChatComponentPlayer();
|
||||
message.setComponent(removedComponent);
|
||||
message.setHash(-1);
|
||||
playerPackets.add(Removemessage.this.createPacketPlayOutChat(removedComponent));
|
||||
resend = true;
|
||||
continue;
|
||||
}
|
||||
if(message.getMessage().contains(ChatColor.stripColor(Format.FormatStringAll(plugin.getConfig().getString("guiicon"))))) {
|
||||
String submessage = message.getMessage().substring(0, message.getMessage().length() - ChatColor.stripColor(Format.FormatStringAll(plugin.getConfig().getString("guiicon"))).length());
|
||||
if(submessage.hashCode() == hash) {
|
||||
WrappedChatComponent removedComponent = p.getPlayer().hasPermission("venturechat.message.bypass") ? Removemessage.this.getMessageDeletedChatComponentAdmin(message) : Removemessage.this.getMessageDeletedChatComponentPlayer();
|
||||
message.setComponent(removedComponent);
|
||||
message.setHash(-1);
|
||||
playerPackets.add(Removemessage.this.createPacketPlayOutChat(removedComponent));
|
||||
resend = true;
|
||||
continue;
|
||||
}
|
||||
}
|
||||
/*if(message.getMessage().contains(Format.FormatStringAll(plugin.getConfig().getString("messageremovericon")))) {
|
||||
String submessage = message.getMessage().substring(0, message.getMessage().length() - plugin.getConfig().getString("messageremovericon").length() - 1).replaceAll("(§([a-z0-9]))", "");
|
||||
if(submessage.hashCode() == hash) {
|
||||
WrappedChatComponent removedComponent = p.getPlayer().hasPermission("venturechat.message.bypass") ? Removemessage.this.getMessageDeletedChatComponentAdmin(message) : Removemessage.this.getMessageDeletedChatComponentPlayer();
|
||||
message.setComponent(removedComponent);
|
||||
message.setHash(-1);
|
||||
playerPackets.add(Removemessage.this.createPacketPlayOutChat(removedComponent));
|
||||
resend = true;
|
||||
continue;
|
||||
}
|
||||
int cut = 0;
|
||||
for(JsonButton b : MineverseChat.jbInfo.getJsonButtons()) {
|
||||
if(b.hasPermission() && p.getPlayer().hasPermission(b.getPermission())) {
|
||||
cut += b.getIcon().length() - 1;
|
||||
}
|
||||
}
|
||||
submessage = submessage.substring(0, submessage.length() - cut).replaceAll("(§([a-z0-9]))", "");
|
||||
//System.out.println(submessage + " submess");
|
||||
if(submessage.hashCode() == hash) {
|
||||
WrappedChatComponent removedComponent = p.getPlayer().hasPermission("venturechat.message.bypass") ? Removemessage.this.getMessageDeletedChatComponentAdmin(message) : Removemessage.this.getMessageDeletedChatComponentPlayer();
|
||||
message.setComponent(removedComponent);
|
||||
message.setHash(-1);
|
||||
playerPackets.add(Removemessage.this.createPacketPlayOutChat(removedComponent));
|
||||
resend = true;
|
||||
continue;
|
||||
}
|
||||
}
|
||||
int cut = 0;
|
||||
for(JsonButton b : MineverseChat.jbInfo.getJsonButtons()) {
|
||||
if(b.hasPermission() && p.getPlayer().hasPermission(b.getPermission()) && message.getMessage().contains(b.getIcon())) {
|
||||
cut += b.getIcon().length() - 1;
|
||||
}
|
||||
}
|
||||
String submessage = message.getMessage().replaceAll("(§([a-z0-9]))", "");
|
||||
//System.out.println(submessage + " " + submessage.length());
|
||||
submessage = submessage.substring(0, submessage.length() - cut);
|
||||
//System.out.println(submessage);
|
||||
if(submessage.hashCode() == hash) {
|
||||
WrappedChatComponent removedComponent = p.getPlayer().hasPermission("venturechat.message.bypass") ? Removemessage.this.getMessageDeletedChatComponentAdmin(message) : Removemessage.this.getMessageDeletedChatComponentPlayer();
|
||||
message.setComponent(removedComponent);
|
||||
message.setHash(-1);
|
||||
playerPackets.add(Removemessage.this.createPacketPlayOutChat(removedComponent));
|
||||
resend = true;
|
||||
continue;
|
||||
}*/
|
||||
playerPackets.add(Removemessage.this.createPacketPlayOutChat(message.getComponent()));
|
||||
}
|
||||
if(resend) {
|
||||
packets.put(p.getPlayer(), playerPackets);
|
||||
}
|
||||
}
|
||||
new BukkitRunnable() {
|
||||
public void run() {
|
||||
for(Player p : packets.keySet()) {
|
||||
List<PacketContainer> pPackets = packets.get(p);
|
||||
for(PacketContainer c : pPackets) {
|
||||
Removemessage.this.sendPacketPlayOutChat(p, c);
|
||||
}
|
||||
}
|
||||
}
|
||||
}.runTask(plugin);
|
||||
}
|
||||
}.runTaskAsynchronously(plugin);
|
||||
}
|
||||
|
||||
private PacketContainer createPacketPlayOutChat(WrappedChatComponent component) {
|
||||
PacketContainer container = new PacketContainer(PacketType.Play.Server.CHAT);
|
||||
container.getChatComponents().write(0, component);
|
||||
container.getChatTypes().write(0, ChatType.CHAT);
|
||||
return container;
|
||||
}
|
||||
|
||||
private void sendPacketPlayOutChat(Player player, PacketContainer packet) {
|
||||
try {
|
||||
plugin.protocolManager.sendServerPacket(player, packet);
|
||||
}
|
||||
catch(Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
|
||||
public WrappedChatComponent getMessageDeletedChatComponentPlayer() {
|
||||
if(this.messageDeletedComponentPlayer == null) {
|
||||
this.messageDeletedComponentPlayer = WrappedChatComponent.fromJson("{\"text\":\"\",\"extra\":[{\"text\":\"<message removed>\",\"color\":\"red\",\"italic\":\"true\",\"hoverEvent\":{\"action\":\"show_text\",\"value\":{\"text\":\"\",\"extra\":[{\"text\":\"" + Format.FormatStringAll(plugin.getConfig().getString("messageremoverpermissions")) + "\"}]}}}]}");
|
||||
}
|
||||
return this.messageDeletedComponentPlayer;
|
||||
}
|
||||
|
||||
public WrappedChatComponent getMessageDeletedChatComponentAdmin(ChatMessage message) {
|
||||
String oMessage = message.getOriginalComponent().getJson().substring(1, message.getOriginalComponent().getJson().length() - 11);
|
||||
if(message.getMessage().contains(ChatColor.stripColor(Format.FormatStringAll(plugin.getConfig().getString("guiicon"))))) {
|
||||
oMessage = oMessage.substring(0, oMessage.length() - ChatColor.stripColor(Format.FormatStringAll(plugin.getConfig().getString("guiicon"))).length() - 3) + "\"}]";
|
||||
}
|
||||
return WrappedChatComponent.fromJson(Format.FormatStringAll("{\"text\":\"\",\"extra\":[{\"text\":\"&c&o<message removed>\",\"hoverEvent\":{\"action\":\"show_text\",\"value\":{\"text\":\"&7Message: \"," + oMessage + "}}}]}"));
|
||||
}
|
||||
package mineverse.Aust1n46.chat.command.chat;
|
||||
|
||||
import java.io.ByteArrayOutputStream;
|
||||
import java.io.DataOutputStream;
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import mineverse.Aust1n46.chat.ChatMessage;
|
||||
import mineverse.Aust1n46.chat.MineverseChat;
|
||||
import mineverse.Aust1n46.chat.api.MineverseChatPlayer;
|
||||
import mineverse.Aust1n46.chat.command.MineverseCommand;
|
||||
//import mineverse.Aust1n46.chat.json.JsonButton;
|
||||
import mineverse.Aust1n46.chat.utilities.Format;
|
||||
import mineverse.Aust1n46.chat.versions.VersionHandler;
|
||||
|
||||
import org.bukkit.ChatColor;
|
||||
import org.bukkit.command.CommandSender;
|
||||
import org.bukkit.entity.Player;
|
||||
import org.bukkit.scheduler.BukkitRunnable;
|
||||
|
||||
import com.comphenix.protocol.PacketType;
|
||||
import com.comphenix.protocol.events.PacketContainer;
|
||||
import com.comphenix.protocol.wrappers.EnumWrappers.ChatType;
|
||||
import com.comphenix.protocol.wrappers.WrappedChatComponent;
|
||||
|
||||
public class Removemessage extends MineverseCommand {
|
||||
private PacketContainer emptyLinePacketContainer = createPacketPlayOutChat(WrappedChatComponent.fromJson("{\"extra\":[\" \"],\"text\":\"\"}"));
|
||||
private MineverseChat plugin;
|
||||
private WrappedChatComponent messageDeletedComponentPlayer;
|
||||
|
||||
public Removemessage(String name) {
|
||||
super(name);
|
||||
this.plugin = MineverseChat.getInstance();
|
||||
}
|
||||
|
||||
@Override
|
||||
@SuppressWarnings({ "unchecked", "rawtypes" })
|
||||
public void execute(CommandSender sender, String command, String[] args) {
|
||||
if(args.length == 0) {
|
||||
sender.sendMessage(ChatColor.RED + "Invalid command: /removemessage [hashcode]");
|
||||
return;
|
||||
}
|
||||
final int hash;
|
||||
try {
|
||||
hash = Integer.parseInt(args[0]);
|
||||
}
|
||||
catch(Exception e) {
|
||||
sender.sendMessage(ChatColor.RED + "Invalid hashcode.");
|
||||
return;
|
||||
}
|
||||
if(args.length > 1 && Boolean.parseBoolean(args[1]) && sender instanceof Player) {
|
||||
ByteArrayOutputStream byteOutStream = new ByteArrayOutputStream();
|
||||
DataOutputStream out = new DataOutputStream(byteOutStream);
|
||||
try {
|
||||
out.writeUTF("RemoveMessage");
|
||||
out.writeUTF(String.valueOf(hash));
|
||||
((Player) sender).sendPluginMessage(plugin, "VentureChat", byteOutStream.toByteArray());
|
||||
out.close();
|
||||
}
|
||||
catch(Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
return;
|
||||
}
|
||||
new BukkitRunnable() {
|
||||
public void run() {
|
||||
final Map<Player, List<PacketContainer>> packets = new HashMap();
|
||||
for(MineverseChatPlayer p : MineverseChat.onlinePlayers) {
|
||||
List<ChatMessage> messages = p.getMessages();
|
||||
List<PacketContainer> playerPackets = new ArrayList();
|
||||
boolean resend = false;
|
||||
for(int fill = 0; fill < 100 - messages.size(); fill++) {
|
||||
playerPackets.add(Removemessage.this.emptyLinePacketContainer);
|
||||
}
|
||||
for(ChatMessage message : messages) {
|
||||
if(message.getHash() == hash) {
|
||||
WrappedChatComponent removedComponent = p.getPlayer().hasPermission("venturechat.message.bypass") ? Removemessage.this.getMessageDeletedChatComponentAdmin(message) : Removemessage.this.getMessageDeletedChatComponentPlayer();
|
||||
message.setComponent(removedComponent);
|
||||
message.setHash(-1);
|
||||
playerPackets.add(Removemessage.this.createPacketPlayOutChat(removedComponent));
|
||||
resend = true;
|
||||
continue;
|
||||
}
|
||||
if(message.getMessage().contains(ChatColor.stripColor(Format.FormatStringAll(plugin.getConfig().getString("guiicon"))))) {
|
||||
String submessage = message.getMessage().substring(0, message.getMessage().length() - ChatColor.stripColor(Format.FormatStringAll(plugin.getConfig().getString("guiicon"))).length());
|
||||
if(submessage.hashCode() == hash) {
|
||||
WrappedChatComponent removedComponent = p.getPlayer().hasPermission("venturechat.message.bypass") ? Removemessage.this.getMessageDeletedChatComponentAdmin(message) : Removemessage.this.getMessageDeletedChatComponentPlayer();
|
||||
message.setComponent(removedComponent);
|
||||
message.setHash(-1);
|
||||
playerPackets.add(Removemessage.this.createPacketPlayOutChat(removedComponent));
|
||||
resend = true;
|
||||
continue;
|
||||
}
|
||||
}
|
||||
/*if(message.getMessage().contains(Format.FormatStringAll(plugin.getConfig().getString("messageremovericon")))) {
|
||||
String submessage = message.getMessage().substring(0, message.getMessage().length() - plugin.getConfig().getString("messageremovericon").length() - 1).replaceAll("(§([a-z0-9]))", "");
|
||||
if(submessage.hashCode() == hash) {
|
||||
WrappedChatComponent removedComponent = p.getPlayer().hasPermission("venturechat.message.bypass") ? Removemessage.this.getMessageDeletedChatComponentAdmin(message) : Removemessage.this.getMessageDeletedChatComponentPlayer();
|
||||
message.setComponent(removedComponent);
|
||||
message.setHash(-1);
|
||||
playerPackets.add(Removemessage.this.createPacketPlayOutChat(removedComponent));
|
||||
resend = true;
|
||||
continue;
|
||||
}
|
||||
int cut = 0;
|
||||
for(JsonButton b : MineverseChat.jbInfo.getJsonButtons()) {
|
||||
if(b.hasPermission() && p.getPlayer().hasPermission(b.getPermission())) {
|
||||
cut += b.getIcon().length() - 1;
|
||||
}
|
||||
}
|
||||
submessage = submessage.substring(0, submessage.length() - cut).replaceAll("(§([a-z0-9]))", "");
|
||||
//System.out.println(submessage + " submess");
|
||||
if(submessage.hashCode() == hash) {
|
||||
WrappedChatComponent removedComponent = p.getPlayer().hasPermission("venturechat.message.bypass") ? Removemessage.this.getMessageDeletedChatComponentAdmin(message) : Removemessage.this.getMessageDeletedChatComponentPlayer();
|
||||
message.setComponent(removedComponent);
|
||||
message.setHash(-1);
|
||||
playerPackets.add(Removemessage.this.createPacketPlayOutChat(removedComponent));
|
||||
resend = true;
|
||||
continue;
|
||||
}
|
||||
}
|
||||
int cut = 0;
|
||||
for(JsonButton b : MineverseChat.jbInfo.getJsonButtons()) {
|
||||
if(b.hasPermission() && p.getPlayer().hasPermission(b.getPermission()) && message.getMessage().contains(b.getIcon())) {
|
||||
cut += b.getIcon().length() - 1;
|
||||
}
|
||||
}
|
||||
String submessage = message.getMessage().replaceAll("(§([a-z0-9]))", "");
|
||||
//System.out.println(submessage + " " + submessage.length());
|
||||
submessage = submessage.substring(0, submessage.length() - cut);
|
||||
//System.out.println(submessage);
|
||||
if(submessage.hashCode() == hash) {
|
||||
WrappedChatComponent removedComponent = p.getPlayer().hasPermission("venturechat.message.bypass") ? Removemessage.this.getMessageDeletedChatComponentAdmin(message) : Removemessage.this.getMessageDeletedChatComponentPlayer();
|
||||
message.setComponent(removedComponent);
|
||||
message.setHash(-1);
|
||||
playerPackets.add(Removemessage.this.createPacketPlayOutChat(removedComponent));
|
||||
resend = true;
|
||||
continue;
|
||||
}*/
|
||||
playerPackets.add(Removemessage.this.createPacketPlayOutChat(message.getComponent()));
|
||||
}
|
||||
if(resend) {
|
||||
packets.put(p.getPlayer(), playerPackets);
|
||||
}
|
||||
}
|
||||
new BukkitRunnable() {
|
||||
public void run() {
|
||||
for(Player p : packets.keySet()) {
|
||||
List<PacketContainer> pPackets = packets.get(p);
|
||||
for(PacketContainer c : pPackets) {
|
||||
Removemessage.this.sendPacketPlayOutChat(p, c);
|
||||
}
|
||||
}
|
||||
}
|
||||
}.runTask(plugin);
|
||||
}
|
||||
}.runTaskAsynchronously(plugin);
|
||||
}
|
||||
|
||||
private PacketContainer createPacketPlayOutChat(WrappedChatComponent component) {
|
||||
PacketContainer container = new PacketContainer(PacketType.Play.Server.CHAT);
|
||||
container.getChatComponents().write(0, component);
|
||||
if(!VersionHandler.is1_7_10() && !VersionHandler.is1_8() && !VersionHandler.is1_9() && !VersionHandler.is1_10() && !VersionHandler.is1_11()) {
|
||||
container.getChatTypes().write(0, ChatType.CHAT);
|
||||
}
|
||||
return container;
|
||||
}
|
||||
|
||||
private void sendPacketPlayOutChat(Player player, PacketContainer packet) {
|
||||
try {
|
||||
plugin.protocolManager.sendServerPacket(player, packet);
|
||||
}
|
||||
catch(Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
|
||||
public WrappedChatComponent getMessageDeletedChatComponentPlayer() {
|
||||
if(this.messageDeletedComponentPlayer == null) {
|
||||
this.messageDeletedComponentPlayer = WrappedChatComponent.fromJson("{\"text\":\"\",\"extra\":[{\"text\":\"<message removed>\",\"color\":\"red\",\"italic\":\"true\",\"hoverEvent\":{\"action\":\"show_text\",\"value\":{\"text\":\"\",\"extra\":[{\"text\":\"" + Format.FormatStringAll(plugin.getConfig().getString("messageremoverpermissions")) + "\"}]}}}]}");
|
||||
}
|
||||
return this.messageDeletedComponentPlayer;
|
||||
}
|
||||
|
||||
public WrappedChatComponent getMessageDeletedChatComponentAdmin(ChatMessage message) {
|
||||
String oMessage = message.getOriginalComponent().getJson().substring(1, message.getOriginalComponent().getJson().length() - 11);
|
||||
if(message.getMessage().contains(ChatColor.stripColor(Format.FormatStringAll(plugin.getConfig().getString("guiicon"))))) {
|
||||
oMessage = oMessage.substring(0, oMessage.length() - ChatColor.stripColor(Format.FormatStringAll(plugin.getConfig().getString("guiicon"))).length() - 3) + "\"}]";
|
||||
}
|
||||
return WrappedChatComponent.fromJson(Format.FormatStringAll("{\"text\":\"\",\"extra\":[{\"text\":\"&c&o<message removed>\",\"hoverEvent\":{\"action\":\"show_text\",\"value\":{\"text\":\"&7Message: \"," + oMessage + "}}}]}"));
|
||||
}
|
||||
}
|
@ -66,7 +66,7 @@ public class VentureChatGui extends MineverseCommand {
|
||||
Set<String> blockedCommands = new HashSet<String>();
|
||||
List<String> mail = new ArrayList<String>();
|
||||
String jsonFormat = "Default";
|
||||
target = new MineverseChatPlayer(uuid, name, current, ignores, listening, mutes, blockedCommands, mail, false, null, true, true, name, jsonFormat, false, false, false, true, true, true);
|
||||
target = new MineverseChatPlayer(uuid, name, current, ignores, listening, mutes, blockedCommands, mail, false, null, true, true, name, jsonFormat, false, false, false, true, true);
|
||||
MineverseChat.players.add(target);
|
||||
}
|
||||
if(MineverseChat.ccInfo.isChannel(args[1])) {
|
||||
|
@ -1,152 +1,152 @@
|
||||
package mineverse.Aust1n46.chat.listeners;
|
||||
|
||||
import java.util.Iterator;
|
||||
|
||||
import org.json.simple.JSONArray;
|
||||
import org.json.simple.JSONObject;
|
||||
import org.json.simple.JSONValue;
|
||||
|
||||
import mineverse.Aust1n46.chat.ChatMessage;
|
||||
import mineverse.Aust1n46.chat.MineverseChat;
|
||||
import mineverse.Aust1n46.chat.api.MineverseChatAPI;
|
||||
import mineverse.Aust1n46.chat.api.MineverseChatPlayer;
|
||||
import mineverse.Aust1n46.chat.utilities.Format;
|
||||
import mineverse.Aust1n46.chat.versions.VersionHandler;
|
||||
import net.md_5.bungee.api.chat.BaseComponent;
|
||||
import net.md_5.bungee.api.chat.TextComponent;
|
||||
import net.md_5.bungee.chat.ComponentSerializer;
|
||||
|
||||
import com.comphenix.protocol.PacketType;
|
||||
import com.comphenix.protocol.events.ListenerPriority;
|
||||
import com.comphenix.protocol.events.PacketAdapter;
|
||||
import com.comphenix.protocol.events.PacketEvent;
|
||||
import com.comphenix.protocol.reflect.StructureModifier;
|
||||
import com.comphenix.protocol.wrappers.WrappedChatComponent;
|
||||
|
||||
import me.clip.placeholderapi.PlaceholderAPI;
|
||||
|
||||
//This class listens for chat packets and intercepts them before they are sent to the Player.
|
||||
//The packets are modified to include advanced json formating and the message remover button if the
|
||||
//player has permission to remove messages.
|
||||
public class PacketListener extends PacketAdapter {
|
||||
public PacketListener(MineverseChat plugin) {
|
||||
super(plugin, ListenerPriority.MONITOR, new PacketType[] { PacketType.Play.Server.CHAT });
|
||||
this.plugin = plugin;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onPacketSending(PacketEvent event) {
|
||||
if(event.isCancelled() || event.getPacketType() != PacketType.Play.Server.CHAT) {
|
||||
return;
|
||||
}
|
||||
|
||||
StructureModifier<WrappedChatComponent> chatP = event.getPacket().getChatComponents();
|
||||
WrappedChatComponent c = chatP.read(0);
|
||||
if (c == null) {
|
||||
StructureModifier<BaseComponent[]> modifier = event.getPacket().getSpecificModifier(BaseComponent[].class);
|
||||
BaseComponent[] components = modifier.readSafely(0);
|
||||
if (components == null) {
|
||||
return;
|
||||
}
|
||||
String msg = ComponentSerializer.toString(components);
|
||||
if (msg == null) {
|
||||
return;
|
||||
}
|
||||
if (!PlaceholderAPI.getBracketPlaceholderPattern().matcher(msg).find()) {
|
||||
return;
|
||||
}
|
||||
msg = PlaceholderAPI.setBracketPlaceholders(event.getPlayer(), msg);
|
||||
modifier.write(0, ComponentSerializer.parse(msg));
|
||||
return;
|
||||
}
|
||||
String msg = c.getJson();
|
||||
if (msg == null) {
|
||||
return;
|
||||
}
|
||||
if (!PlaceholderAPI.getBracketPlaceholderPattern().matcher(msg).find()) {
|
||||
return;
|
||||
}
|
||||
msg = PlaceholderAPI.setBracketPlaceholders(event.getPlayer(), msg);
|
||||
chatP.write(0, WrappedChatComponent.fromJson(msg));
|
||||
|
||||
try {
|
||||
if(VersionHandler.is1_7_10() || VersionHandler.is1_7_9() || VersionHandler.is1_7_2()) {
|
||||
if((MineverseChat.posField != null) && !(((boolean) MineverseChat.posField.get(event.getPacket().getHandle())))) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
else if(VersionHandler.is1_8()) {
|
||||
if((MineverseChat.posField != null) && (((Byte) MineverseChat.posField.get(event.getPacket().getHandle())).intValue() > 1)) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
else if(VersionHandler.is1_9() || VersionHandler.is1_10() || VersionHandler.is1_11()){
|
||||
if((MineverseChat.posField != null) && (((Byte) MineverseChat.posField.get(event.getPacket().getHandle())).intValue() > 1)) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
else {
|
||||
if((MineverseChat.posField != null) && ((Object) MineverseChat.posField.get(event.getPacket().getHandle())) == MineverseChat.chatMessageType.getEnumConstants()[2]) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
catch(IllegalArgumentException | IllegalAccessException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
WrappedChatComponent chat = (WrappedChatComponent) event.getPacket().getChatComponents().read(0);
|
||||
WrappedChatComponent originalChat = (WrappedChatComponent) event.getPacket().getChatComponents().read(0);
|
||||
String message = null;
|
||||
int hash = -1;
|
||||
try {
|
||||
//System.out.println(chat.getJson());
|
||||
//message = TextComponent.toPlainText(new TextComponent(chat.getJson()));
|
||||
message = (String) MineverseChat.messageMethod.invoke(chat.getHandle(), new Object[0]);
|
||||
//System.out.println(MineverseChat.lastChatMessage.getMessage());
|
||||
hash = message != null ? message.hashCode() : -1;
|
||||
}
|
||||
catch(Exception ex) {
|
||||
message = TextComponent.toPlainText(new TextComponent(chat.getJson()));
|
||||
System.out.println(message);
|
||||
//ex.printStackTrace();
|
||||
}
|
||||
ChatMessage lastChatMessage = MineverseChat.lastChatMessage;
|
||||
MineverseChatPlayer mcp = MineverseChatAPI.getMineverseChatPlayer(event.getPlayer());
|
||||
if(lastChatMessage != null && lastChatMessage.getHash() == hash) {
|
||||
String json = MineverseChat.lastJson;
|
||||
/*if(mcp.getPlayer().hasPermission("venturechat.message.remove")) {
|
||||
json = json.substring(0, json.length() - 1);
|
||||
json += ",{\"text\":\" " + Format.FormatStringAll(plugin.getConfig().getString("messageremovericon")) + "\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/removemessage " + lastChatMessage.getHash() + " true" +"\"},\"hoverEvent\":{\"action\":\"show_text\",\"value\":{\"text\":\"" + Format.FormatStringAll(plugin.getConfig().getString("messageremovertext")) + "\"}}}]";
|
||||
}
|
||||
if(!mcp.getButtons()) {
|
||||
for(JsonButton j : MineverseChat.jbInfo.getJsonButtons()) {
|
||||
if(j.hasPermission() && mcp.getPlayer().hasPermission(j.getPermission())) {
|
||||
json = json.substring(0, json.length() - 1);
|
||||
json += ",{\"text\":\" " + Format.FormatStringAll(j.getIcon()) + "\",\"clickEvent\":{\"action\":\"" + j.getAction() + "\",\"value\":\"/" + j.getCommand().replace("{channel}", lastChatMessage.getChannel()).replace("{player}", lastChatMessage.getSender()) + "\"},\"hoverEvent\":{\"action\":\"show_text\",\"value\":{\"text\":\"" + Format.FormatStringAll(j.getText()) + "\"}}}]";
|
||||
}
|
||||
}
|
||||
}*/
|
||||
if(mcp.getPlayer().hasPermission("venturechat.gui")) {
|
||||
json = json.substring(0, json.length() - 1);
|
||||
json += "," + Format.convertToJsonColors(Format.FormatStringAll(plugin.getConfig().getString("guiicon")), ",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/vchatgui " + lastChatMessage.getSender() + " " + lastChatMessage.getChannel() + " " + lastChatMessage.getHash() +"\"},\"hoverEvent\":{\"action\":\"show_text\",\"value\":{\"text\":\"\",\"extra\":[" + Format.convertToJsonColors(Format.FormatStringAll(plugin.getConfig().getString("guitext"))) + "]}}") + "]}]";
|
||||
}
|
||||
//System.out.println(json);
|
||||
chat.setJson(json);
|
||||
event.getPacket().getChatComponents().write(0, chat);
|
||||
}
|
||||
if((message != null) && (chat.getHandle() != null) && mcp != null) {
|
||||
mcp.addMessage(new ChatMessage(originalChat, chat, lastChatMessage != null ? lastChatMessage.getSender() : null, message, hash));
|
||||
}
|
||||
}
|
||||
|
||||
@SuppressWarnings("unused")
|
||||
private String getMessage(String json) {
|
||||
JSONArray components = (JSONArray) ((JSONObject) JSONValue.parse(json)).get("extra");
|
||||
Iterator<?> iterator = components.iterator();
|
||||
StringBuilder builder = new StringBuilder();
|
||||
while(iterator.hasNext()) {
|
||||
builder.append(((JSONObject) iterator.next()).get("text").toString());
|
||||
}
|
||||
return builder.toString();
|
||||
}
|
||||
package mineverse.Aust1n46.chat.listeners;
|
||||
|
||||
import java.util.Iterator;
|
||||
|
||||
import org.json.simple.JSONArray;
|
||||
import org.json.simple.JSONObject;
|
||||
import org.json.simple.JSONValue;
|
||||
|
||||
import mineverse.Aust1n46.chat.ChatMessage;
|
||||
import mineverse.Aust1n46.chat.MineverseChat;
|
||||
import mineverse.Aust1n46.chat.api.MineverseChatAPI;
|
||||
import mineverse.Aust1n46.chat.api.MineverseChatPlayer;
|
||||
import mineverse.Aust1n46.chat.utilities.Format;
|
||||
import mineverse.Aust1n46.chat.versions.VersionHandler;
|
||||
import net.md_5.bungee.api.chat.BaseComponent;
|
||||
import net.md_5.bungee.api.chat.TextComponent;
|
||||
import net.md_5.bungee.chat.ComponentSerializer;
|
||||
|
||||
import com.comphenix.protocol.PacketType;
|
||||
import com.comphenix.protocol.events.ListenerPriority;
|
||||
import com.comphenix.protocol.events.PacketAdapter;
|
||||
import com.comphenix.protocol.events.PacketEvent;
|
||||
import com.comphenix.protocol.reflect.StructureModifier;
|
||||
import com.comphenix.protocol.wrappers.WrappedChatComponent;
|
||||
|
||||
import me.clip.placeholderapi.PlaceholderAPI;
|
||||
|
||||
//This class listens for chat packets and intercepts them before they are sent to the Player.
|
||||
//The packets are modified to include advanced json formating and the message remover button if the
|
||||
//player has permission to remove messages.
|
||||
public class PacketListener extends PacketAdapter {
|
||||
public PacketListener(MineverseChat plugin) {
|
||||
super(plugin, ListenerPriority.MONITOR, new PacketType[] { PacketType.Play.Server.CHAT });
|
||||
this.plugin = plugin;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onPacketSending(PacketEvent event) {
|
||||
if(event.isCancelled() || event.getPacketType() != PacketType.Play.Server.CHAT) {
|
||||
return;
|
||||
}
|
||||
|
||||
StructureModifier<WrappedChatComponent> chatP = event.getPacket().getChatComponents();
|
||||
WrappedChatComponent c = chatP.read(0);
|
||||
if (c == null) {
|
||||
StructureModifier<BaseComponent[]> modifier = event.getPacket().getSpecificModifier(BaseComponent[].class);
|
||||
BaseComponent[] components = modifier.readSafely(0);
|
||||
if (components == null) {
|
||||
return;
|
||||
}
|
||||
String msg = ComponentSerializer.toString(components);
|
||||
if (msg == null) {
|
||||
return;
|
||||
}
|
||||
if (!PlaceholderAPI.getBracketPlaceholderPattern().matcher(msg).find()) {
|
||||
return;
|
||||
}
|
||||
msg = PlaceholderAPI.setBracketPlaceholders(event.getPlayer(), msg);
|
||||
modifier.write(0, ComponentSerializer.parse(msg));
|
||||
return;
|
||||
}
|
||||
String msg = c.getJson();
|
||||
if (msg == null) {
|
||||
return;
|
||||
}
|
||||
if (!PlaceholderAPI.getBracketPlaceholderPattern().matcher(msg).find()) {
|
||||
return;
|
||||
}
|
||||
msg = PlaceholderAPI.setBracketPlaceholders(event.getPlayer(), msg);
|
||||
chatP.write(0, WrappedChatComponent.fromJson(msg));
|
||||
|
||||
try {
|
||||
if(VersionHandler.is1_7_10() || VersionHandler.is1_7_9() || VersionHandler.is1_7_2()) {
|
||||
if((MineverseChat.posField != null) && !(((boolean) MineverseChat.posField.get(event.getPacket().getHandle())))) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
else if(VersionHandler.is1_8()) {
|
||||
if((MineverseChat.posField != null) && (((Byte) MineverseChat.posField.get(event.getPacket().getHandle())).intValue() > 1)) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
else if(VersionHandler.is1_9() || VersionHandler.is1_10() || VersionHandler.is1_11()){
|
||||
if((MineverseChat.posField != null) && (((Byte) MineverseChat.posField.get(event.getPacket().getHandle())).intValue() > 1)) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
else {
|
||||
if((MineverseChat.posField != null) && ((Object) MineverseChat.posField.get(event.getPacket().getHandle())) == MineverseChat.chatMessageType.getEnumConstants()[2]) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
catch(IllegalArgumentException | IllegalAccessException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
WrappedChatComponent chat = (WrappedChatComponent) event.getPacket().getChatComponents().read(0);
|
||||
WrappedChatComponent originalChat = (WrappedChatComponent) event.getPacket().getChatComponents().read(0);
|
||||
String message = null;
|
||||
int hash = -1;
|
||||
try {
|
||||
//System.out.println(chat.getJson());
|
||||
//message = TextComponent.toPlainText(new TextComponent(chat.getJson()));
|
||||
message = (String) MineverseChat.messageMethod.invoke(chat.getHandle(), new Object[0]);
|
||||
//System.out.println(MineverseChat.lastChatMessage.getMessage());
|
||||
hash = message != null ? message.hashCode() : -1;
|
||||
}
|
||||
catch(Exception ex) {
|
||||
message = TextComponent.toPlainText(new TextComponent(chat.getJson()));
|
||||
System.out.println(message);
|
||||
//ex.printStackTrace();
|
||||
}
|
||||
ChatMessage lastChatMessage = MineverseChat.lastChatMessage;
|
||||
MineverseChatPlayer mcp = MineverseChatAPI.getMineverseChatPlayer(event.getPlayer());
|
||||
if(lastChatMessage != null && lastChatMessage.getHash() == hash) {
|
||||
String json = MineverseChat.lastJson;
|
||||
/*if(mcp.getPlayer().hasPermission("venturechat.message.remove")) {
|
||||
json = json.substring(0, json.length() - 1);
|
||||
json += ",{\"text\":\" " + Format.FormatStringAll(plugin.getConfig().getString("messageremovericon")) + "\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/removemessage " + lastChatMessage.getHash() + " true" +"\"},\"hoverEvent\":{\"action\":\"show_text\",\"value\":{\"text\":\"" + Format.FormatStringAll(plugin.getConfig().getString("messageremovertext")) + "\"}}}]";
|
||||
}
|
||||
if(!mcp.getButtons()) {
|
||||
for(JsonButton j : MineverseChat.jbInfo.getJsonButtons()) {
|
||||
if(j.hasPermission() && mcp.getPlayer().hasPermission(j.getPermission())) {
|
||||
json = json.substring(0, json.length() - 1);
|
||||
json += ",{\"text\":\" " + Format.FormatStringAll(j.getIcon()) + "\",\"clickEvent\":{\"action\":\"" + j.getAction() + "\",\"value\":\"/" + j.getCommand().replace("{channel}", lastChatMessage.getChannel()).replace("{player}", lastChatMessage.getSender()) + "\"},\"hoverEvent\":{\"action\":\"show_text\",\"value\":{\"text\":\"" + Format.FormatStringAll(j.getText()) + "\"}}}]";
|
||||
}
|
||||
}
|
||||
}*/
|
||||
if(mcp.getPlayer().hasPermission("venturechat.gui")) {
|
||||
json = json.substring(0, json.length() - 1);
|
||||
json += "," + Format.convertToJsonColors(Format.FormatStringAll(plugin.getConfig().getString("guiicon")), ",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/vchatgui " + lastChatMessage.getSender() + " " + lastChatMessage.getChannel() + " " + lastChatMessage.getHash() +"\"},\"hoverEvent\":{\"action\":\"show_text\",\"value\":{\"text\":\"\",\"extra\":[" + Format.convertToJsonColors(Format.FormatStringAll(plugin.getConfig().getString("guitext"))) + "]}}") + "]}]";
|
||||
}
|
||||
//System.out.println(json);
|
||||
chat.setJson(json);
|
||||
event.getPacket().getChatComponents().write(0, chat);
|
||||
}
|
||||
if((message != null) && (chat.getHandle() != null) && mcp != null) {
|
||||
mcp.addMessage(new ChatMessage(originalChat, chat, lastChatMessage != null ? lastChatMessage.getSender() : null, message, hash));
|
||||
}
|
||||
}
|
||||
|
||||
@SuppressWarnings("unused")
|
||||
private String getMessage(String json) {
|
||||
JSONArray components = (JSONArray) ((JSONObject) JSONValue.parse(json)).get("extra");
|
||||
Iterator<?> iterator = components.iterator();
|
||||
StringBuilder builder = new StringBuilder();
|
||||
while(iterator.hasNext()) {
|
||||
builder.append(((JSONObject) iterator.next()).get("text").toString());
|
||||
}
|
||||
return builder.toString();
|
||||
}
|
||||
}
|
@ -1,227 +1,227 @@
|
||||
name: VentureChat
|
||||
version: 2.12.0
|
||||
main: mineverse.Aust1n46.chat.MineverseChat
|
||||
depend: [Vault, ProtocolLib, PlaceholderAPI]
|
||||
softdepend: [Towny, Factions, Heroes]
|
||||
Author: Aust1n46
|
||||
description: Chat with channels with many features!
|
||||
commands:
|
||||
mute:
|
||||
usage: /mute [playername] [channel]
|
||||
aliases: [mp,vmute]
|
||||
description: Mutes player in a channel so they cannot talk.
|
||||
permission-message: You don't have <permission>
|
||||
unmute:
|
||||
usage: /unmute [playername] [channel]
|
||||
aliases: [ump,vunmute]
|
||||
description: Unmutes player in a channel so they can talk again.
|
||||
permission-message: You don't have <permission>
|
||||
tell:
|
||||
usage: /tell [playername] [msg]
|
||||
aliases: [vtell]
|
||||
description: Send a message to a player
|
||||
permission-message: You don't have <permission>
|
||||
ignore:
|
||||
usage: /ignore [playername] or /ignore ? for more information
|
||||
aliases: [vignore]
|
||||
description: This allows you to prevent a player from sending you a tell /ignore list to see who you have ignored
|
||||
permission-message: You don't have <permission>
|
||||
whisper:
|
||||
usage: /whisper [playername] [msg]
|
||||
aliases: [w,vwhisper]
|
||||
description: Send a message to a player
|
||||
permission-message: You don't have <permission>
|
||||
channel:
|
||||
usage: /channel [channelname]
|
||||
aliases: [ch,vchannel]
|
||||
description: Allows players to add the ability to listen to the channel
|
||||
permission-message: You don't have <permission>
|
||||
leave:
|
||||
usage: /leave [channelname]
|
||||
aliases: [lev,vleave]
|
||||
description: Allows players to leave listening to a channel
|
||||
permission-message: You don't have <permission>
|
||||
join:
|
||||
usage: /join [channelname]
|
||||
aliases: [vjoin]
|
||||
description: Allows players to join a channel
|
||||
permission-message: You don't have <permission>
|
||||
chlist:
|
||||
usage: /chlist
|
||||
aliases: [chl,vchlist]
|
||||
description: Allows players to see a listing of available channels
|
||||
permission-message: You don't have <permission>
|
||||
chwho:
|
||||
usage: /chwho [channelname]
|
||||
aliases: [chw,vchwho]
|
||||
description: Allows players to see a listing of who is listening on a channel
|
||||
permission-message: You don't have <permission>
|
||||
setchannel:
|
||||
usage: /setchannel [playername] [channel]
|
||||
aliases: [sc,vsetchannel]
|
||||
description: Sets a players channel
|
||||
permission-message: You don't have <permission>
|
||||
kickchannel:
|
||||
usage: /kickchannel [playername] [channel]
|
||||
aliases: [kc,vkickchannel]
|
||||
description: Kicks a player out of a channel
|
||||
permission-message: You don't have <permission>
|
||||
message:
|
||||
usage: /message [playername] [msg]
|
||||
aliases: [msg,pm,vmessage]
|
||||
description: Send a message to a player
|
||||
muteall:
|
||||
usage: /muteall [playername]
|
||||
aliases: [mpa,vmuteall]
|
||||
description: Mute a player in all channels
|
||||
permission-message: You don't have <permission>
|
||||
unmuteall:
|
||||
usage: /unmuteall [playername]
|
||||
aliases: [umpa,vunmuteall]
|
||||
description: Unmute a player in all channels
|
||||
permission-message: You don't have <permission>
|
||||
kickchannelall:
|
||||
usage: /kickchannelall [playername]
|
||||
aliases: [kca,vkickchannelall]
|
||||
description: Kick a player from all channels
|
||||
permission-message: You don't have <permission>
|
||||
setchannelall:
|
||||
usage: /setchannelall [playername]
|
||||
aliases: [sca,vsetchannelall]
|
||||
description: Set a player into all channels
|
||||
permission-message: You don't have <permission>
|
||||
force:
|
||||
usage: /force [playername] [message]
|
||||
aliases: [for,vforce]
|
||||
description: Force a player to chat or execute a command
|
||||
permission-message: You don't have <permission>
|
||||
forceall:
|
||||
usage: /forceall [message]
|
||||
aliases: [fora,vforceall]
|
||||
description: Force all players to chat or execute a command
|
||||
permission-message: You don't have <permission>
|
||||
listen:
|
||||
usage: /listen [channel]
|
||||
aliases: [lis,vlisten]
|
||||
description: Listen to a channel without setting it as the one your chatting in
|
||||
permission-message: You don't have <permission>
|
||||
chatreload:
|
||||
usage: /chatreload
|
||||
aliases: [cr,vchatreload]
|
||||
description: Reload the config file
|
||||
permission-message: You don't have <permission>
|
||||
afk:
|
||||
usage: /afk
|
||||
aliases: [vafk]
|
||||
description: Set yourself as afk
|
||||
permission-message: You don't have <permission>
|
||||
reply:
|
||||
usage: /reply [msg]
|
||||
aliases: [r,vreply]
|
||||
description: Reply to a message
|
||||
permission-message: You don't have <permission>
|
||||
spy:
|
||||
usage: /spy
|
||||
aliases: [vspy]
|
||||
description: Spy on tells
|
||||
permission-message: You don't have <permission>
|
||||
commandspy:
|
||||
usage: /commandspy
|
||||
aliases: [comspy,vcommandspy]
|
||||
description: Spy on commands
|
||||
permission-message: You don't have <permission>
|
||||
chatinfo:
|
||||
usage: /chatinfo
|
||||
aliases: [ci,vchatinfo]
|
||||
description: Check a players chat info
|
||||
permission-message: You don't have <permission>
|
||||
channelinfo:
|
||||
usage: /channelinfo
|
||||
aliases: [chi,vchannelinfo]
|
||||
description: Check a channels info
|
||||
permission-message: You don't have <permission>
|
||||
venturechat:
|
||||
usage: /venturechat
|
||||
aliases: [vc]
|
||||
description: Check plugin information
|
||||
permission-message: You don't have <permission>
|
||||
me:
|
||||
usage: /me
|
||||
aliases: [vme]
|
||||
description: Send an emote
|
||||
permission-message: You don't have <permission>
|
||||
filter:
|
||||
usage: /filter
|
||||
aliases: [fil,vfilter]
|
||||
description: Toggle filter on and off
|
||||
permission-message: You don't have <permission>
|
||||
broadcast:
|
||||
usage: /broadcast [msg]
|
||||
aliases: [bc,vbroadcast]
|
||||
description: Broadcast a message
|
||||
permission-message: You don't have <permission>
|
||||
commandblock:
|
||||
usage: /commandblock [player] [command]
|
||||
aliases: [cb,vcommandblock]
|
||||
description: Toggle a player blocked from entering a command
|
||||
permission-message: You don't have <permission>
|
||||
nick:
|
||||
usage: /nick {player} [nickname]
|
||||
aliases: [vnick]
|
||||
description: Set a players nickname
|
||||
permission-message: You don't have <permission>
|
||||
party:
|
||||
usage: /party help
|
||||
aliases: [p,chatparty,cp,vparty]
|
||||
description: Party commands
|
||||
permission-message: You don't have <permission>
|
||||
config:
|
||||
usage: /config help
|
||||
aliases: [vconfig]
|
||||
description: Edit commands
|
||||
permission-message: You don't have <permission>
|
||||
clearchat:
|
||||
usage: /clearchat
|
||||
aliases: [cc,vclearchat]
|
||||
description: Clear every players chat
|
||||
permission-message: You don't have <permission>
|
||||
notifications:
|
||||
usage: /notifications
|
||||
aliases: [notify,vnotify]
|
||||
description: Toggles your notifications
|
||||
permission-message: You don't have <permission>
|
||||
mail:
|
||||
usage: /mail help
|
||||
aliases: [vmail]
|
||||
description: Mail commands
|
||||
permission-message: You don't have <permission>
|
||||
removemessage:
|
||||
usage: /removemessage [hashcode]
|
||||
aliases: [rm,vremovemessage]
|
||||
description: Remove a message from the chat
|
||||
permission-message: You don't have <permission>
|
||||
edit:
|
||||
usage: /<command>
|
||||
aliases: [vedit]
|
||||
description: Edit your last chat message
|
||||
permission-message: You don't have <permission>
|
||||
rangedspy:
|
||||
usage: /<command>
|
||||
aliases: [rspy,vrangedspy]
|
||||
description: Toggle spying on ranged channels
|
||||
permission-message: You don't have <permission>
|
||||
buttons:
|
||||
usage: /<command>
|
||||
aliases: [vbuttons]
|
||||
description: Toggle viewing json buttons
|
||||
permission-message: You don't have <permission>
|
||||
venturechatgui:
|
||||
usage: /<command>
|
||||
aliases: [vchatgui]
|
||||
description: Opens the chat management gui
|
||||
permission-message: You don't have <permission>
|
||||
messagetoggle:
|
||||
usage: /<command>
|
||||
aliases: [mtoggle,vmessagetoggle]
|
||||
description: Toggle receiving messages
|
||||
name: VentureChat
|
||||
version: 2.12.2
|
||||
main: mineverse.Aust1n46.chat.MineverseChat
|
||||
depend: [Vault, ProtocolLib, PlaceholderAPI]
|
||||
softdepend: [Towny, Factions, Heroes]
|
||||
Author: Aust1n46
|
||||
description: Chat with channels with many features!
|
||||
commands:
|
||||
mute:
|
||||
usage: /mute [playername] [channel]
|
||||
aliases: [mp,vmute]
|
||||
description: Mutes player in a channel so they cannot talk.
|
||||
permission-message: You don't have <permission>
|
||||
unmute:
|
||||
usage: /unmute [playername] [channel]
|
||||
aliases: [ump,vunmute]
|
||||
description: Unmutes player in a channel so they can talk again.
|
||||
permission-message: You don't have <permission>
|
||||
tell:
|
||||
usage: /tell [playername] [msg]
|
||||
aliases: [vtell]
|
||||
description: Send a message to a player
|
||||
permission-message: You don't have <permission>
|
||||
ignore:
|
||||
usage: /ignore [playername] or /ignore ? for more information
|
||||
aliases: [vignore]
|
||||
description: This allows you to prevent a player from sending you a tell /ignore list to see who you have ignored
|
||||
permission-message: You don't have <permission>
|
||||
whisper:
|
||||
usage: /whisper [playername] [msg]
|
||||
aliases: [w,vwhisper]
|
||||
description: Send a message to a player
|
||||
permission-message: You don't have <permission>
|
||||
channel:
|
||||
usage: /channel [channelname]
|
||||
aliases: [ch,vchannel]
|
||||
description: Allows players to add the ability to listen to the channel
|
||||
permission-message: You don't have <permission>
|
||||
leave:
|
||||
usage: /leave [channelname]
|
||||
aliases: [lev,vleave]
|
||||
description: Allows players to leave listening to a channel
|
||||
permission-message: You don't have <permission>
|
||||
join:
|
||||
usage: /join [channelname]
|
||||
aliases: [vjoin]
|
||||
description: Allows players to join a channel
|
||||
permission-message: You don't have <permission>
|
||||
chlist:
|
||||
usage: /chlist
|
||||
aliases: [chl,vchlist]
|
||||
description: Allows players to see a listing of available channels
|
||||
permission-message: You don't have <permission>
|
||||
chwho:
|
||||
usage: /chwho [channelname]
|
||||
aliases: [chw,vchwho]
|
||||
description: Allows players to see a listing of who is listening on a channel
|
||||
permission-message: You don't have <permission>
|
||||
setchannel:
|
||||
usage: /setchannel [playername] [channel]
|
||||
aliases: [sc,vsetchannel]
|
||||
description: Sets a players channel
|
||||
permission-message: You don't have <permission>
|
||||
kickchannel:
|
||||
usage: /kickchannel [playername] [channel]
|
||||
aliases: [kc,vkickchannel]
|
||||
description: Kicks a player out of a channel
|
||||
permission-message: You don't have <permission>
|
||||
message:
|
||||
usage: /message [playername] [msg]
|
||||
aliases: [msg,pm,vmessage]
|
||||
description: Send a message to a player
|
||||
muteall:
|
||||
usage: /muteall [playername]
|
||||
aliases: [mpa,vmuteall]
|
||||
description: Mute a player in all channels
|
||||
permission-message: You don't have <permission>
|
||||
unmuteall:
|
||||
usage: /unmuteall [playername]
|
||||
aliases: [umpa,vunmuteall]
|
||||
description: Unmute a player in all channels
|
||||
permission-message: You don't have <permission>
|
||||
kickchannelall:
|
||||
usage: /kickchannelall [playername]
|
||||
aliases: [kca,vkickchannelall]
|
||||
description: Kick a player from all channels
|
||||
permission-message: You don't have <permission>
|
||||
setchannelall:
|
||||
usage: /setchannelall [playername]
|
||||
aliases: [sca,vsetchannelall]
|
||||
description: Set a player into all channels
|
||||
permission-message: You don't have <permission>
|
||||
force:
|
||||
usage: /force [playername] [message]
|
||||
aliases: [for,vforce]
|
||||
description: Force a player to chat or execute a command
|
||||
permission-message: You don't have <permission>
|
||||
forceall:
|
||||
usage: /forceall [message]
|
||||
aliases: [fora,vforceall]
|
||||
description: Force all players to chat or execute a command
|
||||
permission-message: You don't have <permission>
|
||||
listen:
|
||||
usage: /listen [channel]
|
||||
aliases: [lis,vlisten]
|
||||
description: Listen to a channel without setting it as the one your chatting in
|
||||
permission-message: You don't have <permission>
|
||||
chatreload:
|
||||
usage: /chatreload
|
||||
aliases: [cr,vchatreload]
|
||||
description: Reload the config file
|
||||
permission-message: You don't have <permission>
|
||||
afk:
|
||||
usage: /afk
|
||||
aliases: [vafk]
|
||||
description: Set yourself as afk
|
||||
permission-message: You don't have <permission>
|
||||
reply:
|
||||
usage: /reply [msg]
|
||||
aliases: [r,vreply]
|
||||
description: Reply to a message
|
||||
permission-message: You don't have <permission>
|
||||
spy:
|
||||
usage: /spy
|
||||
aliases: [vspy]
|
||||
description: Spy on tells
|
||||
permission-message: You don't have <permission>
|
||||
commandspy:
|
||||
usage: /commandspy
|
||||
aliases: [comspy,vcommandspy]
|
||||
description: Spy on commands
|
||||
permission-message: You don't have <permission>
|
||||
chatinfo:
|
||||
usage: /chatinfo
|
||||
aliases: [ci,vchatinfo]
|
||||
description: Check a players chat info
|
||||
permission-message: You don't have <permission>
|
||||
channelinfo:
|
||||
usage: /channelinfo
|
||||
aliases: [chi,vchannelinfo]
|
||||
description: Check a channels info
|
||||
permission-message: You don't have <permission>
|
||||
venturechat:
|
||||
usage: /venturechat
|
||||
aliases: [vc]
|
||||
description: Check plugin information
|
||||
permission-message: You don't have <permission>
|
||||
me:
|
||||
usage: /me
|
||||
aliases: [vme]
|
||||
description: Send an emote
|
||||
permission-message: You don't have <permission>
|
||||
filter:
|
||||
usage: /filter
|
||||
aliases: [fil,vfilter]
|
||||
description: Toggle filter on and off
|
||||
permission-message: You don't have <permission>
|
||||
broadcast:
|
||||
usage: /broadcast [msg]
|
||||
aliases: [bc,vbroadcast]
|
||||
description: Broadcast a message
|
||||
permission-message: You don't have <permission>
|
||||
commandblock:
|
||||
usage: /commandblock [player] [command]
|
||||
aliases: [cb,vcommandblock]
|
||||
description: Toggle a player blocked from entering a command
|
||||
permission-message: You don't have <permission>
|
||||
nick:
|
||||
usage: /nick {player} [nickname]
|
||||
aliases: [vnick]
|
||||
description: Set a players nickname
|
||||
permission-message: You don't have <permission>
|
||||
party:
|
||||
usage: /party help
|
||||
aliases: [p,chatparty,cp,vparty]
|
||||
description: Party commands
|
||||
permission-message: You don't have <permission>
|
||||
config:
|
||||
usage: /config help
|
||||
aliases: [vconfig]
|
||||
description: Edit commands
|
||||
permission-message: You don't have <permission>
|
||||
clearchat:
|
||||
usage: /clearchat
|
||||
aliases: [cc,vclearchat]
|
||||
description: Clear every players chat
|
||||
permission-message: You don't have <permission>
|
||||
notifications:
|
||||
usage: /notifications
|
||||
aliases: [notify,vnotify]
|
||||
description: Toggles your notifications
|
||||
permission-message: You don't have <permission>
|
||||
mail:
|
||||
usage: /mail help
|
||||
aliases: [vmail]
|
||||
description: Mail commands
|
||||
permission-message: You don't have <permission>
|
||||
removemessage:
|
||||
usage: /removemessage [hashcode]
|
||||
aliases: [rm,vremovemessage]
|
||||
description: Remove a message from the chat
|
||||
permission-message: You don't have <permission>
|
||||
edit:
|
||||
usage: /<command>
|
||||
aliases: [vedit]
|
||||
description: Edit your last chat message
|
||||
permission-message: You don't have <permission>
|
||||
rangedspy:
|
||||
usage: /<command>
|
||||
aliases: [rspy,vrangedspy]
|
||||
description: Toggle spying on ranged channels
|
||||
permission-message: You don't have <permission>
|
||||
buttons:
|
||||
usage: /<command>
|
||||
aliases: [vbuttons]
|
||||
description: Toggle viewing json buttons
|
||||
permission-message: You don't have <permission>
|
||||
venturechatgui:
|
||||
usage: /<command>
|
||||
aliases: [vchatgui]
|
||||
description: Opens the chat management gui
|
||||
permission-message: You don't have <permission>
|
||||
messagetoggle:
|
||||
usage: /<command>
|
||||
aliases: [mtoggle,vmessagetoggle]
|
||||
description: Toggle receiving messages
|
||||
permission-message: You don't have <permission>
|
Loading…
x
Reference in New Issue
Block a user