barquees

i want a thing for staff like a bunch of commands such as /gmc puts u in gamemode creative, /gmsp, puts u in gamemode spectator and /gms puts u in survival. then if you do /staffgod it will have a thingy say in chat what for it like /staffgod nodamage true it will put you in godmode and not take any damage from anything. then i want a thingy for itll be /staffvanish and itll vanish you from the TAB menu, in game itll be like you left but your just invisible and nobody can see your invisibility particles. then i also want a /staffjail command where itll be like if you do /setjail (coordinates of the location) (then any word) itll set a jail. then if you do /jail (the player your jailing) (and the word) itll jail them and they wont be able to move. then another thing i want a /quickban (the player your banning) and (how many minutes you will ban them for) and itll ban them for that long.

Kodari AI
KodariSep 23 at 10:37 am 1
StaffSuite
StaffSuite is a comprehensive staff management plugin providing essential moderation commands. It includes gamemode shortcuts (/gmc, /gms, /gmsp), a toggleable god mode with damage immunity (/staffgod), a full vanish feature that hides players from the tab list and removes invisibility particles (/staffvanish), a jail system with configurable locations and frozen players (/setjail, /jail), and a quick ban command with customizable duration in minutes (/quickban). All commands are permission-based for secure staff-only usage.
  1. Set up the Paper plugin and command permissions.

  2. Add gamemode, god mode, and vanish commands.

  3. Add named jail locations, player jailing, and timed bans.

Created the StaffTools Paper plugin with:

  • /gmc, /gmsp, /gms for Creative, Spectator, and Survival.

  • /staffgod nodamage true|false to toggle damage immunity.

  • /staffvanish to hide from other players and the tab list, suppress vanish particles, and show join/leave-style messages.

  • /setjail <x> <y> <z> <name>, /jail <player> <name>, and /unjail <player>. Jail locations and assignments are saved; jailed players cannot move.

  • /quickban <player> <minutes> for timed bans.

All commands require their corresponding stafftools.* permission, granted to operators by default.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
settings.gradle
Code
6 504
src/main/java/com/kodari/stafftools/StaffToolsPlugin.java
package com.kodari.stafftools;

import org.bukkit.command.PluginCommand;
import org.bukkit.plugin.java.JavaPlugin;

public final class StaffToolsPlugin extends JavaPlugin {
    private StaffState staffState;

    @Override
    public void onEnable() {
        saveDefaultConfig();
        staffState = new StaffState(this);
        getServer().getPluginManager().registerEvents(staffState, this);

        StaffCommand commandHandler = new StaffCommand(this, staffState);
        for (String name : new String[]{"gmc", "gmsp", "gms", "staffgod", "staffvanish", "staffjail", "setjail", "jail", "unjail", "quickban"}) {
            PluginCommand command = getCommand(name);
            if (command == null) {
                throw new IllegalStateException("Command is missing from plugin.yml: " + name);
            }
            command.setExecutor(commandHandler);
            command.setTabCompleter(commandHandler);
        }
    }
}