Package com.sk89q.worldedit.command
Class HistoryCommands
java.lang.Object
com.sk89q.worldedit.command.HistoryCommands
Commands to undo, redo, and clear history.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
clearHistory
(Actor actor, LocalSession session) void
redo
(Actor actor, LocalSession session, int times, String playerName) void
undo
(Actor actor, LocalSession session, int times, String playerName)
-
Constructor Details
-
HistoryCommands
Create a new instance.- Parameters:
worldEdit
- reference to WorldEdit
-
-
Method Details
-
undo
public void undo(Actor actor, LocalSession session, @Arg(desc="Number of undoes to perform",def="1") int times, @Arg(name="player",desc="Undo this player\'s operations",def="") String playerName) throws WorldEditException - Throws:
WorldEditException
-
redo
public void redo(Actor actor, LocalSession session, @Arg(desc="Number of redoes to perform",def="1") int times, @Arg(name="player",desc="Redo this player\'s operations",def="") String playerName) throws WorldEditException - Throws:
WorldEditException
-
clearHistory
-