fix wrong parameter used in /gpblockinfo, closes #313
This commit is contained in:
parent
0581f7314a
commit
d8e0a094e4
|
|
@ -2631,10 +2631,10 @@ public class GriefPrevention extends JavaPlugin
|
||||||
else if(cmd.getName().equalsIgnoreCase("gpblockinfo") && player != null)
|
else if(cmd.getName().equalsIgnoreCase("gpblockinfo") && player != null)
|
||||||
{
|
{
|
||||||
ItemStack inHand = player.getItemInHand();
|
ItemStack inHand = player.getItemInHand();
|
||||||
player.sendMessage("In Hand: " + String.format("%s(%d:%s)", inHand.getType().name(), inHand.getType(), inHand.getData().getData()));
|
player.sendMessage("In Hand: " + String.format("%s(dValue:%s)", inHand.getType().name(), inHand.getData().getData()));
|
||||||
|
|
||||||
Block inWorld = GriefPrevention.getTargetNonAirBlock(player, 300);
|
Block inWorld = GriefPrevention.getTargetNonAirBlock(player, 300);
|
||||||
player.sendMessage("In World: " + String.format("%s(%d:%s)", inWorld.getType().name(), inWorld.getType(), inWorld.getData()));
|
player.sendMessage("In World: " + String.format("%s(dValue:%s)", inWorld.getType().name(), inWorld.getData()));
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user