Fixed cmd file and added the boilerplating for the unimplemented methods
This commit is contained in:
@@ -8,11 +8,11 @@ command teleport {
|
|||||||
alias etpo;
|
alias etpo;
|
||||||
alias tp2p;
|
alias tp2p;
|
||||||
alias etp2p;
|
alias etp2p;
|
||||||
[player:string] {
|
[string:player] {
|
||||||
run tp player;
|
run tp player;
|
||||||
perm utils.teleport.tp;
|
perm utils.teleport.tp;
|
||||||
}
|
}
|
||||||
[player:string] [player2:string] {
|
[string:player] [string:player2] {
|
||||||
run tp2 player player2;
|
run tp2 player player2;
|
||||||
perm utils.teleport.tp.other;
|
perm utils.teleport.tp.other;
|
||||||
}
|
}
|
||||||
@@ -25,8 +25,8 @@ command teleporthere {
|
|||||||
alias tpohere;
|
alias tpohere;
|
||||||
alias etpohere;
|
alias etpohere;
|
||||||
perm utils.teleport.tp;
|
perm utils.teleport.tp;
|
||||||
[player:string] {
|
[string:player] {
|
||||||
run tph player;
|
run tphere player;
|
||||||
perm utils.teleport.tp.here;
|
perm utils.teleport.tp.here;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -40,7 +40,7 @@ command teleportask {
|
|||||||
alias tpask;
|
alias tpask;
|
||||||
alias etpask;
|
alias etpask;
|
||||||
perm utils.teleport.tpa;
|
perm utils.teleport.tpa;
|
||||||
[player:string] {
|
[string:player] {
|
||||||
run tpa player;
|
run tpa player;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -54,8 +54,8 @@ command teleportaskhere {
|
|||||||
alias tpaskhere;
|
alias tpaskhere;
|
||||||
alias etpaskhere;
|
alias etpaskhere;
|
||||||
perm utils.teleport.tpa;
|
perm utils.teleport.tpa;
|
||||||
[player:string] {
|
[string:player] {
|
||||||
run tpah player;
|
run tpahere player;
|
||||||
help ask another player to teleport to you.;
|
help ask another player to teleport to you.;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -67,7 +67,7 @@ command tpall {
|
|||||||
run tpall;
|
run tpall;
|
||||||
help Teleports everyone to you.;
|
help Teleports everyone to you.;
|
||||||
}
|
}
|
||||||
[player] {
|
[string:player] {
|
||||||
run tpall2 player;
|
run tpall2 player;
|
||||||
help Teleports everyone to the specified player.;
|
help Teleports everyone to the specified player.;
|
||||||
}
|
}
|
||||||
@@ -80,7 +80,7 @@ command tpaall {
|
|||||||
run tpaall;
|
run tpaall;
|
||||||
help Sends a tpa request to every player.;
|
help Sends a tpa request to every player.;
|
||||||
}
|
}
|
||||||
[player:string] {
|
[string:player] {
|
||||||
run tpaall2 player;
|
run tpaall2 player;
|
||||||
help Sends a tpa request to every player.;
|
help Sends a tpa request to every player.;
|
||||||
}
|
}
|
||||||
@@ -95,7 +95,7 @@ command tpaccept {
|
|||||||
run tpaccept;
|
run tpaccept;
|
||||||
help Accepts the latest pending tpa request.;
|
help Accepts the latest pending tpa request.;
|
||||||
}
|
}
|
||||||
[index:int] {
|
[int:index] {
|
||||||
run tpaccept2 index;
|
run tpaccept2 index;
|
||||||
help Accepts the specified pending tpa request.;
|
help Accepts the specified pending tpa request.;
|
||||||
}
|
}
|
||||||
@@ -118,7 +118,7 @@ command tpdeny {
|
|||||||
[empty] {
|
[empty] {
|
||||||
run tpdeny;
|
run tpdeny;
|
||||||
}
|
}
|
||||||
[index:int] {
|
[int:index] {
|
||||||
run tpdeny2 index;
|
run tpdeny2 index;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -129,18 +129,18 @@ command tplist {
|
|||||||
alias etpl;
|
alias etpl;
|
||||||
perm utils.teleport.request;
|
perm utils.teleport.request;
|
||||||
[empty] {
|
[empty] {
|
||||||
run tpl;
|
run tplist;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
command tptoggle {
|
command tptoggle {
|
||||||
alias etptoggle;
|
alias etptoggle;
|
||||||
perm utils.teleport.toggle;
|
perm utils.teleport.toggle;
|
||||||
[status:string] {
|
[string:status] {
|
||||||
run tptoggle status;
|
run tptoggle status;
|
||||||
help sets your tpa status;
|
help sets your tpa status;
|
||||||
}
|
}
|
||||||
[command:string] [status:string] {
|
[string:command] [string:status] {
|
||||||
run tptoggle2 command status;
|
run tptoggle2 command status;
|
||||||
help sets your tpa status for only one command (e.g. tpa/tpahere).;
|
help sets your tpa status for only one command (e.g. tpa/tpahere).;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -63,6 +63,12 @@ public class Teleport implements Module
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Command(hook = "tphere")
|
||||||
|
public boolean tphere(CommandSender sender, String player)
|
||||||
|
{
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
@Command(hook = "tpa")
|
@Command(hook = "tpa")
|
||||||
public boolean tpa(CommandSender sender, String player)
|
public boolean tpa(CommandSender sender, String player)
|
||||||
{
|
{
|
||||||
@@ -75,10 +81,81 @@ public class Teleport implements Module
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Command(hook = "tpall")
|
||||||
|
public boolean tpall(CommandSender sender)
|
||||||
|
{
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Command(hook = "tpall2")
|
||||||
|
public boolean tpall2(CommandSender sender, String player)
|
||||||
|
{
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Command(hook = "tpaall")
|
||||||
|
public boolean tpaall(CommandSender sender)
|
||||||
|
{
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Command(hook = "tpaall2")
|
||||||
|
public boolean tpaall2(CommandSender sender, String player)
|
||||||
|
{
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Command(hook = "tpaccept")
|
||||||
|
public boolean tpaccept(CommandSender sender)
|
||||||
|
{
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Command(hook = "tpaccept2")
|
||||||
|
public boolean tpaccept2(CommandSender sender, int index)
|
||||||
|
{
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Command(hook = "tpdeny")
|
||||||
|
public boolean tpdeny(CommandSender sender)
|
||||||
|
{
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Command(hook = "tpdeny2")
|
||||||
|
public boolean tpdeny2(CommandSender sender, int index)
|
||||||
|
{
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Command(hook = "tpacancel")
|
||||||
|
public boolean tpacancel(CommandSender sender)
|
||||||
|
{
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Command(hook = "tplist")
|
||||||
|
public boolean tplist(CommandSender sender)
|
||||||
|
{
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Command(hook = "tptoggle")
|
||||||
|
public boolean tptoggle(CommandSender sender, String status)
|
||||||
|
{
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Command(hook = "tptoggle2")
|
||||||
|
public boolean tptoggle2(CommandSender sender, String command, String status)
|
||||||
|
{
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
@Command(hook = "tpmenu")
|
@Command(hook = "tpmenu")
|
||||||
public boolean tpinventory(CommandSender sender)
|
public boolean tpinventory(CommandSender sender)
|
||||||
{
|
{
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user