mirror of
https://github.com/TotalFreedomMC/TFGuilds.git
synced 2024-06-02 01:41:19 +00:00
13c6063474
* adds guild warps * some more message standardization * formatting * alphabetize help subcommand and guild command
44 lines
1 KiB
Java
44 lines
1 KiB
Java
package me.totalfreedom.tfguilds.guild;
|
|
|
|
import lombok.Getter;
|
|
import me.totalfreedom.tfguilds.TFGuilds;
|
|
import org.bukkit.World;
|
|
import org.bukkit.entity.Player;
|
|
|
|
@Getter
|
|
public class GuildWarp
|
|
{
|
|
private static final TFGuilds plugin = TFGuilds.getPlugin();
|
|
|
|
private final String iguild;
|
|
private final String warpName;
|
|
private final double x;
|
|
private final double y;
|
|
private final double z;
|
|
private final World world;
|
|
|
|
public GuildWarp(String iguild, String warpName, double x, double y, double z, World world)
|
|
{
|
|
this.iguild = iguild;
|
|
this.warpName = warpName;
|
|
this.x = x;
|
|
this.y = y;
|
|
this.z = z;
|
|
this.world = world;
|
|
}
|
|
|
|
public static GuildWarp createGuildWarp(String identifier, String name, Player player)
|
|
{
|
|
return plugin.warpData.create(identifier, name, player);
|
|
}
|
|
|
|
public void save()
|
|
{
|
|
plugin.warpData.save(this);
|
|
}
|
|
|
|
public void delete()
|
|
{
|
|
plugin.warpData.delete(this);
|
|
}
|
|
} |