mirror of
https://github.com/TotalFreedomMC/TF-PlotSquared.git
synced 2025-01-07 07:31:40 +00:00
Add a confirmation to the debugpaste
That should prevent people from accidentally pressing buttons (whyever you would do that)
This commit is contained in:
parent
c8c5d777a1
commit
120d36e413
1 changed files with 2 additions and 2 deletions
|
@ -25,8 +25,8 @@ import java.util.stream.Collectors;
|
|||
|
||||
@CommandDeclaration(command = "debugpaste", aliases = "dp", usage = "/plot debugpaste",
|
||||
description = "Upload settings.yml, worlds.yml, PlotSquared.use_THIS.yml your latest.log and Multiverse's worlds.yml (if being used) to https://athion.net/ISPaster/paste",
|
||||
permission = "plots.debugpaste", category = CommandCategory.DEBUG) public class DebugPaste
|
||||
extends SubCommand {
|
||||
permission = "plots.debugpaste", category = CommandCategory.DEBUG, confirmation = true, requiredType = RequiredType.NONE)
|
||||
public class DebugPaste extends SubCommand {
|
||||
|
||||
private static String readFile(@NonNull final File file) throws IOException {
|
||||
final List<String> lines;
|
||||
|
|
Loading…
Reference in a new issue