mirror of
https://github.com/Multiverse/Multiverse-Core.git
synced 2026-11-04 16:50:03 -05:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
39711527fa | ||
|
|
8d9b29ff87 | ||
|
|
82fe350afa | ||
|
|
a7b4b9bbda | ||
|
|
15f511b660 | ||
|
|
8347cf8fbb | ||
|
|
4c27fea26b | ||
|
|
4111da8fd6 |
No files matched your search
@@ -150,6 +150,7 @@ final class PlaceholderExpansionHook extends PlaceholderExpansion {
|
||||
case "gamemode" -> world.getGameMode().toString().toLowerCase();
|
||||
case "generator" -> world.getGenerator();
|
||||
case "hunger" -> String.valueOf(world.isHunger());
|
||||
case "isloaded" -> String.valueOf(world.isLoaded());
|
||||
case "monstersspawn" -> String.valueOf(world.getEntitySpawnConfig()
|
||||
.getSpawnCategoryConfig(SpawnCategory.MONSTER)
|
||||
.isSpawn());
|
||||
|
||||
@@ -220,7 +220,10 @@ final class CoreConfigNodes {
|
||||
|
||||
final ConfigNode<PassengerModes> passengerMode = node(ConfigNode.builder("teleport.passenger-mode", PassengerModes.class)
|
||||
.comment("")
|
||||
.comment("Configures how passengers and vehicles are handled when an entity is teleported.")
|
||||
.comment("Configures how passengers and vehicles are handled when an entity is teleported. This config is")
|
||||
.comment("only applied to /mvtp, join-destination and first-spawn-override. It will not touch any other")
|
||||
.comment("teleport by other plugins or commands.")
|
||||
.comment("========= Available options: =========")
|
||||
.comment(" default: Server will handle passengers and vehicles. On papermc 1.21.10+, all will be retained by default.")
|
||||
.comment(" On older versions, all will be dismounted if world changes.")
|
||||
.comment(" dismount_passengers: Passengers will be removed from the parent entity before the teleport.")
|
||||
|
||||
@@ -244,7 +244,7 @@ final class MVPlayerListener implements CoreListener {
|
||||
}
|
||||
|
||||
private void teleportToDestinationOnJoin(Player player, DestinationInstance<?, ?> destination) {
|
||||
asyncSafetyTeleporter.to(destination).teleportSingle(player)
|
||||
asyncSafetyTeleporter.to(destination).passengerMode(config.getPassengerMode()).teleportSingle(player)
|
||||
.onSuccess(result -> Logging.fine("Player %s has been teleported on join",
|
||||
player.getName()))
|
||||
.onFailure(failure -> Logging.warning("Failed to teleport player %s on join: %s",
|
||||
|
||||
@@ -396,7 +396,7 @@ final class WorldConfig {
|
||||
/**
|
||||
* Migrates the entry fee settings. Assumes entry fee is disabled if currency is not set.
|
||||
*/
|
||||
static final class EntryFeeMigrator implements MigratorAction {
|
||||
private static final class EntryFeeMigrator implements MigratorAction {
|
||||
@Override
|
||||
public void migrate(ConfigurationSection config) {
|
||||
String currency = config.getString("entry-fee.currency", "");
|
||||
|
||||
@@ -814,6 +814,7 @@ public final class WorldManager {
|
||||
Location spawnLocation = world.getSpawnLocation();
|
||||
|
||||
CreateWorldOptions createWorldOptions = CreateWorldOptions.worldName(world.getName())
|
||||
.biome(world.getBiome())
|
||||
.environment(world.getEnvironment())
|
||||
.generateStructures(world.canGenerateStructures().getOrElse(true))
|
||||
.generator(world.getGenerator())
|
||||
|
||||
Reference in new issue
Block a user