-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Version 0.4.2 (by C45Y), reconstituted from installed binary (sources…
… lost). Support the concept of "public" warps that can be used without requiring a permission node and the dynamic registration of new shortcut commands for players to use these warps.
- Loading branch information
Showing
6 changed files
with
170 additions
and
87 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
target/ | ||
*.jar | ||
*.class | ||
/classes/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package nu.nerd.tpcontrol; | ||
|
||
import org.bukkit.command.Command; | ||
import org.bukkit.command.CommandExecutor; | ||
import org.bukkit.command.CommandSender; | ||
|
||
public class ShortcutCommand implements CommandExecutor { | ||
protected String name; | ||
protected TPControl plugin; | ||
protected Warp warp; | ||
|
||
public ShortcutCommand(String name, TPControl plugin, Warp warp) { | ||
this.name = name; | ||
this.plugin = plugin; | ||
this.warp = warp; | ||
} | ||
|
||
public boolean onCommand(CommandSender sender, Command command, String name, String[] args) { | ||
GhostCommand ghostCommand = new GhostCommand("warp"); | ||
this.plugin.onCommand(sender, ghostCommand, "warp", new String[] { this.warp.getName() }); | ||
return false; | ||
} | ||
} |
Oops, something went wrong.
73dfbeb
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not authored by me....