summaryrefslogtreecommitdiff
path: root/src/main/java/com/redstoner/modules/teleport/Teleport.cmd
blob: 86ce18ec7117e9ebfeedc267806a424878a13755 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
command teleport {
    alias eteleport;
    alias tp;
    alias etp;
    alias to;
    alias eto;
    alias tpo;
    alias etpo;
    alias tp2p;
    alias etp2p;
    [string:player] {
        run tp player;
        perm utils.teleport.tp;
    }
    [string:player] [string:player2] {
        run tp2 player player2;
        perm utils.teleport.tp.other;
    }
}

command teleporthere {
    alias eteleporthere;
    alias tphere;
    alias etphere;
    alias tpohere;
    alias etpohere;
    perm utils.teleport.tp;
    [string:player] {
        run tphere player;
        perm utils.teleport.tp.here;
    }
}

command teleportask {
    alias eteleportask;
    alias tpa;
    alias etpa;
    alias tpr;
    alias etpr;
    alias tpask;
    alias etpask;
    perm utils.teleport.tpa;
    [string:player] {
        run tpa player;
    }
}

command teleportaskhere {
    alias eteleportaskhere;
    alias tpahere,
    alias etpahere;
    alias tprhere;
    alias etrphere;
    alias tpaskhere;
    alias etpaskhere;
    perm utils.teleport.tpa;
    [string:player] {
        run tpahere player;
        help ask another player to teleport to you.;
    }
}

command tpall {
    alias etpall;
    perm utils.teleport.tpall;
    [empty] {
        run tpall;
        help Teleports everyone to you.;
    }
    [string:player] {
        run tpall2 player;
        help Teleports everyone to the specified player.;
    }
}

command tpaall {
    alias etpall;
    perm utils.teleport.tpaall;
    [empty] {
        run tpaall;
        help Sends a tpa request to every player.;
    }
    [string:player] {
        run tpaall2 player;
        help Sends a tpa request to every player.;
    }
}

command tpaccept {
    alias etpaccept;
    alias tpyes;
    alias etpyes;
    perm utils.teleport.request;
    [empty] {
        run tpaccept;
        help Accepts the latest pending tpa request.;
    }
    [int:index] {
        run tpaccept2 index;
        help Accepts the specified pending tpa request.;
    }
}

command tpacancel {
    alias etpacencel;
    perm utils.teleport.request;
    [empty] {
        run tpacancel;
        help Cancels an outgoing pending tpa request.;
    }
}

command tpdeny {
    alias etpdeny;
    alias tpno;
    alias etpno;
    perm utils.teleport.request;
    [empty] {
        run tpdeny;
    }
    [int:index] {
        run tpdeny2 index;
    }
}

command tplist {
    alias etplist;
    alias tpl;
    alias etpl;
    perm utils.teleport.request;
    [empty] {
        run tplist;
    }
}

command tptoggle {
    alias etptoggle;
    perm utils.teleport.toggle;
    [string:status] {
        run tptoggle status;
        help sets your tpa status;
    }
    [string:command] [string:status] {
        run tptoggle2 command status;
        help sets your tpa status for only one command (e.g. tpa/tpahere).;
    } 
}