mirror of
https://github.com/PaperMC/Paper.git
synced 2025-03-13 11:18:23 +01:00
#954: Add "Allow Server Listings" API
By: Noah van der Aa <ndvdaa@gmail.com>
This commit is contained in:
parent
e3c01e2bf0
commit
683f54a1e7
1 changed files with 5 additions and 0 deletions
|
@ -1720,4 +1720,9 @@ public class CraftPlayer extends CraftHumanEntity implements Player {
|
|||
getHandle().openItemGui(org.bukkit.craftbukkit.inventory.CraftItemStack.asNMSCopy(book), net.minecraft.world.EnumHand.MAIN_HAND);
|
||||
getInventory().setItemInMainHand(hand);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isAllowingServerListings() {
|
||||
return getHandle().allowsListing();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue