From 2bfe8632a0bc7554c8feee7ac87d80f7e82ff95e Mon Sep 17 00:00:00 2001 From: RoboMWM Date: Sun, 2 Oct 2016 01:12:13 -0700 Subject: [PATCH] Remove /undorescue --- plugin.yml | 7 ------- .../GriefPrevention/GriefPrevention.java | 16 ---------------- 2 files changed, 23 deletions(-) diff --git a/plugin.yml b/plugin.yml index 8f28896..08d6a42 100644 --- a/plugin.yml +++ b/plugin.yml @@ -214,10 +214,6 @@ commands: description: Gives a player a manual about claiming land. usage: /ClaimBook 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 diff --git a/src/me/ryanhamshire/GriefPrevention/GriefPrevention.java b/src/me/ryanhamshire/GriefPrevention/GriefPrevention.java index 3c208af..dfca95c 100644 --- a/src/me/ryanhamshire/GriefPrevention/GriefPrevention.java +++ b/src/me/ryanhamshire/GriefPrevention/GriefPrevention.java @@ -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; }