friendschat: remove Tab Chat option

this is now included in the vanilla client
This commit is contained in:
Max Weber
2021-05-18 12:07:36 -06:00
parent b79b26e686
commit e588635ccc
2 changed files with 0 additions and 20 deletions

View File

@@ -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",

View File

@@ -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)