mirror of
https://github.com/2006-Scape/apollo.git
synced 2026-07-04 08:39:27 +00:00
Plugin cleanup.
This commit is contained in:
@@ -78,7 +78,6 @@ public final class World {
|
||||
/**
|
||||
* The command dispatcher.
|
||||
*/
|
||||
// TODO: better place than here?
|
||||
private final CommandDispatcher dispatcher = new CommandDispatcher();
|
||||
|
||||
/**
|
||||
@@ -92,20 +91,21 @@ public final class World {
|
||||
private final CharacterRepository<Player> playerRepository = new CharacterRepository<Player>(
|
||||
WorldConstants.MAXIMUM_PLAYERS);
|
||||
|
||||
/**
|
||||
* The {@link PluginManager}.
|
||||
*/
|
||||
// TODO: better place than here!!
|
||||
private PluginManager pluginManager;
|
||||
|
||||
/**
|
||||
* The scheduler.
|
||||
*/
|
||||
// TODO: better place than here?
|
||||
private final Scheduler scheduler = new Scheduler();
|
||||
|
||||
/**
|
||||
* Creates the world.
|
||||
*/
|
||||
private World() {
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -246,11 +246,10 @@ public final class World {
|
||||
if (success) {
|
||||
logger.info("Registered player: " + player + " [online=" + playerRepository.size() + "]");
|
||||
return RegistrationStatus.OK;
|
||||
} else {
|
||||
logger.warning("Failed to register player (server full): " + player + " [online=" + playerRepository.size()
|
||||
+ "]");
|
||||
return RegistrationStatus.WORLD_FULL;
|
||||
}
|
||||
logger.warning("Failed to register player (server full): " + player + " [online=" + playerRepository.size()
|
||||
+ "]");
|
||||
return RegistrationStatus.WORLD_FULL;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -288,4 +287,4 @@ public final class World {
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@@ -414,7 +414,7 @@ public final class ItemDefinition {
|
||||
description = "Swap this note at any bank for " + prefix + " " + name + ".";
|
||||
stackable = true;
|
||||
} else {
|
||||
throw new IllegalStateException();
|
||||
throw new IllegalStateException("Item cannot be noted.");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user