Skip to content
Permalink
Browse files
Relieve Admin powers from normal tp (#793)
Solving issue #792
  • Loading branch information
Specifer committed Jul 22, 2020
1 parent 4157b47 commit b3f9144
Showing 1 changed file with 2 additions and 3 deletions.
@@ -151,8 +151,7 @@ class TeleportationManager {

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

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

0 comments on commit b3f9144

Please sign in to comment.