Skip to content

Commit

Permalink
Merge branch 'master' into update
Browse files Browse the repository at this point in the history
  • Loading branch information
SrBedrock committed Aug 24, 2024
2 parents c64db29 + c7151e4 commit 40ba010
Show file tree
Hide file tree
Showing 3 changed files with 2 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 @@ -2091,19 +2090,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
Original file line number Diff line number Diff line change
Expand Up @@ -1914,6 +1914,8 @@ else if (materialInHand == instance.config_claims_investigationTool && hand == E
return;
}

playerData = this.dataStore.getPlayerData(player.getUniqueId());

//if he's resizing a claim and that claim hasn't been deleted since he started resizing it
if (playerData.claimResizing != null && playerData.claimResizing.inDataStore)
{
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 @@ -153,10 +153,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: /IgnorePlayer <player name>
Expand Down Expand Up @@ -271,9 +267,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 40ba010

Please sign in to comment.