friendschat: remove Tab Chat option
this is now included in the vanilla client
This commit is contained in:
@@ -139,17 +139,6 @@ public interface FriendsChatConfig extends Config
|
||||
return false;
|
||||
}
|
||||
|
||||
@ConfigItem(
|
||||
keyName = "clanTabChat",
|
||||
name = "Tab Chat",
|
||||
description = "Message friends chat without appending '/' when the friends chat tab is selected.",
|
||||
position = 9
|
||||
)
|
||||
default boolean friendsChatTabChat()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
@ConfigItem(
|
||||
keyName = "confirmKicks",
|
||||
name = "Confirm Kicks",
|
||||
|
||||
@@ -542,15 +542,6 @@ public class FriendsChatPlugin extends Plugin
|
||||
{
|
||||
switch (scriptCallbackEvent.getEventName())
|
||||
{
|
||||
case "friendsChatInput":
|
||||
{
|
||||
final int[] intStack = client.getIntStack();
|
||||
final int size = client.getIntStackSize();
|
||||
// If the user accidentally adds a / when the config and the friends chat chat tab is active, handle it like a normal message
|
||||
boolean alterDispatch = config.friendsChatTabChat() && !client.getVar(VarClientStr.CHATBOX_TYPED_TEXT).startsWith("/");
|
||||
intStack[size - 1] = alterDispatch ? 1 : 0;
|
||||
break;
|
||||
}
|
||||
case "confirmFriendsChatKick":
|
||||
{
|
||||
if (!config.confirmKicks() || kickConfirmed)
|
||||
|
||||
Reference in New Issue
Block a user