mirror of
https://github.com/darksaid98/nightcore-spigot.git
synced 2026-12-04 06:28:51 +00:00
v2.7.10
This commit is contained in:
1 parent
fd3cdb4529
commit
abc8d5d054
25 files changed
+364
-54
No files matched your search
+2
-2
@@ -6,7 +6,7 @@
|
||||
<parent>
|
||||
<groupId>su.nightexpress.nightcore</groupId>
|
||||
<artifactId>nightcore</artifactId>
|
||||
<version>2.7.9</version>
|
||||
<version>2.7.10</version>
|
||||
</parent>
|
||||
|
||||
<artifactId>spigot</artifactId>
|
||||
@@ -35,7 +35,7 @@
|
||||
<dependency>
|
||||
<groupId>su.nightexpress.nightcore</groupId>
|
||||
<artifactId>bridge</artifactId>
|
||||
<version>2.7.9</version>
|
||||
<version>2.7.10</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
|
||||
@@ -8,6 +8,7 @@ import org.bukkit.attribute.Attribute;
|
||||
import org.bukkit.command.Command;
|
||||
import org.bukkit.command.SimpleCommandMap;
|
||||
import org.bukkit.enchantments.Enchantment;
|
||||
import org.bukkit.entity.Entity;
|
||||
import org.bukkit.entity.EntityType;
|
||||
import org.bukkit.entity.Player;
|
||||
import org.bukkit.inventory.InventoryView;
|
||||
@@ -220,6 +221,20 @@ public class SpigotBridge implements Software {
|
||||
|
||||
|
||||
|
||||
@Override
|
||||
public void setCustomName(@NotNull Entity entity, @NotNull NightComponent component) {
|
||||
entity.setCustomName(component.toLegacy());
|
||||
}
|
||||
|
||||
@Override
|
||||
@Nullable
|
||||
public String getEntityName(@NotNull Entity entity) {
|
||||
String name = entity.getCustomName();
|
||||
return name == null ? null : LegacyColors.plainColors(name);
|
||||
}
|
||||
|
||||
|
||||
|
||||
@Override
|
||||
@NotNull
|
||||
public ItemStack setType(@NotNull ItemStack itemStack, @NotNull Material material) {
|
||||
|
||||
Reference in new issue
Block a user