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