Search in sources :

Example 1 with DeleteFileTask

use of com.palmergames.bukkit.towny.tasks.DeleteFileTask in project Towny by TownyAdvanced.

the class TownyFlatFileSource method deleteWorld.

@Override
public void deleteWorld(TownyWorld world) {
    File file = new File(getWorldFilename(world));
    queryQueue.add(new DeleteFileTask(file, false));
}
Also used : File(java.io.File) DeleteFileTask(com.palmergames.bukkit.towny.tasks.DeleteFileTask)

Example 2 with DeleteFileTask

use of com.palmergames.bukkit.towny.tasks.DeleteFileTask in project Towny by TownyAdvanced.

the class TownyFlatFileSource method deleteHibernatedResident.

@Override
public void deleteHibernatedResident(UUID uuid) {
    File file = new File(getHibernatedResidentFilename(uuid));
    queryQueue.add(new DeleteFileTask(file, true));
}
Also used : File(java.io.File) DeleteFileTask(com.palmergames.bukkit.towny.tasks.DeleteFileTask)

Example 3 with DeleteFileTask

use of com.palmergames.bukkit.towny.tasks.DeleteFileTask in project Towny by TownyAdvanced.

the class TownyDatabaseHandler method deletePlotData.

@Override
public void deletePlotData(PlotBlockData plotChunk) {
    File file = new File(getPlotFilename(plotChunk));
    queryQueue.add(new DeleteFileTask(file, true));
}
Also used : ZipFile(java.util.zip.ZipFile) File(java.io.File) DeleteFileTask(com.palmergames.bukkit.towny.tasks.DeleteFileTask)

Example 4 with DeleteFileTask

use of com.palmergames.bukkit.towny.tasks.DeleteFileTask in project Towny by TownyAdvanced.

the class TownyFlatFileSource method deleteResident.

/*
	 * Delete objects
	 */
@Override
public void deleteResident(Resident resident) {
    File file = new File(getResidentFilename(resident));
    queryQueue.add(new DeleteFileTask(file, false));
}
Also used : File(java.io.File) DeleteFileTask(com.palmergames.bukkit.towny.tasks.DeleteFileTask)

Example 5 with DeleteFileTask

use of com.palmergames.bukkit.towny.tasks.DeleteFileTask in project Towny by TownyAdvanced.

the class TownyFlatFileSource method deletePlotGroup.

@Override
public void deletePlotGroup(PlotGroup group) {
    File file = new File(getPlotGroupFilename(group));
    queryQueue.add(new DeleteFileTask(file, false));
}
Also used : File(java.io.File) DeleteFileTask(com.palmergames.bukkit.towny.tasks.DeleteFileTask)

Aggregations

DeleteFileTask (com.palmergames.bukkit.towny.tasks.DeleteFileTask)9 File (java.io.File)9 ZipFile (java.util.zip.ZipFile)2