monkey_train

make it so on every player join they get teleported to the nether then back to the world

monkey_train

make it so on every player join they get teleported to the nether then back to the world

Kodari AI
KodariApr 21 at 5:30 pm 3,716 (v2)

I’ll create a plugin that teleports players to the Nether on join, then brings them back after a brief moment.

NetherTeleportOnJoin
Teleports every player to the Nether when they join the server, then automatically teleports them back to their original location after a configurable delay. Features include adjustable delay time, optional entry/exit messages, and the ability to toggle the feature on/off. Perfect for creating unique join experiences or adding mystery to your server.

Plugin created! Players will be teleported to the Nether on join, then automatically returned to their original location after 2 seconds (40 ticks, configurable). The config allows you to adjust the delay, toggle the feature, and customize messages.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
Code
5 123
src/main/java/com/netherteleport/NetherTeleportPlugin.java
package com.netherteleport;

import com.netherteleport.listener.JoinListener;
import lombok.Getter;
import org.bukkit.plugin.java.JavaPlugin;

@Getter
public class NetherTeleportPlugin extends JavaPlugin {

    @Override
    public void onEnable() {
        saveDefaultConfig();
        
        getServer().getPluginManager().registerEvents(new JoinListener(this), this);
        
        getLogger().info("NetherTeleportOnJoin has been enabled!");
    }

    @Override
    public void onDisable() {
        getLogger().info("NetherTeleportOnJoin has been disabled!");
    }
}