Cleanup Code

Former-commit-id: 6ade2f7fca426a3d16e7afb2d84bee91f0d69a00 [formerly 34e6b296f11e1f04924c81352a3b3399b65a2639]
Former-commit-id: e1991bd086d60f0fabe9167d8fc689e8cadc7d04
This commit is contained in:
Ghost_chu committed 2019-08-27 16:16:09 +08:00
1 parent a38ae28019
commit 9b95b592cc
1 file changed
-21
@@ -181,14 +181,6 @@ public class ShopLoader {
Util.debugLog("Shop Owner is null");
return true;
}
// if (shop.getLocation().getChunk() == null) {
// Util.debugLog("Shop Chunk is null");
// return true;
// }
// if (shop.getLocation().getBlock() == null) {
// Util.debugLog("Shop Block is null");
// return true;
// }
return false;
}
@@ -242,19 +234,6 @@ public class ShopLoader {
}
private @Nullable ShopModerator deserializeModerator(@NotNull String moderatorJson) {
// try {
// UUID.fromString(moderators);
// if (!isBackuped) {
// isBackuped = Util.backupDatabase();
// }
//
//
// moderators = ShopModerator.serialize(shopModerator); //Serialize
// } catch (IllegalArgumentException ex) {
// //This expcetion is normal, cause i need check that is or not a UUID.
// shopModerator = ShopModerator.deserialize(moderators);
// }
//
ShopModerator shopModerator;
if (Util.isUUID(moderatorJson)) {
Util.debugLog("Updating old shop data...");