Fix checkstyle/license/gen code

This commit is contained in:
Kenzie Togami
2019-04-23 15:44:33 -07:00
parent 20da6227d4
commit 6d4982f23a
4 changed files with 46 additions and 5 deletions

View File

@ -35,7 +35,7 @@ import static com.google.common.base.Preconditions.checkNotNull;
/**
* Commands to undo, redo, and clear history.
*/
@CommandContainer(superTypes = CommandPermissionsConditionGenerator.class)
@CommandContainer(superTypes = CommandPermissionsConditionGenerator.Registration.class)
public class HistoryCommands {
private final WorldEdit worldEdit;
@ -58,9 +58,9 @@ public class HistoryCommands {
@CommandPermissions("worldedit.history.undo")
public void undo(Player player, LocalSession session,
@Arg(desc = "Number of undoes to perform", def = "1")
int times,
int times,
@Arg(name = "player", desc = "Undo this player's operations", def = "")
String playerName) throws WorldEditException {
String playerName) throws WorldEditException {
times = Math.max(1, times);
for (int i = 0; i < times; ++i) {
LocalSession undoSession = session;
@ -86,7 +86,7 @@ public class HistoryCommands {
@Command(
name = "redo",
aliases = { "redo" },
aliases = { "/redo" },
desc = "Redoes the last action (from history)"
)
@CommandPermissions("worldedit.history.redo")