Make the PL update command less weird text

This commit is contained in:
libraryaddict 2023-03-19 12:09:12 +13:00
parent 2cf09d7aa5
commit b29d63c8ba
2 changed files with 5 additions and 2 deletions

View File

@ -40,7 +40,7 @@ public class LDUpdateProtocolLib implements LDCommand {
return;
}
sender.sendMessage(ChatColor.RED + "Please hold, now downloading..");
sender.sendMessage(ChatColor.RED + "Please hold, now downloading ProtocolLib..");
new BukkitRunnable() {
@Override
@ -53,7 +53,7 @@ public class LDUpdateProtocolLib implements LDCommand {
new BukkitRunnable() {
@Override
public void run() {
sender.sendMessage(ChatColor.RED + "Update success! Restart server to finish update!");
sender.sendMessage(ChatColor.RED + "Download success! Restart server to finish update!");
}
}.runTask(LibsDisguises.getInstance());
} catch (Exception ex) {

View File

@ -2,6 +2,8 @@ package me.libraryaddict.disguise.disguisetypes.watchers;
import me.libraryaddict.disguise.disguisetypes.Disguise;
import me.libraryaddict.disguise.disguisetypes.MetaIndex;
import me.libraryaddict.disguise.utilities.reflection.NmsVersion;
import me.libraryaddict.disguise.utilities.reflection.annotations.NmsRemovedIn;
import java.util.Optional;
import java.util.UUID;
@ -17,6 +19,7 @@ public abstract class AbstractHorseWatcher extends AgeableWatcher {
return getData(MetaIndex.HORSE_OWNER).orElse(null);
}
@NmsRemovedIn(NmsVersion.v1_19_R3)
public void setOwner(UUID uuid) {
setData(MetaIndex.HORSE_OWNER, Optional.of(uuid));
sendData(MetaIndex.HORSE_OWNER);