Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
/*
* PlotSquared, a land and world management plugin for Minecraft.
* Copyright (C) IntellectualSites
* Copyright (C) IntellectualSites team and contributors
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see .
*/
package com.plotsquared.core.database;
import com.plotsquared.core.plot.Plot;
import com.plotsquared.core.plot.PlotArea;
import com.plotsquared.core.plot.PlotCluster;
import com.plotsquared.core.plot.PlotId;
import com.plotsquared.core.plot.comment.PlotComment;
import com.plotsquared.core.plot.flag.PlotFlag;
import com.plotsquared.core.util.task.RunnableVal;
import org.checkerframework.checker.nullness.qual.NonNull;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.UUID;
import java.util.concurrent.CompletableFuture;
public interface AbstractDB {
/**
* The UUID that will count as EVERYONE.
*/
UUID everyone = UUID.fromString("1-1-3-3-7");
/**
* Sets Plot owner.
*
* @param plot the plot
* @param uuid the uuid of the new owner
*/
void setOwner(Plot plot, UUID uuid);
/**
* Creates all settings, and create default helpers, trusted + denied lists.
*
* @param plots Plots for which the default table entries should be created
* @param whenDone the task to run when the method is finished executing
*/
void createPlotsAndData(List plots, Runnable whenDone);
/**
* Creates a plot.
*
* @param plot the plot to create
*/
void createPlotSafe(final Plot plot, final Runnable success, final Runnable failure);
/**
* Create tables.
*
* @throws Exception If the database manager is unable to create the tables
*/
void createTables() throws Exception;
/**
* Deletes a plot.
*
* @param plot the plot to delete
*/
void delete(Plot plot);
void deleteSettings(Plot plot);
void deleteHelpers(Plot plot);
void deleteTrusted(Plot plot);
/**
* Removes all denied players from the plot.
*
* @param plot the plot
*/
void deleteDenied(Plot plot);
/**
* Deletes all comments from the plot.
*
* @param plot the plot
*/
void deleteComments(Plot plot);
void deleteRatings(Plot plot);
void delete(PlotCluster cluster);
void addPersistentMeta(UUID uuid, String key, byte[] meta, boolean delete);
void removePersistentMeta(UUID uuid, String key);
void getPersistentMeta(UUID uuid, RunnableVal