move project to Java 21 and the 1.21 Paper API

This commit is contained in:
Jack
2024-07-23 23:04:32 -04:00
parent c4c5ca7558
commit d2796f7992
10 changed files with 28 additions and 26 deletions

View File

@@ -1,6 +1,6 @@
package io.github.jack1424.realtimeweather;
package io.github.jack1424.realTimeWeather;
import io.github.jack1424.realtimeweather.requests.WeatherRequestObject;
import io.github.jack1424.realTimeWeather.requests.WeatherRequestObject;
import org.bukkit.World;
import org.bukkit.configuration.file.FileConfiguration;
import org.json.simple.parser.ParseException;

View File

@@ -1,4 +1,4 @@
package io.github.jack1424.realtimeweather;
package io.github.jack1424.realTimeWeather;
import org.bukkit.World;
import org.bukkit.entity.Player;

View File

@@ -1,6 +1,6 @@
package io.github.jack1424.realtimeweather;
package io.github.jack1424.realTimeWeather;
import io.github.jack1424.realtimeweather.requests.*;
import io.github.jack1424.realTimeWeather.requests.*;
import org.bstats.bukkit.Metrics;
import org.bstats.charts.SimplePie;
import org.bukkit.World;
@@ -11,7 +11,6 @@ import java.time.LocalTime;
import java.util.Calendar;
import java.util.logging.Logger;
@SuppressWarnings("deprecation")
public final class RealTimeWeather extends JavaPlugin {
private Logger logger;
private ConfigManager config;
@@ -124,7 +123,7 @@ public final class RealTimeWeather extends JavaPlugin {
config.setWeatherEnabled(false);
return;
}
for (World world : config.getWeatherSyncWorlds())
world.setGameRuleValue("doWeatherCycle", "false");

View File

@@ -1,4 +1,4 @@
package io.github.jack1424.realtimeweather.requests;
package io.github.jack1424.realTimeWeather.requests;
import org.json.simple.JSONArray;
import org.json.simple.JSONObject;

View File

@@ -1,4 +1,4 @@
package io.github.jack1424.realtimeweather.requests;
package io.github.jack1424.realTimeWeather.requests;
import org.json.simple.JSONObject;
import org.json.simple.parser.ParseException;

View File

@@ -1,4 +1,4 @@
package io.github.jack1424.realtimeweather.requests;
package io.github.jack1424.realTimeWeather.requests;
import org.json.simple.JSONArray;
import org.json.simple.JSONObject;

View File

@@ -1,4 +1,4 @@
# RealTimeWeather Configuration File (v1.4.0)
# RealTimeWeather Configuration File (v2.0.0)
# You can find detailed instructions at: https://github.com/Jack1424/RealTimeWeather/wiki#editing-the-configuration-file
######################################## Real Time Weather Settings ##################################################

View File

@@ -1,7 +1,8 @@
main: io.github.jack1424.realTimeWeather.RealTimeWeather
name: RealTimeWeather
version: '${version}'
description: Sync your server time and weather with the real world
main: io.github.jack1424.realtimeweather.RealTimeWeather
description: Sync your Minecraft server's time and weather with the real world
api-version: '1.21'
load: POSTWORLD
authors: [Jack1424]
website: https://github.com/Jack1424/RealTimeWeather
author: Jack1424
website: github.com/Jack1424/RealTimeWeather