changed delay of connection and particles
This commit is contained in:
parent
3c7fdfab1c
commit
3301a6d9dd
@ -53,11 +53,11 @@ public class Lobby extends InstanceContainer {
|
||||
private boolean isJoining;
|
||||
|
||||
public final ParticlePacket availableParticles = new ParticlePacket(
|
||||
Particle.COMPOSTER,
|
||||
this.buttonLocation.add(0.5),
|
||||
new Vec(0.5, 0.5, 0.5),
|
||||
Particle.SHRIEK,
|
||||
this.buttonLocation.add(0.5, 0, 0.5),
|
||||
new Vec(0, 0, 0),
|
||||
0.001f,
|
||||
3
|
||||
1
|
||||
);
|
||||
|
||||
public final ParticlePacket progressParticles = new ParticlePacket(
|
||||
@ -142,11 +142,13 @@ public class Lobby extends InstanceContainer {
|
||||
private void connect() {
|
||||
if(!this.isJoining) return;
|
||||
this.playSound(Sound.sound(SoundEvent.ENTITY_PLAYER_LEVELUP, Sound.Source.PLAYER, 1f, 1f));
|
||||
this.everyMember(p -> {
|
||||
|
||||
MinecraftServer.getSchedulerManager().scheduleTask(() -> this.everyMember(p -> {
|
||||
p.addEffect(new Potion(PotionEffect.DARKNESS, 0, 5 * Ticks.TICKS_PER_SECOND));
|
||||
p.sendActionBar(Component.text("Verbinde...", NamedTextColor.GREEN));
|
||||
PluginMessageUtil.connect(p, this.targetServer);
|
||||
});
|
||||
}), TaskSchedule.seconds(1), TaskSchedule.stop());
|
||||
|
||||
MinecraftServer.getSchedulerManager().scheduleTask(
|
||||
() -> {
|
||||
this.isJoining = false;
|
||||
|
Loading…
x
Reference in New Issue
Block a user