commit ca8eec096a90327cc94e02f2a532b3e4356f1750
parent c634d2a7350a3c56ecb00882d8a30085ac7b844e
Author: typable <contact@typable.dev>
Date: Thu, 23 Feb 2023 12:51:01 +0100
fix: Fixed spelling errors and added command descriptions
Diffstat:
2 files changed, 20 insertions(+), 4 deletions(-)
diff --git a/res/plugin.yml b/res/plugin.yml
@@ -5,22 +5,38 @@ author: typable, chunksize
api-version: 1.16
commands:
head:
+ usage: /head
+ description: Sets the current held item as head.
skull:
usage: /skull <player>
+ description: Gives a skull of the specific player.
spawn:
usage: /spawn
+ description: Teleports to the spawn.
invsee:
- usage: /invsee <name>
+ usage: /invsee <player>
+ description: Opens the inventory of a specific player.
sethome:
+ usage: /sethome
+ description: Sets a new home point.
home:
+ usage: /home
+ description: Teleports to the home point.
setwarp:
usage: /setwarp <name>
+ description: Sets a new warp point.
warp:
usage: /warp <name>
+ description: Teleports to the warp point of the specific name.
slime:
usage: /slime
+ description: Tells if the current chunk is a slime chunk.
r:
usage: /r
+ description: Reloads the server.
up:
usage: /up
+ description: Places a glass block underneath.
info:
+ usage: /info
+ description: Opens a book with the latest features.
diff --git a/src/poppy/modules/AutoPlacerModule.java b/src/poppy/modules/AutoPlacerModule.java
@@ -48,14 +48,14 @@ public class AutoPlacerModule implements Listener
final Directional direction = (Directional) dispenser.getBlockData();
final Block faceBlock = dispenser.getBlock().getRelative(direction.getFacing());
- if(item.getType().isBlock() && Utils.isAir(faceBlock.getType()) && !isShulkerboxContend(item))
+ if(item.getType().isBlock() && Utils.isAir(faceBlock.getType()) && !isShulkerboxContent(item))
{
faceBlock.setType(item.getType());
removeSnapshotItem(dispenser, item.getType(), 1);
}
}
- if(isShulkerboxContend(item))
+ if(isShulkerboxContent(item))
{
event.setCancelled(false);
}
@@ -63,7 +63,7 @@ public class AutoPlacerModule implements Listener
}
}
- public boolean isShulkerboxContend(ItemStack itemStack)
+ public boolean isShulkerboxContent(ItemStack itemStack)
{
final ItemMeta itemMeta = itemStack.getItemMeta();
final Set<Material> shulkerboxes = Tag.SHULKER_BOXES.getValues();