A feature-rich Minecraft plugin which enhances gaming experience
git clone git://soophie.de/poppy
5
api-version: 1.166
commands:7
head:8
usage: /head9
description: Sets the current held item as head.10
skull:11
usage: /skull <player>12
description: Gives a skull of the specific player.13
spawn:14
usage: /spawn15
description: Teleports to the spawn.16
invsee:13
usage: /invsee <name>17
usage: /invsee <player>18
description: Opens the inventory of a specific player.19
sethome:20
usage: /sethome21
description: Sets a new home point.22
home:23
usage: /home24
description: Teleports to the home point.25
setwarp:26
usage: /setwarp <name>27
description: Sets a new warp point.28
warp:29
usage: /warp <name>30
description: Teleports to the warp point of the specific name.31
slime:32
usage: /slime33
description: Tells if the current chunk is a slime chunk.34
r:35
usage: /r36
description: Reloads the server.37
up:38
usage: /up39
description: Places a glass block underneath.40
info:41
usage: /info42
description: Opens a book with the latest features.
48
final Directional direction = (Directional) dispenser.getBlockData();49
final Block faceBlock = dispenser.getBlock().getRelative(direction.getFacing());51
if(item.getType().isBlock() && Utils.isAir(faceBlock.getType()) && !isShulkerboxContend(item))51
if(item.getType().isBlock() && Utils.isAir(faceBlock.getType()) && !isShulkerboxContent(item))52
{53
faceBlock.setType(item.getType());54
removeSnapshotItem(dispenser, item.getType(), 1);55
}56
}58
if(isShulkerboxContend(item))58
if(isShulkerboxContent(item))59
{60
event.setCancelled(false);61
}
63
}64
}66
public boolean isShulkerboxContend(ItemStack itemStack)66
public boolean isShulkerboxContent(ItemStack itemStack)67
{68
final ItemMeta itemMeta = itemStack.getItemMeta();69
final Set<Material> shulkerboxes = Tag.SHULKER_BOXES.getValues();