Add lobby/game worlds, void generator, dbd reload, and fix plugin loading

- Add VoidWorldGenerator for empty void worlds
- Add LobbyManager with auto-creation of lobby world (stone platform 7x7, built once) and game world
- Add /dbd reload command to reload all configs at runtime
- Add plugin.yml for proper command registration, remove paper-plugin.yml
- Fix mdbdBootstrap/mdbdLoader public constructors (Paper requirement)
- Fix command registration (getCommand null on Paper plugin system)
This commit is contained in:
loki5512344 2026-06-01 22:08:37 +02:00
parent 76e0c1e167
commit 34e0aebd5d
27 changed files with 767 additions and 85 deletions

View file

@ -53,7 +53,7 @@ public class CorruptInterventionPerk extends BasePerk {
private void spawnBlockEffect(Player player) {
Location loc = player.getLocation();
player.getWorld().spawnParticle(Particle.BARRIER, loc.add(0, 1, 0), 5, 0.5, 0.5, 0.5, 0);
player.getWorld().spawnParticle(Particle.WITCH, loc.add(0, 1, 0), 5, 0.5, 0.5, 0.5, 0);
}
private void startEffectTimer() {

View file

@ -38,7 +38,7 @@ public class BorrowedTimePerk extends BasePerk {
if (bukkitPlayer == null) return;
bukkitPlayer.addPotionEffect(new PotionEffect(
PotionEffectType.DAMAGE_RESISTANCE,
PotionEffectType.RESISTANCE,
ENDURANCE_DURATION_SECONDS * 20,
4,
false, false, true));
@ -65,7 +65,7 @@ public class BorrowedTimePerk extends BasePerk {
public void onRemove(BasePlayer player) {
Player bukkitPlayer = player.getPlayer();
if (bukkitPlayer != null) {
bukkitPlayer.removePotionEffect(PotionEffectType.DAMAGE_RESISTANCE);
bukkitPlayer.removePotionEffect(PotionEffectType.RESISTANCE);
}
sendPerkMessage(player, "Перк деактивирован");
}