Skip to content

Commit b3f9144

Browse files
authored
Relieve Admin powers from normal tp (#793)
Solving issue #792
1 parent 4157b47 commit b3f9144

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Diff for: pawn/Features/Gameplay/Teleportation/TeleportationManager.pwn

+2-3
Original file line numberDiff line numberDiff line change
@@ -151,8 +151,7 @@ class TeleportationManager {
151151

152152
// Carteleporting to the cruise is allowed once per minute, except for crew members.
153153
if (subjectId == CruiseController->getCruiseLeaderId()
154-
&& Time->currentTime() - m_playerTeleportTime[playerId] < CarTeleportToCruiseDelay
155-
&& Player(playerId)->isAdministrator() == false) {
154+
&& Time->currentTime() - m_playerTeleportTime[playerId] < CarTeleportToCruiseDelay) {
156155
format(message, sizeof(message), "You may only %s to the cruise once per minute.",
157156
(teleportType == DefaultTeleport ? "teleport" : "carteleport"),
158157
CarTeleportToCruiseDelay / 60);
@@ -163,7 +162,7 @@ class TeleportationManager {
163162

164163
// Both teleport and carteleport is limited in use to avoid abuse, except for crew members.
165164
if (subjectId != CruiseController->getCruiseLeaderId() &&
166-
Time->currentTime() - m_playerTeleportTime[playerId] < delay && Player(playerId)->isAdministrator() == false) {
165+
Time->currentTime() - m_playerTeleportTime[playerId] < delay) {
167166
format(message, sizeof(message), "You may only %s once every %d minutes.",
168167
(teleportType == DefaultTeleport ? "teleport" : "carteleport"),
169168
(teleportType == DefaultTeleport ? DefaultTeleportDelay / 60 : CarTeleportDelay / 60));

0 commit comments

Comments
 (0)