mirror of
				https://github.com/IntellectualSites/PlotSquared.git
				synced 2025-10-26 07:03:45 +01:00 
			
		
		
		
	Compare commits
	
		
			1 Commits
		
	
	
		
			chore/mast
			...
			fix/v6/syn
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
|   | 11f001eacb | 
| @@ -40,7 +40,6 @@ import com.plotsquared.core.plot.schematic.Schematic; | ||||
| import com.plotsquared.core.plot.world.PlotAreaManager; | ||||
| import com.plotsquared.core.util.Permissions; | ||||
| import com.plotsquared.core.util.SchematicHandler; | ||||
| import com.plotsquared.core.util.TimeUtil; | ||||
| import com.plotsquared.core.util.task.RunnableVal; | ||||
| import com.plotsquared.core.util.task.TaskManager; | ||||
| import net.kyori.adventure.text.minimessage.Template; | ||||
| @@ -206,7 +205,7 @@ public class Load extends SubCommand { | ||||
|                     if (split.length < 5) { | ||||
|                         continue; | ||||
|                     } | ||||
|                     String time = TimeUtil.secToTime((System.currentTimeMillis() / 1000) - Long.parseLong(split[0])); | ||||
|                     String time = secToTime((System.currentTimeMillis() / 1000) - Long.parseLong(split[0])); | ||||
|                     String world = split[1]; | ||||
|                     PlotId id = PlotId.fromString(split[2] + ';' + split[3]); | ||||
|                     String size = split[4]; | ||||
| @@ -224,10 +223,6 @@ public class Load extends SubCommand { | ||||
|         } | ||||
|     } | ||||
|  | ||||
|     /** | ||||
|      * @deprecated Use {@link TimeUtil#secToTime(long)} | ||||
|      */ | ||||
|     @Deprecated(forRemoval = true, since = "TODO") | ||||
|     public String secToTime(long time) { | ||||
|         StringBuilder toreturn = new StringBuilder(); | ||||
|         if (time >= 33868800) { | ||||
|   | ||||
| @@ -44,27 +44,27 @@ public final class TimeUtil { | ||||
|         StringBuilder toReturn = new StringBuilder(); | ||||
|         if (time >= 33868800) { | ||||
|             int years = (int) (time / 33868800); | ||||
|             time -= years * 33868800L; | ||||
|             time -= years * 33868800; | ||||
|             toReturn.append(years).append("y "); | ||||
|         } | ||||
|         if (time >= 604800) { | ||||
|             int weeks = (int) (time / 604800); | ||||
|             time -= weeks * 604800L; | ||||
|             time -= weeks * 604800; | ||||
|             toReturn.append(weeks).append("w "); | ||||
|         } | ||||
|         if (time >= 86400) { | ||||
|             int days = (int) (time / 86400); | ||||
|             time -= days * 86400L; | ||||
|             time -= days * 86400; | ||||
|             toReturn.append(days).append("d "); | ||||
|         } | ||||
|         if (time >= 3600) { | ||||
|             int hours = (int) (time / 3600); | ||||
|             time -= hours * 3600L; | ||||
|             time -= hours * 3600; | ||||
|             toReturn.append(hours).append("h "); | ||||
|         } | ||||
|         if (time >= 60) { | ||||
|             int minutes = (int) (time / 60); | ||||
|             time -= minutes * 60L; | ||||
|             time -= minutes * 60; | ||||
|             toReturn.append(minutes).append("m "); | ||||
|         } | ||||
|         if (toReturn.length() == 0 || time > 0) { | ||||
|   | ||||
| @@ -17,7 +17,7 @@ adventure-text-minimessage = "4.1.0-SNAPSHOT" | ||||
| adventure-platform-bukkit = "4.0.1" | ||||
|  | ||||
| # Plugins | ||||
| worldedit = "7.2.10" | ||||
| worldedit = "7.2.9" | ||||
| fawe = "2.1.0" | ||||
| vault = "1.7.1" | ||||
| placeholderapi = "2.11.1" | ||||
|   | ||||
		Reference in New Issue
	
	Block a user