Archived
Private
Public Access
1
0

Initial commit

This commit is contained in:
2022-09-04 12:45:01 +02:00
commit f4a01d6a69
11601 changed files with 4206660 additions and 0 deletions

View File

@@ -0,0 +1,30 @@
package de.craftix.signtp;
import org.bukkit.Location;
import org.bukkit.World;
import org.bukkit.configuration.file.FileConfiguration;
public class WarpSign {
public int id;
public Location loc;
public World world;
public WarpSign() {}
public WarpSign(int id, Location loc, World world){
this.id = id;
this.loc = loc;
this.world = world;
}
public static int getFreeID(){
FileConfiguration config = Main.getPlugin().getConfig();
int id = -1;
boolean isFree = false;
while (!isFree){
id++;
if (config.contains("Sign." + id + "World")) isFree = true;
}
return id;
}
}