Better list!

Even added argument suggestion (so proud of that class xD<3)
Fixes #8
This commit is contained in:
Sauilitired 2014-11-02 21:14:47 +01:00
parent c883f2f7d9
commit c5bd4c4935
7 changed files with 86 additions and 51 deletions

View file

@ -377,8 +377,8 @@ public class SQLManager extends AbstractDB {
* @return
*/
@Override
public HashMap<String, HashMap<PlotId, Plot>> getPlots() {
HashMap<String, HashMap<PlotId, Plot>> newplots = new HashMap<String, HashMap<PlotId, Plot>>();
public LinkedHashMap<String, HashMap<PlotId, Plot>> getPlots() {
LinkedHashMap<String, HashMap<PlotId, Plot>> newplots = new LinkedHashMap<String, HashMap<PlotId, Plot>>();
try {
DatabaseMetaData data = connection.getMetaData();
ResultSet rs = data.getColumns(null, null, PREFIX+"plot", "plot_id");