mirror of
https://github.com/BentoBoxWorld/Challenges.git
synced 2024-11-14 06:36:34 +01:00
Rename FreshSqueezedChallenges to ChallengesImportManager.
ChallengesImportManager name makes more sense then FreshSqueezedChallenges
This commit is contained in:
parent
4c3026f3c1
commit
3971519d1d
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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()) {
|
Loading…
Reference in New Issue
Block a user