summaryrefslogtreecommitdiff
path: root/src/main/java/com/redstoner/modules/teleport/Teleport.cmd
blob: 9a4a72d0bbf0417a1441ae05dcbfaeb19f9104c1 (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
command tp {
    alias teleport;
    alias to;
    
    [string:player] {
        run tp player;
        perm utils.teleport.tpa;
        type player;
    }
    [string:player] [string:player2] {
        run tp2 player player2;
        perm utils.teleport.tpa;
    }
    [int:x] [int:y] [int:z] {
    	run tploc x y z;
    	perm utils.teleport.tploc;
    	type player;
    }
    
    [string:player] [int:x] [int:y] [int:z] {
    	run tploc2 player x y z;
    	perm utils.teleport.tploc.other;
    }
}

command tphere {
    alias tph;
    alias teleoprthere;
    perm utils.teleport.tp;
    type player;
    
    [string:player] {
        run tphere player;
        perm utils.teleport.tp.here;
    }
}

command tpa {
    alias tpr;
    alias tpask;
    alias teleportask;
    perm utils.teleport.tpa;
    type player;
    
    [string:player] {
        run tpa player;
    }
}

command tpahere {
    alias tpah;
    alias tprhere;
    alias tpaskhere;
    alias teleportaskhere;
    perm utils.teleport.tpa;
	type player;
	
    [string:player] {
        run tpahere player;
        help ask another player to teleport to you.;
    }
}

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

command tpaccept {
    alias tpyes;
    perm utils.teleport.request;
    type player;
    
    [empty] {
        run tpaccept;
        help Accepts the latest pending tpa request.;
    }
    [string:player] {
        run tpaccept2 player;
        help Accepts the specified pending tpa request.;
    }
}

command tpcancel {
    alias tpastop;
    perm utils.teleport.request;
    type player;
    
    [empty] {
        run tpacancel;
        help Cancels the latest outgoing pending tpa request.;
    }
    [string:player] {
        run tpacancel2 player;
        help Cancels the specific outgoing pending tpa request.;
    }
}

command tpdeny {
    alias tpno;
    perm utils.teleport.request;
    type player;
    
    [empty] {
        run tpdeny;
    }
    [string:player] {
        run tpdeny2 player;
    }
}

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

command tptoggle {
    perm utils.teleport.toggle;
    type player;
    
    [string:status] {
        run tptoggle status;
        help sets your tpa status (All, ToMe, ToThem, None);
    }
}