fix 2 bugs

This commit is contained in:
yourfriendoss 2024-04-01 00:03:29 +03:00
parent 2604e8f4dc
commit 97dd6ea316
3 changed files with 2 additions and 8 deletions

View file

@ -46,11 +46,6 @@
<groupId>net.kyori</groupId> <groupId>net.kyori</groupId>
<artifactId>adventure-text-minimessage</artifactId> <artifactId>adventure-text-minimessage</artifactId>
<version>4.13.0</version> <version>4.13.0</version>
</dependency>
<dependency>
<groupId>net.kyori</groupId>
<artifactId>adventure-text-serializer-legacy</artifactId>
<version>4.13.0</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>com.github.MilkBowl</groupId> <groupId>com.github.MilkBowl</groupId>

View file

@ -64,7 +64,6 @@ import lv.pi.animalrp.util.Emote;
import lv.pi.animalrp.util.Mood; import lv.pi.animalrp.util.Mood;
import net.kyori.adventure.text.minimessage.MiniMessage; import net.kyori.adventure.text.minimessage.MiniMessage;
import net.milkbowl.vault.chat.Chat; import net.milkbowl.vault.chat.Chat;
import net.milkbowl.vault.economy.Economy;
public class AnimalRP extends JavaPlugin { public class AnimalRP extends JavaPlugin {
public static HashMap<UUID, Animal> users; public static HashMap<UUID, Animal> users;

View file

@ -90,11 +90,11 @@ public class PlayerChat implements Listener {
String prefix = AnimalRP.vaultChat.getPlayerPrefix(event.getPlayer()); String prefix = AnimalRP.vaultChat.getPlayerPrefix(event.getPlayer());
if(suffix != null) { if(suffix != null) {
csuffix = Component.text(suffix); csuffix = AnimalRP.mm.deserialize(suffix);
} }
if(prefix != null) { if(prefix != null) {
cprefix = Component.text(prefix); cprefix = AnimalRP.mm.deserialize(prefix);
} }
} }