Remove /undorescue
This commit is contained in:
@@ -214,10 +214,6 @@ commands:
|
|||||||
description: Gives a player a manual about claiming land.
|
description: Gives a player a manual about claiming land.
|
||||||
usage: /ClaimBook <player>
|
usage: /ClaimBook <player>
|
||||||
permission: griefprevention.claimbook
|
permission: griefprevention.claimbook
|
||||||
undorescue:
|
|
||||||
description: Allows a player to undo a portal trap rescue operation
|
|
||||||
usage: /UnodRescue
|
|
||||||
permission: griefprevention.undorescue
|
|
||||||
permissions:
|
permissions:
|
||||||
griefprevention.createclaims:
|
griefprevention.createclaims:
|
||||||
description: Grants permission to create claims.
|
description: Grants permission to create claims.
|
||||||
@@ -269,9 +265,6 @@ permissions:
|
|||||||
griefprevention.trapped:
|
griefprevention.trapped:
|
||||||
description: Grants permission to use /Trapped.
|
description: Grants permission to use /Trapped.
|
||||||
default: true
|
default: true
|
||||||
griefprevention.undorescue:
|
|
||||||
description: Grants permission to use /UndoRescue
|
|
||||||
default: true
|
|
||||||
griefprevention.claimslistother:
|
griefprevention.claimslistother:
|
||||||
description: Grants permission to use /ClaimsList to get another player's information.
|
description: Grants permission to use /ClaimsList to get another player's information.
|
||||||
default: op
|
default: op
|
||||||
|
|||||||
@@ -2730,22 +2730,6 @@ public class GriefPrevention extends JavaPlugin
|
|||||||
|
|
||||||
return true;
|
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;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user