thesigmaofall

admin commands to vanish from other people and admin commands to get the IP of everyone online selecting a player like /admin ip <player>

Kodari AI
KodariApr 17 at 7:29 pm 6,776 (v2)

I’ll create an admin utility plugin with vanish and IP checking features.

AdminToolkit
Essential admin utility plugin providing powerful moderation tools. Features include a vanish system that allows administrators to become invisible to regular players, and an IP lookup command to view player connection information. Vanish mode hides admins from player lists, chat, and visibility while allowing them to monitor the server undetected. IP command provides quick access to player addresses for moderation purposes.

AdminToolkit plugin created with vanish system and IP lookup functionality. The plugin includes tab completion, configurable messages, and proper permission handling for all admin features.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
Code
7 387
src/main/java/com/admintoolkit/AdminToolkit.java
package com.admintoolkit;

import com.admintoolkit.commands.AdminCommand;
import com.admintoolkit.listeners.VanishListener;
import com.admintoolkit.managers.VanishManager;
import lombok.Getter;
import org.bukkit.plugin.java.JavaPlugin;

@Getter
public class AdminToolkit extends JavaPlugin {
    
    private VanishManager vanishManager;
    
    @Override
    public void onEnable() {
        saveDefaultConfig();
        
        this.vanishManager = new VanishManager(this);
        
        getCommand("admin").setExecutor(new AdminCommand(this));
        
        getServer().getPluginManager().registerEvents(new VanishListener(this), this);
        
        getLogger().info("AdminToolkit has been enabled!");
    }
    
    @Override
    public void onDisable() {
        if (vanishManager != null) {
            vanishManager.showAllVanished();
        }
        getLogger().info("AdminToolkit has been disabled!");
    }
    
    public String getMessage(String path) {
        return getConfig().getString("messages." + path, "&cMessage not found: " + path)
                .replace("&", "§");
    }
    
    public String getPrefix() {
        return getMessage("prefix");
    }
}