bojkata120

/home that sends you the cordinates: -1250 77 -500 thats it

Kodari AI
KodariJun 22 at 6:09 am 2
HomePlugin
A simple Minecraft plugin that provides a /home command, sending players to the fixed coordinates -1250, 77, -500. When executed, the player is teleported to the home location on their current world. Lightweight and easy to use with no configuration required.

/home teleports the player to -1250, 77, -500 in whatever world they’re currently in.

bojkata120

I dont want to teleport anything I want just to message him the message with the cordinates

Kodari AI
KodariJun 22 at 6:10 am 3

Now /home just sends the player: Your home is at: -1250, 77, -500 — no teleport.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
Code
3 55
src/main/java/com/kodari/homeplugin/HomePlugin.java
package com.kodari.homeplugin;

import org.bukkit.command.Command;
import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player;
import org.bukkit.plugin.java.JavaPlugin;

public class HomePlugin extends JavaPlugin {

    @Override
    public void onEnable() {
        getCommand("home").setExecutor(this);
    }

    @Override
    public boolean onCommand(CommandSender sender, Command command, String label, String[] args) {
        if (!(sender instanceof Player)) {
            sender.sendMessage("§cOnly players can use this command.");
            return true;
        }

        Player player = (Player) sender;
        player.sendMessage("§aТвоята база: §f-1250, 77, -500");
        return true;
    }
}