mirror of
https://github.com/AtlasMediaGroup/TotalFreedomMod.git
synced 2025-06-11 13:33:54 +00:00
fixed
offline player lookup should work now, but i still need to allow for nbt data lookup as well.
This commit is contained in:
@ -10,8 +10,8 @@ import org.bukkit.entity.Player;
|
||||
import org.bukkit.inventory.ItemStack;
|
||||
|
||||
@CommandPermissions(level = Rank.SUPER_ADMIN, source = SourceType.BOTH)
|
||||
@CommandParameters(description = "View player inventory information of players.", usage = "/<command> <player> <slot>", aliases = "inv")
|
||||
public class Command_inventory extends FreedomCommand
|
||||
@CommandParameters(description = "View inventory information of players.", usage = "/<command> <player> <slot>", aliases = "il,invlookup")
|
||||
public class Command_inventorylookup extends FreedomCommand
|
||||
{
|
||||
|
||||
@Override
|
||||
@ -48,7 +48,7 @@ public class Command_inventory extends FreedomCommand
|
||||
msg(" - Amount: " + stack.getAmount());
|
||||
if (inv.hasNBT(slot))
|
||||
{
|
||||
msg(" - NBT Data: " + inv.getNBT(slot));
|
||||
msg(" - NBT Data: " + inv.getNBT(slot).toString());
|
||||
}
|
||||
return true;
|
||||
}
|
Reference in New Issue
Block a user