mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-01 17:01:56 +01:00
SPIGOT-1499: Outdated server message not working
This commit is contained in:
parent
fbdb33981e
commit
02af1ff93f
2 changed files with 3 additions and 3 deletions
|
@ -13,12 +13,12 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||||
|
|
||||||
if (packethandshakinginsetprotocol.b() > 47) {
|
if (packethandshakinginsetprotocol.b() > 47) {
|
||||||
- chatcomponenttext = new ChatComponentText("Outdated server! I\'m still on 1.8.8");
|
- chatcomponenttext = new ChatComponentText("Outdated server! I\'m still on 1.8.8");
|
||||||
+ chatcomponenttext = new ChatComponentText( java.text.MessageFormat.format( org.spigotmc.SpigotConfig.outdatedServerMessage, "1.8.8" ) ); // Spigot
|
+ chatcomponenttext = new ChatComponentText( java.text.MessageFormat.format( org.spigotmc.SpigotConfig.outdatedServerMessage.replaceAll("'", "''"), "1.8.8" ) ); // Spigot
|
||||||
this.b.handle(new PacketLoginOutDisconnect(chatcomponenttext));
|
this.b.handle(new PacketLoginOutDisconnect(chatcomponenttext));
|
||||||
this.b.close(chatcomponenttext);
|
this.b.close(chatcomponenttext);
|
||||||
} else if (packethandshakinginsetprotocol.b() < 47) {
|
} else if (packethandshakinginsetprotocol.b() < 47) {
|
||||||
- chatcomponenttext = new ChatComponentText("Outdated client! Please use 1.8.8");
|
- chatcomponenttext = new ChatComponentText("Outdated client! Please use 1.8.8");
|
||||||
+ chatcomponenttext = new ChatComponentText( java.text.MessageFormat.format( org.spigotmc.SpigotConfig.outdatedClientMessage, "1.8.8" ) ); // Spigot
|
+ chatcomponenttext = new ChatComponentText( java.text.MessageFormat.format( org.spigotmc.SpigotConfig.outdatedClientMessage.replaceAll("'", "''"), "1.8.8" ) ); // Spigot
|
||||||
this.b.handle(new PacketLoginOutDisconnect(chatcomponenttext));
|
this.b.handle(new PacketLoginOutDisconnect(chatcomponenttext));
|
||||||
this.b.close(chatcomponenttext);
|
this.b.close(chatcomponenttext);
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -206,7 +206,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||||
+ void applyToItem(final NBTTagCompound tag) { // Spigot - make final
|
+ void applyToItem(final NBTTagCompound tag) { // Spigot - make final
|
||||||
super.applyToItem(tag);
|
super.applyToItem(tag);
|
||||||
|
|
||||||
if (hasOwner()) {
|
if (profile != null) {
|
||||||
NBTTagCompound owner = new NBTTagCompound();
|
NBTTagCompound owner = new NBTTagCompound();
|
||||||
GameProfileSerializer.serialize(owner, profile);
|
GameProfileSerializer.serialize(owner, profile);
|
||||||
- tag.set(SKULL_OWNER.NBT, owner);
|
- tag.set(SKULL_OWNER.NBT, owner);
|
||||||
|
|
Loading…
Reference in a new issue