Skip to content

Commit

Permalink
Remove gpblockinfo (GriefPrevention#2355)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jikoo authored Aug 23, 2024
1 parent 330fd1e commit c7151e4
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 21 deletions.
14 changes: 0 additions & 14 deletions src/main/java/me/ryanhamshire/GriefPrevention/GriefPrevention.java
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
import org.bukkit.Bukkit;
import org.bukkit.ChatColor;
import org.bukkit.Chunk;
import org.bukkit.FluidCollisionMode;
import org.bukkit.GameMode;
import org.bukkit.Location;
import org.bukkit.Material;
Expand Down Expand Up @@ -2089,19 +2088,6 @@ else if (cmd.getName().equalsIgnoreCase("gpreload"))
return true;
}

//gpblockinfo
else if (cmd.getName().equalsIgnoreCase("gpblockinfo") && player != null)
{
ItemStack inHand = player.getInventory().getItemInMainHand();
player.sendMessage("In Hand: " + inHand.getType().name());

Block inWorld = player.getTargetBlockExact(300, FluidCollisionMode.ALWAYS);
if (inWorld == null) inWorld = player.getEyeLocation().getBlock();
player.sendMessage("In World: " + inWorld.getType().name());

return true;
}

//ignoreplayer
else if (cmd.getName().equalsIgnoreCase("ignoreplayer") && player != null)
{
Expand Down
7 changes: 0 additions & 7 deletions src/main/resources/plugin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -154,10 +154,6 @@ commands:
description: Reloads Grief Prevention's configuration settings. Does NOT totally reload the entire plugin.
usage: /<command>
permission: griefprevention.reload
gpblockinfo:
description: Allows an administrator to get technical information about blocks in the world and items in hand.
usage: /<command>
permission: griefprevention.gpblockinfo
ignoreplayer:
description: Ignores another player's chat messages.
usage: /<command> <player name>
Expand Down Expand Up @@ -272,9 +268,6 @@ permissions:
griefprevention.seeclaimsize:
description: Allows a player to see claim size for other players claims when right clicking with investigation tool
default: op
griefprevention.gpblockinfo:
description: Grants access to /gpblockinfo.
default: op
griefprevention.overrideclaimcountlimit:
description: Allows players to create more claims than the limit specified by the config.
default: op
Expand Down

0 comments on commit c7151e4

Please sign in to comment.