SteamWar/BauSystem
Archiviert
13
0

WorldEditShortcuts #115

Manuell gemergt
YoyoNow hat 3 Commits von WorldEditShortcuts nach master 2020-11-17 09:40:03 +01:00 zusammengeführt
4 geänderte Dateien mit 10 neuen und 72 gelöschten Zeilen
Nur Änderungen aus Commit 8d8ba668c9 werden angezeigt - Alle Commits anzeigen

Datei anzeigen

@ -29,7 +29,11 @@ import java.util.List;
public class WECommandFlopyp extends WECommand { public class WECommandFlopyp extends WECommand {
public List<String> onTabComplete(CommandSender sender, Command command, String s, String[] args) { public List<String> onTabComplete(CommandSender sender, Command command, String s, String[] args) {
return manageList(Arrays.asList("-a", "-b", "-e", "-n", "-o", "-s", "-m"), args, args.length - 1); List<String> tabCompletes = Arrays.asList("-a", "-b", "-e", "-n", "-o", "-s", "-m");
if (args.length == 0) {
return tabCompletes;
}
return manageList(tabCompletes, args, args.length - 1);
} }
@Override @Override

Datei anzeigen

@ -29,7 +29,11 @@ import java.util.List;
public class WECommandPaste extends WECommand { public class WECommandPaste extends WECommand {
public List<String> onTabComplete(CommandSender sender, Command command, String s, String[] args) { public List<String> onTabComplete(CommandSender sender, Command command, String s, String[] args) {
return manageList(Arrays.asList("-a", "-b", "-e", "-n", "-o", "-s", "-m"), args, args.length - 1); List<String> tabCompletes = Arrays.asList("-a", "-b", "-e", "-n", "-o", "-s", "-m");
if (args.length == 0) {
return tabCompletes;
}
return manageList(tabCompletes, args, args.length - 1);
} }
@Override @Override

Datei anzeigen

@ -1,35 +0,0 @@
/*
This file is a part of the SteamWar software.
Copyright (C) 2020 SteamWar.de-Serverteam
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package de.steamwar.bausystem.commands.worldedit;
import org.bukkit.command.Command;
import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player;
public class WECommandReplace extends WECommand {
@Override
public boolean onCommand(CommandSender sender, Command command, String s, String[] args) {
if (!(sender instanceof Player)) return false;
performCommands((Player) sender, "/rep " + String.join(" ", args));
return false;
}
}

Datei anzeigen

@ -1,35 +0,0 @@
/*
This file is a part of the SteamWar software.
Copyright (C) 2020 SteamWar.de-Serverteam
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package de.steamwar.bausystem.commands.worldedit;
import org.bukkit.command.Command;
import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player;
public class WECommandSet extends WECommand {
@Override
public boolean onCommand(CommandSender sender, Command command, String s, String[] args) {
if (!(sender instanceof Player)) return false;
performCommands((Player) sender, "/set " + String.join(" ", args));
return false;
}
}