mirror of
https://github.com/darksaid98/nightcore-spigot.git
synced 2026-12-03 22:16:57 +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>paper</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>
|
||||
|
||||
|
||||
@@ -16,6 +16,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;
|
||||
@@ -210,6 +211,20 @@ public class PaperBridge implements Software {
|
||||
|
||||
|
||||
|
||||
@Override
|
||||
public void setCustomName(@NotNull Entity entity, @NotNull NightComponent component) {
|
||||
entity.customName(fromNightComponent(component));
|
||||
}
|
||||
|
||||
@Override
|
||||
@Nullable
|
||||
public String getEntityName(@NotNull Entity entity) {
|
||||
Component component = entity.customName();
|
||||
return component == null ? null : serializeComponent(component);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
@Override
|
||||
@NotNull
|
||||
|
||||
Reference in new issue
Block a user