package com.intellectualcrafters.plot.api; import com.intellectualcrafters.configuration.file.YamlConfiguration; import com.intellectualcrafters.plot.PS; import com.intellectualcrafters.plot.commands.SubCommand; import com.intellectualcrafters.plot.config.C; import com.intellectualcrafters.plot.flag.Flag; import com.intellectualcrafters.plot.flag.FlagManager; import com.intellectualcrafters.plot.flag.Flags; import com.intellectualcrafters.plot.object.Plot; import com.intellectualcrafters.plot.object.PlotArea; import com.intellectualcrafters.plot.object.PlotId; import com.intellectualcrafters.plot.object.PlotManager; import com.intellectualcrafters.plot.object.PlotPlayer; import com.intellectualcrafters.plot.util.ChunkManager; import com.intellectualcrafters.plot.util.MainUtil; import com.intellectualcrafters.plot.util.Permissions; import com.intellectualcrafters.plot.util.SchematicHandler; import com.intellectualcrafters.plot.util.UUIDHandler; import com.intellectualcrafters.plot.util.block.GlobalBlockQueue; import com.intellectualcrafters.plot.uuid.UUIDWrapper; import com.plotsquared.bukkit.util.BukkitUtil; import java.util.ArrayList; import java.util.Collection; import java.util.Collections; import java.util.HashSet; import java.util.Set; import java.util.UUID; import org.bukkit.Location; import org.bukkit.OfflinePlayer; import org.bukkit.World; import org.bukkit.entity.Player; import org.bukkit.plugin.java.JavaPlugin; /** * PlotSquared API. * *
Useful classes: *
Please note that PlotSquared can be configured to provide * different UUIDs than bukkit * * @see PlotPlayer#wrap(Object) * * @param uuid the uuid of the player to wrap * @return a {@code PlotPlayer} */ public PlotPlayer wrapPlayer(UUID uuid) { return PlotPlayer.wrap(uuid); } /** * Get the PlotPlayer for a username. * * @see PlotPlayer#wrap(Object) * * @param player the player to wrap * @return a {@code PlotPlayer} */ public PlotPlayer wrapPlayer(String player) { return PlotPlayer.wrap(player); } /** * Get the PlotPlayer for an offline player. * *
Note that this will work if the player is offline, however not all * functionality will work. * * @see PlotPlayer#wrap(Object) * * @param player the player to wrap * @return a {@code PlotPlayer} */ public PlotPlayer wrapPlayer(OfflinePlayer player) { return PlotPlayer.wrap(player); } }