mirror of
https://github.com/PaperMC/Paper.git
synced 2025-03-12 14:50:03 +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
@ -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…
Reference in New Issue
Block a user