mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-24 09:58:00 +01:00
cab333b217
Don't send requests of every player was found in the global api cache SpigotMC/Spigot@841270ff1e Correctly set the response code for the cached lookups and return the ... SpigotMC/Spigot@f170b7899c Don't try and re-set the global api cache on reload SpigotMC/Spigot@b410a00a66 Use a compile time sneaky throw hack. SpigotMC/Spigot@508462b96b Fix a missed rename in WorldGenGroundBush SpigotMC/Spigot@0614d8fae9
58 lines
2.6 KiB
Diff
58 lines
2.6 KiB
Diff
From 4abb7113bcfaae67d5d20c7764d4fb045b6c9e1c Mon Sep 17 00:00:00 2001
|
|
From: md_5 <git@md-5.net>
|
|
Date: Sat, 12 Apr 2014 21:37:12 +1000
|
|
Subject: [PATCH] Update Warning
|
|
|
|
|
|
diff --git a/src/main/java/org/bukkit/craftbukkit/Main.java b/src/main/java/org/bukkit/craftbukkit/Main.java
|
|
index 008e037..1977722 100644
|
|
--- a/src/main/java/org/bukkit/craftbukkit/Main.java
|
|
+++ b/src/main/java/org/bukkit/craftbukkit/Main.java
|
|
@@ -1,10 +1,13 @@
|
|
package org.bukkit.craftbukkit;
|
|
|
|
+import java.io.BufferedReader;
|
|
import java.io.File;
|
|
import java.io.IOException;
|
|
+import java.io.InputStreamReader;
|
|
import java.text.SimpleDateFormat;
|
|
import java.util.Arrays;
|
|
import java.util.List;
|
|
+import java.util.concurrent.TimeUnit;
|
|
import java.util.logging.Level;
|
|
import java.util.logging.Logger;
|
|
import joptsimple.OptionParser;
|
|
@@ -15,7 +18,28 @@ public class Main {
|
|
public static boolean useJline = true;
|
|
public static boolean useConsole = true;
|
|
|
|
- public static void main(String[] args) {
|
|
+ public static void main(String[] args) throws IOException {
|
|
+ // Spigot Start
|
|
+ File lock = new File( ".update-lock" );
|
|
+ if ( !new File( "update-lock" ).exists() && !lock.exists() && System.getProperty( "IReallyKnowWhatIAmDoingThisUpdate" ) == null )
|
|
+ {
|
|
+ System.err.println( "WARNING: This Minecraft update alters the way in which saved data is stored." );
|
|
+ System.err.println( "Please ensure your server is in the correct online/offline mode state, as the changes made are PERMANENT" );
|
|
+ System.err.println( "If you are running in offline mode, but your BungeeCord is in online mode, it is imperative that BungeeCord support is enabled in spigot.yml and BungeeCord's config.yml" );
|
|
+ System.err.println( "By typing `yes` you acknowledge that you have taken the necessary backups and are aware of this conversion" );
|
|
+ System.err.println( "Please type yes to continue starting the server. You have been warned :)" );
|
|
+ System.err.println( "See http://www.spigotmc.org/wiki/uuid-conversion/ if you have any questions and remember BACKUP BACKUP BACKUP" );
|
|
+ System.err.println( "=================================================================================" );
|
|
+ System.err.println( "Starting server in 10 seconds" );
|
|
+ lock.createNewFile();
|
|
+ try
|
|
+ {
|
|
+ Thread.sleep( TimeUnit.SECONDS.toMillis( 10 ) );
|
|
+ } catch ( InterruptedException ex )
|
|
+ {
|
|
+ }
|
|
+ }
|
|
+ // Spigot End
|
|
// Todo: Installation script
|
|
OptionParser parser = new OptionParser() {
|
|
{
|
|
--
|
|
1.9.1
|
|
|