enabled some client side command interpretation.

This commit is contained in:
gnembon committed 2020-03-30 17:14:16 -03:00
1 parent f3093183ce
commit fe63334509
8 files changed
+74 -7

No files matched your search

@@ -558,4 +558,22 @@ public class SettingsManager
return 1;
}
public void inspectClientsideCommand(String string)
{
if (string.startsWith("/carpet "))
{
String[] res = string.split("\\s+", 3);
if (res.length == 3)
{
String setting = res[1];
String strOption = res[2];
if (rules.containsKey(setting) && rules.get(setting).isClient)
{
rules.get(setting).set(null, strOption);
}
}
}
}
}