Remove /undorescue

This commit is contained in:
RoboMWM 2016-10-02 01:12:13 -07:00
parent e1955fb337
commit 2bfe8632a0
2 changed files with 0 additions and 23 deletions

View File

@ -214,10 +214,6 @@ commands:
description: Gives a player a manual about claiming land.
usage: /ClaimBook <player>
permission: griefprevention.claimbook
undorescue:
description: Allows a player to undo a portal trap rescue operation
usage: /UnodRescue
permission: griefprevention.undorescue
permissions:
griefprevention.createclaims:
description: Grants permission to create claims.
@ -269,9 +265,6 @@ permissions:
griefprevention.trapped:
description: Grants permission to use /Trapped.
default: true
griefprevention.undorescue:
description: Grants permission to use /UndoRescue
default: true
griefprevention.claimslistother:
description: Grants permission to use /ClaimsList to get another player's information.
default: op

View File

@ -2730,22 +2730,6 @@ public class GriefPrevention extends JavaPlugin
return true;
}
else if(cmd.getName().equalsIgnoreCase("undorescue"))
{
Location location = dataStore.getPlayerData(player.getUniqueId()).portalTrappedLocation;
if (location == null)
{
//TODO: tell player they were not initially rescued (if necessary?)
return true;
}
//Start a new rescue task in case the player was indeed trapped, but dumbly sent the command anyway
startRescueTask(player, player.getLocation());
player.teleport(location);
dataStore.getPlayerData(player.getUniqueId()).portalTrappedLocation = null;
return true;
}
return false;
}