mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2025-06-26 10:44:42 +02:00
Database changes
This commit is contained in:
@ -42,7 +42,6 @@ import com.intellectualcrafters.plot.object.comment.PlotComment;
|
||||
* @author Empire92
|
||||
*/
|
||||
public interface AbstractDB {
|
||||
// TODO MongoDB @Brandon
|
||||
/**
|
||||
* The UUID that will count as everyone
|
||||
*/
|
||||
@ -207,20 +206,6 @@ public interface AbstractDB {
|
||||
*/
|
||||
void setPosition(final PlotCluster cluster, final String position);
|
||||
|
||||
/**
|
||||
* @param id Plot Entry ID
|
||||
*
|
||||
* @return Plot Settings
|
||||
*/
|
||||
HashMap<String, Object> getSettings(final int id);
|
||||
|
||||
/**
|
||||
*
|
||||
* @param id
|
||||
* @return HashMap<String, Object>
|
||||
*/
|
||||
HashMap<String, Object> getClusterSettings(final int id);
|
||||
|
||||
/**
|
||||
* @param plot Plot Object
|
||||
* @param uuid Player that should be removed
|
||||
|
@ -249,15 +249,6 @@ public class DBFunc {
|
||||
dbManager.setPosition(plot, position);
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @param id
|
||||
* @return HashMap<String, Object>
|
||||
*/
|
||||
public static HashMap<String, Object> getSettings(final int id) {
|
||||
return dbManager.getSettings(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param plot
|
||||
* @param comment
|
||||
@ -429,8 +420,4 @@ public class DBFunc {
|
||||
public static void setPosition(final PlotCluster cluster, final String position) {
|
||||
dbManager.setPosition(cluster, position);
|
||||
}
|
||||
|
||||
public static HashMap<String, Object> getClusterSettings(final int id) {
|
||||
return dbManager.getClusterSettings(id);
|
||||
}
|
||||
}
|
||||
|
@ -90,6 +90,7 @@ public class MySQL extends Database {
|
||||
return false;
|
||||
}
|
||||
this.connection.close();
|
||||
this.connection = null;
|
||||
return true;
|
||||
}
|
||||
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -86,6 +86,7 @@ public class SQLite extends Database {
|
||||
return false;
|
||||
}
|
||||
this.connection.close();
|
||||
this.connection = null;
|
||||
return true;
|
||||
}
|
||||
|
||||
|
@ -56,6 +56,9 @@ public class InboxOwner extends CommentInbox {
|
||||
plot.getSettings().addComment(comment);
|
||||
}
|
||||
}
|
||||
else {
|
||||
plot.getSettings().setComments(new ArrayList<PlotComment>());
|
||||
}
|
||||
TaskManager.runTask(whenDone);
|
||||
}
|
||||
});
|
||||
|
Reference in New Issue
Block a user