3
0
Mirror von https://github.com/St3venAU/ArmorStandTools.git synchronisiert 2024-12-27 12:00:07 +01:00
Dieser Commit ist enthalten in:
Steven 2017-07-16 13:09:06 +08:00
Ursprung d286456489
Commit 03ed547630
5 geänderte Dateien mit 10 neuen und 6 gelöschten Zeilen

Datei anzeigen

@ -97,7 +97,7 @@ class ArmorStandGUI implements Listener {
case INVUL:
return Utils.setLore(item, ChatColor.AQUA + Config.invul + ": " + (Main.nms.isInvulnerable(as) ? (ChatColor.GREEN + Config.isOn) : (ChatColor.RED + Config.isOff)));
case SLOTS:
return Utils.setLore(item, ChatColor.AQUA + Config.equip + ": " + (Main.nms.getDisabledSlots(as) == 2039583 ? (ChatColor.GREEN + Config.locked) : (ChatColor.RED + Config.unLocked)));
return Utils.setLore(item, ChatColor.AQUA + Config.equip + ": " + (Main.nms.equipmentLocked(as) ? (ChatColor.GREEN + Config.locked) : (ChatColor.RED + Config.unLocked)));
case NAME:
return Utils.setLore(item, ChatColor.AQUA + Config.currently + ": " + (as.getCustomName() == null ? (ChatColor.BLUE + Config.none) : (ChatColor.GREEN + as.getCustomName())));
case PHEAD:

Datei anzeigen

@ -100,12 +100,16 @@ abstract class NMS {
}
f.setAccessible(true);
try {
f.set(nmsEntity, slotsDisabled ? 2039583 : 0);
f.set(nmsEntity, slotsDisabled ? 0xFFFFFF : 0);
} catch (IllegalAccessException e) {
e.printStackTrace();
}
}
boolean equipmentLocked(ArmorStand as) {
return getDisabledSlots(as) == 0xFFFFFF;
}
Object getNmsEntity(org.bukkit.entity.Entity entity) {
try {
return entity.getClass().getMethod("getHandle").invoke(entity);
@ -382,7 +386,7 @@ abstract class NMS {
clone.setCustomName(as.getCustomName());
clone.setCustomNameVisible(as.isCustomNameVisible());
clone.setSmall(as.isSmall());
setSlotsDisabled(clone, getDisabledSlots(as) == 2039583);
setSlotsDisabled(clone, getDisabledSlots(as) == 0xFFFFFF);
setInvulnerable(clone, isInvulnerable(as));
if(Main.nms.supportsScoreboardTags()) {
ArmorStandCmd.cloneASCommand(as, clone);

Datei anzeigen

@ -4,7 +4,7 @@
#
# Main Config
#
# File generated by: v2.4.1
# File generated by: v2.4.2
# (If this is not the version you are running, consider deleting this
# config to allow it to be re-created. There may be new config options)
#

Datei anzeigen

@ -4,7 +4,7 @@
#
# Language Config
#
# File generated by: v2.4.1
# File generated by: v2.4.2
# (If this is not the version you are running, consider deleting this
# config to allow it to be re-created. There may be new config options)
#

Datei anzeigen

@ -1,6 +1,6 @@
main: com.gmail.St3venAU.plugins.ArmorStandTools.Main
name: ArmorStandTools
version: 2.4.1
version: 2.4.2
author: St3venAU
description: Armor stand manipulation tools
softdepend: [WorldGuard, PlotSquared]