Skip to content

Commit

Permalink
refactor!: Rename back to MVWorldManager
Browse files Browse the repository at this point in the history
  • Loading branch information
benwoo1110 committed Feb 9, 2023
1 parent 10ef838 commit 7757067
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
* This API contains all of the world managing
* functions that your heart desires!
*/
public interface WorldManager {
public interface MVWorldManager {
/**
* Add a new World to the Multiverse Setup.
*
Expand Down Expand Up @@ -224,7 +224,7 @@ boolean addWorld(String name, Environment env, String seedString, WorldType type
/**
* Gets the {@link WorldPurger}.
* <p>
* @return The {@link WorldPurger} this {@link WorldManager} is using.
* @return The {@link WorldPurger} this {@link MVWorldManager} is using.
* @see WorldPurger
* @see SimpleWorldPurger
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import co.aikar.commands.BaseCommand;
import com.onarandombox.MultiverseCore.MultiverseCore;
import com.onarandombox.MultiverseCore.api.WorldManager;
import com.onarandombox.MultiverseCore.api.MVWorldManager;
import com.onarandombox.MultiverseCore.commandtools.flags.CommandFlagGroup;
import com.onarandombox.MultiverseCore.commandtools.flags.CommandFlagsManager;
import com.onarandombox.MultiverseCore.commandtools.flags.ParsedCommandFlags;
Expand All @@ -13,7 +13,7 @@
*/
public class MultiverseCommand extends BaseCommand {
protected final MultiverseCore plugin;
protected final WorldManager worldManager;
protected final MVWorldManager worldManager;
protected final CommandFlagsManager flagsManager;

private String flagGroupName;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

import com.dumptruckman.minecraft.util.Logging;
import com.onarandombox.MultiverseCore.MultiverseCore;
import com.onarandombox.MultiverseCore.api.WorldManager;
import com.onarandombox.MultiverseCore.api.MVWorldManager;
import com.onarandombox.MultiverseCore.api.MVWorld;
import com.onarandombox.MultiverseCore.event.MVRespawnEvent;
import com.onarandombox.MultiverseCore.utils.PermissionTools;
Expand All @@ -37,7 +37,7 @@
*/
public class MVPlayerListener implements Listener {
private final MultiverseCore plugin;
private final WorldManager worldManager;
private final MVWorldManager worldManager;
private final PermissionTools pt;

private final Map<String, String> playerWorld = new ConcurrentHashMap<String, String>();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
import com.dumptruckman.minecraft.util.Logging;
import com.onarandombox.MultiverseCore.MultiverseCore;
import com.onarandombox.MultiverseCore.MultiverseCoreConfiguration;
import com.onarandombox.MultiverseCore.api.WorldManager;
import com.onarandombox.MultiverseCore.api.MVWorldManager;
import com.onarandombox.MultiverseCore.api.MVWorld;
import com.onarandombox.MultiverseCore.api.SafeTTeleporter;
import com.onarandombox.MultiverseCore.api.WorldPurger;
Expand All @@ -52,7 +52,7 @@
/**
* Public facing API to add/remove Multiverse worlds.
*/
public class SimpleWorldManager implements WorldManager {
public class SimpleMVWorldManager implements MVWorldManager {
private final MultiverseCore plugin;
private final WorldPurger worldPurger;
private final Map<String, MVWorld> worlds;
Expand All @@ -61,7 +61,7 @@ public class SimpleWorldManager implements WorldManager {
private Map<String, String> defaultGens;
private String firstSpawn;

public SimpleWorldManager(MultiverseCore core) {
public SimpleMVWorldManager(MultiverseCore core) {
this.plugin = core;
this.worldsFromTheConfig = new HashMap<String, WorldProperties>();
this.worlds = new ConcurrentHashMap<String, MVWorld>();
Expand Down Expand Up @@ -968,8 +968,8 @@ private <T> boolean setGameRuleValue(World world, GameRule<T> gameRule, Object v
}

/**
* Gets the {@link FileConfiguration} that this {@link SimpleWorldManager} is using.
* @return The {@link FileConfiguration} that this {@link SimpleWorldManager} is using.
* Gets the {@link FileConfiguration} that this {@link SimpleMVWorldManager} is using.
* @return The {@link FileConfiguration} that this {@link SimpleMVWorldManager} is using.
*/
public FileConfiguration getConfigWorlds() {
return this.configWorlds;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

import java.io.File;

import com.onarandombox.MultiverseCore.api.WorldManager;
import com.onarandombox.MultiverseCore.api.MVWorldManager;
import com.onarandombox.MultiverseCore.api.MVWorld;
import com.onarandombox.MultiverseCore.world.configuration.SpawnLocation;
import com.onarandombox.MultiverseCore.utils.MockWorldFactory;
Expand Down Expand Up @@ -125,7 +125,7 @@ public void test() throws Exception {
// ////////////////////////////////////////////////
// let's set some world-properties
// we can test the API with this, too :D
WorldManager worldManager = core.getMVWorldManager();
MVWorldManager worldManager = core.getMVWorldManager();
assertNotNull(worldManager);

MVWorld mvWorld = worldManager.getMVWorld("world");
Expand Down

0 comments on commit 7757067

Please sign in to comment.