mirror of
https://github.com/NEZNAMY/TAB.git
synced 2026-11-14 05:01:59 -05:00
Commands - Allow removing per-world/server values
This commit is contained in:
1 parent
073caa9515
commit
11539d8290
3 files changed
+6
-6
No files matched your search
@@ -41,11 +41,11 @@ public class GroupCommand extends PropertyCommand {
|
||||
String server = null;
|
||||
if (args[args.length-2].equals("-w")) {
|
||||
world = args[args.length-1];
|
||||
value = value.substring(0, value.length()-world.length()-4);
|
||||
value = value.startsWith("-w") ? "" : value.substring(0, value.length()-world.length()-4);
|
||||
}
|
||||
if (args[args.length-2].equals("-s")) {
|
||||
server = args[args.length-1];
|
||||
value = value.substring(0, value.length()-server.length()-4);
|
||||
value = value.startsWith("-s") ? "" : value.substring(0, value.length()-server.length()-4);
|
||||
}
|
||||
if ((value.startsWith("\"") && value.endsWith("\"")) || (value.startsWith("'") && value.endsWith("'"))) {
|
||||
value = value.substring(1, value.length()-1);
|
||||
|
||||
@@ -33,11 +33,11 @@ public class PlayerCommand extends PropertyCommand {
|
||||
String server = null;
|
||||
if (args[args.length-2].equals("-w")) {
|
||||
world = args[args.length-1];
|
||||
value = value.substring(0, value.length()-world.length()-4);
|
||||
value = value.startsWith("-w") ? "" : value.substring(0, value.length()-world.length()-4);
|
||||
}
|
||||
if (args[args.length-2].equals("-s")) {
|
||||
server = args[args.length-1];
|
||||
value = value.substring(0, value.length()-server.length()-4);
|
||||
value = value.startsWith("-s") ? "" : value.substring(0, value.length()-server.length()-4);
|
||||
}
|
||||
if ((value.startsWith("\"") && value.endsWith("\"")) || (value.startsWith("'") && value.endsWith("'"))) {
|
||||
value = value.substring(1, value.length()-1);
|
||||
|
||||
@@ -38,11 +38,11 @@ public class PlayerUUIDCommand extends PropertyCommand {
|
||||
String server = null;
|
||||
if (args[args.length-2].equals("-w")) {
|
||||
world = args[args.length-1];
|
||||
value = value.substring(0, value.length()-world.length()-4);
|
||||
value = value.startsWith("-w") ? "" : value.substring(0, value.length()-world.length()-4);
|
||||
}
|
||||
if (args[args.length-2].equals("-s")) {
|
||||
server = args[args.length-1];
|
||||
value = value.substring(0, value.length()-server.length()-4);
|
||||
value = value.startsWith("-s") ? "" : value.substring(0, value.length()-server.length()-4);
|
||||
}
|
||||
if ((value.startsWith("\"") && value.endsWith("\"")) || (value.startsWith("'") && value.endsWith("'"))) {
|
||||
value = value.substring(1, value.length()-1);
|
||||
|
||||
Reference in new issue
Block a user