Archived
Private
Public Access
1
0
This repository has been archived on 2026-02-04. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
ProjectBackup/Plugins/Old/Signtp/src/de/craftix/signtp/WarpSign.java
2022-09-04 12:45:01 +02:00

31 lines
699 B
Java

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;
}
}