Class FlatFileLocationsManager

java.lang.Object
com.sk89q.commandbook.component.locations.FlatFileLocationsManager
All Implemented Interfaces:
LocationManager<NamedLocation>

public class FlatFileLocationsManager
extends java.lang.Object
implements LocationManager<NamedLocation>
  • Nested Class Summary

    Nested Classes 
    Modifier and Type Class Description
    static class  FlatFileLocationsManager.LocationsFactory  
  • Constructor Summary

    Constructors 
    Constructor Description
    FlatFileLocationsManager​(java.io.File file, java.lang.String type)
    Construct the manager.
  • Method Summary

    Modifier and Type Method Description
    void castWorld​(org.bukkit.World world)
    Set this manager to be for one world only.
    NamedLocation create​(java.lang.String id, org.bukkit.Location loc, org.bukkit.entity.Player player)
    Create a location.
    NamedLocation get​(java.lang.String id)
    Get by name.
    java.util.List<NamedLocation> getLocations()
    Gets all the locations that this location manager has.
    void load()
    Load from file.
    boolean remove​(java.lang.String id)
    Removes a location.
    void save()
    Save to file.
    void updateWorlds()
    Updates warps from unloaded worlds.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait