mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-26 07:06:44 +01:00
correct update messaging
This commit is contained in:
parent
4ad90d423d
commit
637dd7d0c2
@ -235,7 +235,6 @@ public class PlayerEvents extends PlotListener implements Listener {
|
|||||||
private Field fieldPlayer;
|
private Field fieldPlayer;
|
||||||
private PlayerMoveEvent moveTmp;
|
private PlayerMoveEvent moveTmp;
|
||||||
private String internalVersion;
|
private String internalVersion;
|
||||||
private String spigotVersion;
|
|
||||||
|
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
@ -664,8 +663,10 @@ public class PlayerEvents extends PlotListener implements Listener {
|
|||||||
new PlotMessage("-----------------------------------").send(pp);
|
new PlotMessage("-----------------------------------").send(pp);
|
||||||
new PlotMessage(Captions.PREFIX + "There appears to be a PlotSquared update available!")
|
new PlotMessage(Captions.PREFIX + "There appears to be a PlotSquared update available!")
|
||||||
.color("$1").send(pp);
|
.color("$1").send(pp);
|
||||||
new PlotMessage(Captions.PREFIX + "The latest version is " + spigotVersion).color("$1")
|
new PlotMessage(
|
||||||
.send(pp);
|
Captions.PREFIX + "&6You are running version " + UpdateUtility.internalVersion
|
||||||
|
.versionString() + ", &6latest version is " + UpdateUtility.spigotVersion)
|
||||||
|
.color("$1").send(pp);
|
||||||
new PlotMessage(Captions.PREFIX + "Download at:").color("$1").send(pp);
|
new PlotMessage(Captions.PREFIX + "Download at:").color("$1").send(pp);
|
||||||
player.sendMessage(" https://www.spigotmc.org/resources/77506/updates");
|
player.sendMessage(" https://www.spigotmc.org/resources/77506/updates");
|
||||||
new PlotMessage("-----------------------------------").send(pp);
|
new PlotMessage("-----------------------------------").send(pp);
|
||||||
|
Loading…
Reference in New Issue
Block a user