mirror of
https://github.com/filoghost/HolographicDisplays.git
synced 2024-12-20 15:57:49 +01:00
Fix vertical spacing & re-add the permission "holograms.admin"
This commit is contained in:
parent
a3e9119f65
commit
2b32075429
@ -35,7 +35,7 @@ public abstract class HologramSubCommand {
|
||||
|
||||
public final boolean hasPermission(CommandSender sender) {
|
||||
if (permission == null) return true;
|
||||
return sender.hasPermission(permission);
|
||||
return sender.hasPermission("holograms.admin") || sender.hasPermission(permission);
|
||||
}
|
||||
|
||||
public abstract String getPossibleArguments();
|
||||
|
@ -135,7 +135,7 @@ public class CraftHologram extends HologramBase implements Hologram {
|
||||
for (String text : textLines) {
|
||||
|
||||
if (text.length() >= 5 && text.substring(0, 5).toLowerCase().equals("icon:")) {
|
||||
|
||||
|
||||
// It's a floating icon!
|
||||
ItemStack icon;
|
||||
try {
|
||||
@ -147,7 +147,7 @@ public class CraftHologram extends HologramBase implements Hologram {
|
||||
// If the current Y has been changed, the item is NOT on top of the hologram.
|
||||
if (currentY != this.y) {
|
||||
// Extra space for the floating item...
|
||||
currentY -= 0.27;
|
||||
currentY -= 0.52;
|
||||
}
|
||||
|
||||
FloatingItemDoubleEntity lineEntity = new FloatingItemDoubleEntity(icon);
|
||||
@ -232,7 +232,7 @@ public class CraftHologram extends HologramBase implements Hologram {
|
||||
|
||||
if (currentY != loc.getY()) {
|
||||
// Extra space for the floating item...
|
||||
currentY -= 0.27;
|
||||
currentY -= 0.52;
|
||||
}
|
||||
|
||||
lineEntity.teleport(loc.getX(), currentY, loc.getZ());
|
||||
|
Loading…
Reference in New Issue
Block a user