From 159b89ee513befa484550804a0a29299c02e48ca Mon Sep 17 00:00:00 2001 From: Olof Larsson Date: Tue, 1 Dec 2015 11:23:47 +0100 Subject: [PATCH] Simplify Database Constructors. Use Setters. --- src/com/massivecraft/factions/entity/BoardColl.java | 4 +++- src/com/massivecraft/factions/entity/MFlagColl.java | 3 ++- src/com/massivecraft/factions/entity/MPermColl.java | 3 ++- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/src/com/massivecraft/factions/entity/BoardColl.java b/src/com/massivecraft/factions/entity/BoardColl.java index 8dc068d6..3679cc16 100644 --- a/src/com/massivecraft/factions/entity/BoardColl.java +++ b/src/com/massivecraft/factions/entity/BoardColl.java @@ -29,7 +29,9 @@ public class BoardColl extends Coll implements BoardInterface public static BoardColl get() { return i; } private BoardColl() { - super(Const.COLLECTION_BOARD, Board.class, MStore.getDb(), Factions.get(), true, true, false); + super(Const.COLLECTION_BOARD, Board.class, MStore.getDb(), Factions.get()); + this.setCreative(true); + this.setLowercasing(true); } // -------------------------------------------- // diff --git a/src/com/massivecraft/factions/entity/MFlagColl.java b/src/com/massivecraft/factions/entity/MFlagColl.java index d245fa4f..67be72ad 100644 --- a/src/com/massivecraft/factions/entity/MFlagColl.java +++ b/src/com/massivecraft/factions/entity/MFlagColl.java @@ -18,7 +18,8 @@ public class MFlagColl extends Coll public static MFlagColl get() { return i; } private MFlagColl() { - super(Const.COLLECTION_MFLAG, MFlag.class, MStore.getDb(), Factions.get(), false, true, false); + super(Const.COLLECTION_MFLAG, MFlag.class, MStore.getDb(), Factions.get()); + this.setLowercasing(true); } // -------------------------------------------- // diff --git a/src/com/massivecraft/factions/entity/MPermColl.java b/src/com/massivecraft/factions/entity/MPermColl.java index db690c87..68a915f4 100644 --- a/src/com/massivecraft/factions/entity/MPermColl.java +++ b/src/com/massivecraft/factions/entity/MPermColl.java @@ -18,7 +18,8 @@ public class MPermColl extends Coll public static MPermColl get() { return i; } private MPermColl() { - super(Const.COLLECTION_MPERM, MPerm.class, MStore.getDb(), Factions.get(), false, true, false); + super(Const.COLLECTION_MPERM, MPerm.class, MStore.getDb(), Factions.get()); + this.setLowercasing(true); } // -------------------------------------------- //