Rename FreshSqueezedChallenges to ChallengesImportManager.

ChallengesImportManager name makes more sense then FreshSqueezedChallenges
This commit is contained in:
BONNe1704 2019-01-10 11:16:04 +02:00
parent 4c3026f3c1
commit 3971519d1d
2 changed files with 6 additions and 5 deletions

View File

@ -18,7 +18,7 @@ public class ChallengesAddon extends Addon {
private ChallengesManager challengesManager;
private String permissionPrefix = "addon";
private FreshSqueezedChallenges importManager;
private ChallengesImportManager importManager;
private boolean hooked;
@Override
@ -39,7 +39,7 @@ public class ChallengesAddon extends Addon {
// Challenges Manager
challengesManager = new ChallengesManager(this);
// Challenge import setup
importManager = new FreshSqueezedChallenges(this);
importManager = new ChallengesImportManager(this);
// Register commands - run one tick later to allow all addons to load
// AcidIsland hook in
@ -98,7 +98,7 @@ public class ChallengesAddon extends Addon {
/**
* @return the importManager
*/
public FreshSqueezedChallenges getImportManager() {
public ChallengesImportManager getImportManager() {
return importManager;
}

View File

@ -26,7 +26,8 @@ import world.bentobox.bentobox.util.Util;
* @author tastybento
*
*/
public class FreshSqueezedChallenges {
public class ChallengesImportManager
{
private ChallengesAddon addon;
private YamlConfiguration chal;
@ -35,7 +36,7 @@ public class FreshSqueezedChallenges {
* Import challenges from challenges.yml
* @param challengesAddon
*/
public FreshSqueezedChallenges(ChallengesAddon challengesAddon) {
public ChallengesImportManager(ChallengesAddon challengesAddon) {
this.addon = challengesAddon;
File challengeFile = new File(addon.getDataFolder(), "challenges.yml");
if (!challengeFile.exists()) {