lilmiketkhis

Make me a plugin that supports all of that and fully configable on everything

📎 1 file 21,150 chars
📄
pasted-code-1785704037741.txt
txt 502 lines
▶
Mod Management
The Feather Server API allows you to manage which mods players can use on your server. This includes blocking mods entirely, enabling or disabling specific mods for individual players, and retrieving information about which mods are blocked or enabled.

Overview
Mod management is handled through the FeatherPlayer interface, which provides methods for:

Blocking mods (preventing players from using them)
Unblocking mods (allowing players to use previously blocked mods)
Getting a list of blocked mods
Enabling specific mods for players
Disabling specific mods for players
Getting a list of enabled mods
These operations allow server owners to create a consistent gameplay experience by controlling which client-side mods can be used on their server.

Basic Usage
Accessing the API
To manage mods, you'll first need to get a reference to a FeatherPlayer object:

// Get a player by UUID
FeatherPlayer player = FeatherAPI.getPlayerService().getPlayer(playerUUID);

// Or get all Feather players
Collection allPlayers = FeatherAPI.getPlayerService().getPlayers();

Working with FeatherMod Objects
Most mod management operations use FeatherMod objects. A FeatherMod represents a built-in mod in Feather and is identified by its name:

// Create a FeatherMod object
FeatherMod perspectiveMod = new FeatherMod("perspective");

Blocking and Unblocking Mods
Blocking Mods
Blocking mods prevents players from enabling them, even manually. When a mod is blocked:

If it was enabled, it will be automatically disabled
The player cannot re-enable it until it is unblocked
// Block a single mod
Collection modsToBlock = Collections.singletonList(new FeatherMod("perspective"));
player.blockMods(modsToBlock);

// Block multiple mods
List multipleModsToBlock = Arrays.asList(
    new FeatherMod("motion_blur"),
    new FeatherMod("zoom"),
    new FeatherMod("timer")
);
player.blockMods(multipleModsToBlock);

info
Blocking a mod is more restrictive than disabling it. Blocked mods cannot be enabled by the player at all, while disabled mods can still be enabled through the client's mod menu.

Unblocking Mods
Unblocking mods allows players to enable the mods again through their client mod menu:

// Unblock a single mod
Collection modsToUnblock = Collections.singletonList(new FeatherMod("perspective"));
player.unblockMods(modsToUnblock);

// Unblock multiple mods
List multipleModsToUnblock = Arrays.asList(
    new FeatherMod("motion_blur"),
    new FeatherMod("zoom"),
    new FeatherMod("timer")
);
player.unblockMods(multipleModsToUnblock);

Getting Blocked Mods
You can retrieve a list of all mods that are currently blocked for a player:

CompletableFuture> blockedModsFuture = player.getBlockedMods();

blockedModsFuture.thenAccept(blockedMods -> {
    for (FeatherMod mod : blockedMods) {
        // Process each blocked mod
        System.out.println("Blocked mod: " + mod.getName());
    }
});

Enabling and Disabling Mods
Enabling Mods
Enabling a mod activates it for the player. Note that this only works if the mod is not blocked:

// Enable a single mod
Collection modsToEnable = Collections.singletonList(new FeatherMod("coordinates"));
player.enableMods(modsToEnable);

// Enable multiple mods
List multipleModsToEnable = Arrays.asList(
    new FeatherMod("item_physics"),
    new FeatherMod("saturation"),
    new FeatherMod("fps")
);
player.enableMods(multipleModsToEnable);

Disabling Mods
Disabling a mod deactivates it for the player:

// Disable a single mod
Collection modsToDisable = Collections.singletonList(new FeatherMod("perspective"));
player.disableMods(modsToDisable);

// Disable multiple mods
List multipleModsToDisable = Arrays.asList(
    new FeatherMod("motion_blur"),
    new FeatherMod("zoom"),
    new FeatherMod("timer")
);
player.disableMods(multipleModsToDisable);

Getting Enabled Mods
You can retrieve a list of all mods that are currently enabled for a player:

CompletableFuture> enabledModsFuture = player.getEnabledMods();

enabledModsFuture.thenAccept(enabledMods -> {
    for (FeatherMod mod : enabledMods) {
        // Process each enabled mod
        System.out.println("Enabled mod: " + mod.getName());
    }
});

Reference
Common Feather Mods
Here are some common Feather mods you might want to manage:

Name	Slug	Description
Team Tracker	teamtracker	Add indicator to see teammate location
Animations	animations	Modify player animations
Armor Bar	armorBar	Extra armor bar features (Credits: RedLime)
Armor Status	armorStatus	Display your armor durability
Attack Indicator	attackIndicator	Add extra actions to your attack indicator
Autohide HUD	autohidehud	Automatically hide parts of the HUD
Auto Perspective	autoperspective	Automatically switch perspectives on events
Auto Text	autoText	Keybind macros for commands and text
Backups	backups	Backups for your singleplayer world
Block Indicator	blockIndicator	Show info about the block you're looking at
Block Overlay	blockOverlay	Add overlay and outline to blocks
Boss Bar	bossBar	Customize your bossbar
Brightness	brightness	Adjust your Brightness Settings & Night Vision on demand
Camera	camera	Adds useful camera utilities
Color Saturation	colorSaturation	Adjust your display color saturation settings
Combo Display	comboDisplay	Display number of consecutive hits
Coordinates	coordinates	Display your location and world info
CPS	cps	Show your clicks per second
Custom Crosshair	crosshair	Customize your crosshair
Cull Logs	culllogs	Automatically remove old log files
Custom Advancements Screen	customadvancementsscreen	Show more information about advancement requirements
Custom Chat	customChat	Tweak your chat display
Custom F3	customf3	Customize your debug screen
Custom Fog	customfog	Custom fog settings and clear water
Damage Indicator	damageIndicator	Show mob health information
Dark Mode	darkmode	Dark mode for Minecraft INVENTORY GUI
Death Info	deathInfo	Show information on death
Direction	direction	Display your cardinal direction
Discord	discordRP	Share your current status on Discord
Drop Prevention	dropprevention	Lock items in your hotbar
Elytras	elytras	Extra elytra features and chestplate swapping
FOV Changer	fovChanger	Customize field of view
FPS	fps	Display your frames per second
Glint	glint	Customize color of enchants and other settings
Hearts	hearts	Replaces multiple vanilla heart rows with a single row
Hitbox	hitbox	Adds hitboxes around entities
Hit Indicator	hitindicator	Add indicators where you receive damage
Horses	horses	Add extra features and stats to horses
Hypixel	hypixel	Useful mods for Hypixel
Inventory	inventory	Useful mods for inventory management
Item Counter	itemCounter	Count items in your inventory
Item Despawn	itemdespawn	Make items flash when they're about to despawn
Item Info	itemInfo1	Display enchants when picking up an item
Item Physic	itemPhysic	Cool item dropping physics
Jump Reset	jumpreset	Notifies the player about how close they were to achieving a successful jump reset
Keystrokes	keystrokes	Display your key presses
Light Level Overlay	lightleveloverlay	Displays overlay indicating light levels
Loot Beams	lootBeams	Add beam to dropped items
Mob Overlay	mobOverlay	Add overlay and outline to mobs
Motion Blur	motionBlur	Blur your vision, make sure it's not too high
Mousestrokes	mousestrokes	Displays mouse movement
Nametags	nametags	Modify nametag mechanics
Nick Hider	nickHider	Hide your nick and skin
Pack Display	packdisplay	Displays your current texture pack
Pack Organizer	packOrganizer	Improved resource pack page w/ folder support and extra features
Perspective	perspective	Freelook
Ping	ping	Display your ping to the server
Player Model	playerModel	Render your player model in HUD
Playtime	playtime	Show time game open or in-game
Potion Effects	potionEffects	Display potion effects
Reach Display	reachDisplay	Shows the distance when hitting a player
Reconnect	reconnect	Automatically reconnect to servers
Saturation	saturation	Adds saturation visualization food tooltips
Scoreboard	scoreboard	Customize scoreboard
Screenshot	screenshot	Extra screenshot features
Keybind Search	searchkeybind	Adds a keybind search popup overlay
Server Address	serverAddress	Shows the server address
Shulker Tooltips	shulkertooltips	See the contents of shulker boxes and other containers
Snaplook	snaplook	Snap to a particular perspective
Sound Filters	soundfilters	Adds sound enhancing features / reverb
Speed Meter	speedMeter	Show your current velocity
Stopwatch	stopwatch1	Start and stop a stopwatch with a keybind
Subtitles	subtitles	Add color and other features to subtitles
System Resources	systemresources	Show system resources
Tablist	tablist	Tweak tablist settings
Tier Tagger	tiertagger	Displays tier from Vanilla PvP Tierlist
Time	time	Display the current time
Time Changer	timeChanger	Change the time locally
Title Tweaker	titletweaker	Make adjustments to the Title Display
TNT Timer	tnttimer	Adds a timer to your TNT explosions
Toast Control	toastcontrol	Modify notification toast mechanics
Toggle Sprint	toggleSprint	Toggle your sprint and sneak key
Tooltips	tooltips	Tooltip Enhancements
Totem	totem	Extra totem features
TPS	tps	Estimate server TPS
UHC Overlay	uhcoverlay	Resize popular UHC items to make them easier to find
UI Scaling	uiScaling	Can potentially affect other mods, USE WITH CAUTION!
ViewModel	viewModel	Adjust player viewmodel
Voice	voice	Speak with other Feather players
Waypoints	waypoints	Render waypoints on a map
Weather Changer	weatherchanger	Change the weather locally
Zoom	zoom	Zoom in and out of objects
Discord Rich Presence
Overview
Discord Rich Presence allows your Minecraft server to customize how players appear in Discord while playing on your server. With the Feather Server API, you can dynamically update a player's Discord status to show:

Custom server icons
Activity descriptions
Player counts and party sizes
Timestamps for activities
And more!
This feature helps promote your server through players' Discord profiles, enhances the social experience, and provides useful information to friends viewing a player's status.

A Discord profile with custom game status showing server name, activity details, player count, and server icon
Image shows a Discord profile with custom game status showing server name, activity details, player count, and server icon

Basic Usage
Setting Discord Activity
To set a player's Discord activity, use the MetaService through FeatherAPI:

DiscordActivity activity = DiscordActivity.builder()
    .withImage("https://example.com/server-icon.png")
    .withImageText("Epic Survival Server")
    .withState("Mining diamonds")
    .withDetails("Join us at play.example.com")
    .build();

FeatherAPI.getMetaService().updateDiscordActivity(player, activity);

Clearing Discord Activity
To clear a player's Discord activity when appropriate:

FeatherAPI.getMetaService().clearDiscordActivity(player);

Creating Discord Activities
The core component is the DiscordActivity class which uses a builder pattern for easy configuration. All properties are optional, allowing you to use just what you need.

Essential Properties
DiscordActivity.builder()
    // Image shown in Discord (URL to your image)
    .withImage("https://example.com/server-icon.png")
    
    // Text shown when hovering over the image
    .withImageText("My Amazing Server")
    
    // The player's current activity (shown as smaller text)
    .withState("Fighting the Ender Dragon")
    
    // Main description line (shown as larger text)
    .withDetails("Join us at play.example.com")
    
    .build();

Advanced Features
Party Size
Show how many players are in a party or team:

DiscordActivity.builder()
    // Other properties...
    .withPartySize(4, 6) // Current: 4, Maximum: 6
    .build();

Timestamps
Show how long an activity has been in progress or when it will end:

long now = System.currentTimeMillis();
long endTime = now + (30 * 60 * 1000); // 30 minutes from now

DiscordActivity.builder()
    // Other properties...
    .withStartTimestamp(now)
    .withEndTimestamp(endTime)
    .build();

Common Use Cases
Player Joins Server
Update the player's Discord status when they join your server:

FeatherAPI.getEventService().subscribe(PlayerHelloEvent.class, event -> {
    FeatherPlayer player = event.getPlayer();
    
    DiscordActivity activity = DiscordActivity.builder()
        .withImage("https://example.com/server-icon.png")
        .withImageText("Epic Survival Server")
        .withState("Just joined the server")
        .withDetails("Playing on Epic Survival")
        .withStartTimestamp(System.currentTimeMillis())
        .build();
    
    FeatherAPI.getMetaService().updateDiscordActivity(player, activity);
});

Player Enters a Minigame
Update the activity when a player enters a specific game or area:

// When player joins a minigame
public void onPlayerJoinMinigame(FeatherPlayer player, String gameName, int playerCount, int maxPlayers) {
    DiscordActivity activity = DiscordActivity.builder()
        .withImage("https://example.com/minigames/" + gameName.toLowerCase() + ".png")
        .withImageText(gameName)
        .withState("Playing " + gameName)
        .withDetails("Round starting soon")
        .withPartySize(playerCount, maxPlayers)
        .withStartTimestamp(System.currentTimeMillis())
        .build();
    
    FeatherAPI.getMetaService().updateDiscordActivity(player, activity);
}


Player Completes an Achievement
Update the status to showcase a player's accomplishment:

public void onPlayerAchievement(FeatherPlayer player, String achievementName) {
    DiscordActivity activity = DiscordActivity.builder()
        .withImage("https://example.com/achievements/trophy.png")
        .withImageText("Achievement Unlocked!")
        .withState("Earned: " + achievementName)
        .withDetails("Playing on Epic Survival")
        .build();
    
    FeatherAPI.getMetaService().updateDiscordActivity(player, activity);
    
    // Reset to normal status after 5 minutes
    Bukkit.getScheduler().runTaskLater(plugin, () -> {
        updateDefaultActivity(player);
    }, 6000); // 5 minutes in ticks
}
Overview
The Server List Background feature allows server owners to customize how their server appears in Feather's server list by setting a custom background image. This enhances server branding and creates a more visually appealing entry in the server list for players using Feather.

A custom background image displayed behind a server entry in Feather's server list.
A custom background image displayed behind a server entry in Feather's server list.

Basic Usage
Here's a simple example of setting a server list background:

try {
    // Get the MetaService from the FeatherAPI
    MetaService metaService = FeatherAPI.getMetaService();
    
    // Create a background from an image file
    ServerListBackground background = metaService.getServerListBackgroundFactory()
        .byPath(plugin.getDataFolder().toPath().resolve("server-background.png"));
    
    // Set the background
    metaService.setServerListBackground(background);
    
} catch (ServerListBackgroundException | IOException e) {
    // Handle errors
    e.printStackTrace();
}

Image Requirements
Feather has specific requirements for server list background images:

Format: Only PNG format is currently supported
Recomended dimensions: 909x102 pixels
Maximum dimensions: 1009×202 pixels
Maximum file size: 512 KB
Attempting to use images that don't meet these requirements will result in exceptions being thrown when setting the background.

Detailed Usage
Creating a Background from a File
The most common way to create a server background is from an image file:

Path imagePath = plugin.getDataFolder().toPath().resolve("backgrounds/my-background.png");
ServerListBackground background = metaService.getServerListBackgroundFactory().byPath(imagePath);

Creating a Background from Bytes
If you have image data as a byte array, you can create a background from it:

// With explicit format
ServerListBackground background = factory.fromBytes(imageBytes, ImageFormat.PNG);

// With automatic format detection (if supported by the implementation)
ServerListBackground background = factory.fromBytes(imageBytes);

Setting the Background
Once you have a ServerListBackground object, you can set it as the server's background:

metaService.setServerListBackground(background);

Retrieving the Current Background
You can get the currently set background with:

ServerListBackground currentBackground = metaService.getServerListBackground();
if (currentBackground != null) {
    // The background is set
} else {
    // No background is currently set
}

Exception Handling
When working with server list backgrounds, several exceptions may be thrown:

UnsupportedImageFormatException - When the image format is not supported (currently only PNG is supported)
ImageSizeExceededException - When the image dimensions or file size exceed the maximum limits
InvalidImageException - When the image data is corrupted or otherwise invalid
It's important to handle these exceptions appropriately:

try {
    ServerListBackgroundFactory factory = metaService.getServerListBackgroundFactory();
    ServerListBackground background = factory.byPath(imagePath);
    metaService.setServerListBackground(background);
} catch (UnsupportedImageFormatException e) {
    logger.error("Image format not supported. Only PNG is supported.", e);
} catch (ImageSizeExceededException e) {
    logger.error("Image is too large. Maximum dimensions: 1009×202, Maximum size: 512KB", e);
} catch (InvalidImageException e) {
    logger.error("Image file is corrupted or invalid.", e);
} catch (IOException e) {
    logger.error("Error reading image file.", e);
}

Best Practices
Optimizing Image Size
Server list backgrounds are sent to players when they connect, so it's important to optimize your images to minimize the impact on connection times:

Compress PNG files to reduce their size while maintaining quality
Use the smallest dimensions that still look good (staying under the 1009×202 limit)
Consider using fewer colors to reduce file size
Background Loading on Startup
Load your server background when your plugin starts:

@Override
public void onEnable() {
    // Create the backgrounds directory if it doesn't exist
    Path backgroundsDir = getDataFolder().toPath().resolve("backgrounds");
    try {
        Files.createDirectories(backgroundsDir);
    } catch (IOException e) {
        getLogger().severe("Failed to create backgrounds directory");
        e.printStackTrace();
    }
    
    // Load the configured background
    String backgroundFile = getConfig().getString("background", "default.png");
    loadBackground(backgroundFile);
}

private void loadBackground(String filename) {
    try {
        Path imagePath = getDataFolder().toPath().resolve("backgrounds").resolve(filename);
        if (Files.exists(imagePath)) {
            ServerListBackground background = FeatherAPI.getMetaService()
                .getServerListBackgroundFactory()
                .byPath(imagePath);
            FeatherAPI.getMetaService().setServerListBackground(background);
            getLogger().info("Server background loaded: " + filename);
        } else {
            getLogger().warning("Background file not found: " + filename);
        }
    } catch (Exception e) {
        getLogger().severe("Error loading server background");
        e.printStackTrace();
    }
}

Common Pitfalls
Image Loading Thread Safety
The image loading process involves file I/O operations and should be performed off the main server thread to avoid blocking:

Bukkit.getScheduler().runTaskAsynchronously(plugin, () -> {
    try {
        ServerListBackground background = FeatherAPI.getMetaService()
            .getServerListBackgroundFactory()
            .byPath(imagePath);
            
        try {
            FeatherAPI.getMetaService().setServerListBackground(background);
            logger.info("Server background updated successfully");
        } catch (Exception e) {
            logger.error("Error setting server background", e);
        }
    } catch (Exception e) {
        logger.error("Error loading server background", e);
    }
});

Limitations
The server background is only sent once when a player connects and has not already received the background
The background cannot be updated dynamically for connected players
Only PNG format is currently supported
The image dimensions are limited to 1009×202 pixels
The image file size is limited to 512 KB
Kodari AI
KodariAug 2 at 8:58 pm 2
FeatherControl
FeatherControl integrates Feather Server API features into a configurable Bukkit or Paper server. It manages blocked, unblocked, enabled, and disabled Feather mods globally or for individual players, provides configurable Discord Rich Presence activities with dynamic placeholders, and loads validated server-list background images. Administrators can control every behavior through YAML configuration and commands, reload settings without restarting, inspect player mod states, and automatically apply policies when players join.
lilmiketkhis

make %server% editable and add it where it tells us where to put the .png and add a mod.yml that shows all mods that you can disable and enable

Kodari AI
KodariAug 2 at 9:04 pm 6
  1. Make %server% configurable and use it in the PNG placement guidance.

  2. Add mod.yml documenting every toggleable module and its enabled/disabled setting.

  1. %server% now reads the editable server-name value, falling back to the Bukkit server name when blank; the PNG path is documented in config.yml.

  2. mod.yml will list the currently configured Feather mod and the enable/disable/block/unblock operation lists.3. Move the actual mod operation lists into mod.yml, load that file on startup/reload, and keep the existing Feather operations (block, unblock, enable, disable) available there.

[Generation stopped]

lilmiketkhis

make it where the png goes in the root folder with the config and make the image read server-icon.png and make the mods.yml with the list of mods you can turn on and off

Kodari AI
KodariAug 2 at 9:08 pm 4
  1. Update the PNG handling and guidance to use server-icon.png in the plugin root.

  2. Replace the mod configuration with mods.yml listing each available toggle.

  1. server-icon.png is now read from the plugin root folder: plugins/FeatherControl/server-icon.png.

  2. Updated config.yml with instructions for the image location.

  3. Added mods.yml with available Feather mods and enable, disable, block, and unblock lists.

  4. /feathercontrol mod ... tab completion now uses the mod names listed in mods.yml.

lilmiketkhis

and add all mods in the list in pasted-code-1785778631273.txt

📎 2 files 7,670 chars
📄
pasted-code-1785778607498.txt
txt 60 lines
▶
Getting Started with Feather Server API
The Feather Server API allows server owners and plugin developers to interact with features of Feather from their Minecraft servers. This guide will help you integrate the API into your server plugins.

Prerequisites
Before you begin, ensure you have:

A Bukkit/Spigot/Paper Minecraft server
Basic knowledge of Java and Bukkit plugin development
A development environment set up for creating Minecraft plugins
Adding the Dependency
To use the Feather Server API in your project, you need to add it as a dependency. The examples below show how to include it in your project using different build systems.

Maven
Gradle (Groovy)
Gradle (Kotlin DSL)

    
        feather-repo
        https://repo.feathermc.net/artifactory/maven-releases
    



    
        net.digitalingot.feather-server-api
        api
        0.0.5
        provided
    


Important Note
Always use provided (Maven) or compileOnly (Gradle) scope for the Feather Server API dependency, as it will be provided by the Feather Server API plugin at runtime.

Installing the Server Plugin
The Feather Server API requires a plugin to be installed on your server. Download the latest version from GitHub and place it in your server's plugins directory.

After restarting your server, the API will be available for your plugins to use.

Basic Usage
Here's a simple example of a plugin that detects when a player with Feather joins the server:

public class MyFeatherPlugin extends JavaPlugin {
    
    @Override
    public void onEnable() {
        // Register for Feather events
        FeatherAPI.getEventService().subscribe(
            PlayerHelloEvent.class,
            event -> {
                FeatherPlayer player = event.getPlayer();
                getLogger().info(player.getName() + " is using Feather!");
                getLogger().info("Platform: " + event.getPlatform());
                getLogger().info("Enabled mods: " + event.getFeatherMods().size());
            }
        );
    }
}

This simple example logs information when a player using Feather joins your server.
📄
pasted-code-1785778631273.txt
txt 92 lines
▶
Team Tracker	teamtracker	Add indicator to see teammate location
Animations	animations	Modify player animations
Armor Bar	armorBar	Extra armor bar features (Credits: RedLime)
Armor Status	armorStatus	Display your armor durability
Attack Indicator	attackIndicator	Add extra actions to your attack indicator
Autohide HUD	autohidehud	Automatically hide parts of the HUD
Auto Perspective	autoperspective	Automatically switch perspectives on events
Auto Text	autoText	Keybind macros for commands and text
Backups	backups	Backups for your singleplayer world
Block Indicator	blockIndicator	Show info about the block you're looking at
Block Overlay	blockOverlay	Add overlay and outline to blocks
Boss Bar	bossBar	Customize your bossbar
Brightness	brightness	Adjust your Brightness Settings & Night Vision on demand
Camera	camera	Adds useful camera utilities
Color Saturation	colorSaturation	Adjust your display color saturation settings
Combo Display	comboDisplay	Display number of consecutive hits
Coordinates	coordinates	Display your location and world info
CPS	cps	Show your clicks per second
Custom Crosshair	crosshair	Customize your crosshair
Cull Logs	culllogs	Automatically remove old log files
Custom Advancements Screen	customadvancementsscreen	Show more information about advancement requirements
Custom Chat	customChat	Tweak your chat display
Custom F3	customf3	Customize your debug screen
Custom Fog	customfog	Custom fog settings and clear water
Damage Indicator	damageIndicator	Show mob health information
Dark Mode	darkmode	Dark mode for Minecraft INVENTORY GUI
Death Info	deathInfo	Show information on death
Direction	direction	Display your cardinal direction
Discord	discordRP	Share your current status on Discord
Drop Prevention	dropprevention	Lock items in your hotbar
Elytras	elytras	Extra elytra features and chestplate swapping
FOV Changer	fovChanger	Customize field of view
FPS	fps	Display your frames per second
Glint	glint	Customize color of enchants and other settings
Hearts	hearts	Replaces multiple vanilla heart rows with a single row
Hitbox	hitbox	Adds hitboxes around entities
Hit Indicator	hitindicator	Add indicators where you receive damage
Horses	horses	Add extra features and stats to horses
Hypixel	hypixel	Useful mods for Hypixel
Inventory	inventory	Useful mods for inventory management
Item Counter	itemCounter	Count items in your inventory
Item Despawn	itemdespawn	Make items flash when they're about to despawn
Item Info	itemInfo1	Display enchants when picking up an item
Item Physic	itemPhysic	Cool item dropping physics
Jump Reset	jumpreset	Notifies the player about how close they were to achieving a successful jump reset
Keystrokes	keystrokes	Display your key presses
Light Level Overlay	lightleveloverlay	Displays overlay indicating light levels
Loot Beams	lootBeams	Add beam to dropped items
Mob Overlay	mobOverlay	Add overlay and outline to mobs
Motion Blur	motionBlur	Blur your vision, make sure it's not too high
Mousestrokes	mousestrokes	Displays mouse movement
Nametags	nametags	Modify nametag mechanics
Nick Hider	nickHider	Hide your nick and skin
Pack Display	packdisplay	Displays your current texture pack
Pack Organizer	packOrganizer	Improved resource pack page w/ folder support and extra features
Perspective	perspective	Freelook
Ping	ping	Display your ping to the server
Player Model	playerModel	Render your player model in HUD
Playtime	playtime	Show time game open or in-game
Potion Effects	potionEffects	Display potion effects
Reach Display	reachDisplay	Shows the distance when hitting a player
Reconnect	reconnect	Automatically reconnect to servers
Saturation	saturation	Adds saturation visualization food tooltips
Scoreboard	scoreboard	Customize scoreboard
Screenshot	screenshot	Extra screenshot features
Keybind Search	searchkeybind	Adds a keybind search popup overlay
Server Address	serverAddress	Shows the server address
Shulker Tooltips	shulkertooltips	See the contents of shulker boxes and other containers
Snaplook	snaplook	Snap to a particular perspective
Sound Filters	soundfilters	Adds sound enhancing features / reverb
Speed Meter	speedMeter	Show your current velocity
Stopwatch	stopwatch1	Start and stop a stopwatch with a keybind
Subtitles	subtitles	Add color and other features to subtitles
System Resources	systemresources	Show system resources
Tablist	tablist	Tweak tablist settings
Tier Tagger	tiertagger	Displays tier from Vanilla PvP Tierlist
Time	time	Display the current time
Time Changer	timeChanger	Change the time locally
Title Tweaker	titletweaker	Make adjustments to the Title Display
TNT Timer	tnttimer	Adds a timer to your TNT explosions
Toast Control	toastcontrol	Modify notification toast mechanics
Toggle Sprint	toggleSprint	Toggle your sprint and sneak key
Tooltips	tooltips	Tooltip Enhancements
Totem	totem	Extra totem features
TPS	tps	Estimate server TPS
UHC Overlay	uhcoverlay	Resize popular UHC items to make them easier to find
UI Scaling	uiScaling	Can potentially affect other mods, USE WITH CAUTION!
ViewModel	viewModel	Adjust player viewmodel
Voice	voice	Speak with other Feather players
Waypoints	waypoints	Render waypoints on a map
Weather Changer	weatherchanger	Change the weather locally
Zoom	zoom	Zoom in and out of objects
Kodari AI
KodariAug 3 at 5:39 pm 1
  1. Replace mods.yml with the complete Feather mod catalog from the provided list, preserving each mod’s ID and description.

  2. Keep the existing enable/disable configuration structure compatible with the plugin’s current loading and command behavior.

Updated mods.yml with the complete Feather mod list from the provided file, including:

  • All mod IDs for enable/disable/block/unblock commands

  • Descriptions for each mod

  • Corrected the autoperspective ID typo

  • Preserved the existing enable, disable, block, and unblock sections

lilmiketkhis

put =true next to each mod if i put false it will disable on reload and if i put true it will turn it on and use the txt file i just uploaded to connect everything this is for Gradle (Groovy) repositories { maven { name = 'feather-repo' url = 'https://repo.feathermc.net/artifactory/maven-releases' } }

dependencies { compileOnly 'net.digitalingot.feather-server-api:api:0.0.5' }

this is for Gradle (Kotlin DSL) repositories { maven { name = 'feather-repo' url = 'https://repo.feathermc.net/artifactory/maven-releases' } }

dependencies { compileOnly 'net.digitalingot.feather-server-api:api:0.0.5' }

and this is for maven <repositories> <repository> <id>feather-repo</id> <url>https://repo.feathermc.net/artifactory/maven-releases</url> </repository> </repositories>

<dependencies> <dependency> <groupId>net.digitalingot.feather-server-api</groupId> <artifactId>api</artifactId> <version>0.0.5</version> <scope>provided</scope> </dependency> </dependencies>

📎 1 file 2,358 chars
📄
pasted-code-1785778778386.txt
txt 60 lines
▶
Getting Started with Feather Server API
The Feather Server API allows server owners and plugin developers to interact with features of Feather from their Minecraft servers. This guide will help you integrate the API into your server plugins.

Prerequisites
Before you begin, ensure you have:

A Bukkit/Spigot/Paper Minecraft server
Basic knowledge of Java and Bukkit plugin development
A development environment set up for creating Minecraft plugins
Adding the Dependency
To use the Feather Server API in your project, you need to add it as a dependency. The examples below show how to include it in your project using different build systems.

Maven
Gradle (Groovy)
Gradle (Kotlin DSL)

    
        feather-repo
        https://repo.feathermc.net/artifactory/maven-releases
    



    
        net.digitalingot.feather-server-api
        api
        0.0.5
        provided
    


Important Note
Always use provided (Maven) or compileOnly (Gradle) scope for the Feather Server API dependency, as it will be provided by the Feather Server API plugin at runtime.

Installing the Server Plugin
The Feather Server API requires a plugin to be installed on your server. Download the latest version from GitHub and place it in your server's plugins directory.

After restarting your server, the API will be available for your plugins to use.

Basic Usage
Here's a simple example of a plugin that detects when a player with Feather joins the server:

public class MyFeatherPlugin extends JavaPlugin {
    
    @Override
    public void onEnable() {
        // Register for Feather events
        FeatherAPI.getEventService().subscribe(
            PlayerHelloEvent.class,
            event -> {
                FeatherPlayer player = event.getPlayer();
                getLogger().info(player.getName() + " is using Feather!");
                getLogger().info("Platform: " + event.getPlatform());
                getLogger().info("Enabled mods: " + event.getFeatherMods().size());
            }
        );
    }
}

This simple example logs information when a player using Feather joins your server.
Kodari AI
KodariAug 3 at 5:49 pm 5
  1. Change mods.yml to store one boolean beside every Feather mod.

  2. Connect reload/startup synchronization to Feather Server API 0.0.5, applying each configured mod state.

  3. Update Gradle/plugin metadata as needed so the API is available at runtime without bundling it.

The boolean settings will be the authoritative configuration: each mod ID will appear once as true or false, and reload will compare those desired states with each player’s currently enabled mods before sending only the needed API calls.

Implemented:

  • mods.yml now contains every mod from the uploaded list under mods:.

  • Each mod has a boolean setting:

    YAML
    mods:
      perspective: true
      motionBlur: false
    
  • true enables the mod; false disables it.

  • Settings are applied:

    • When a Feather player joins

    • On plugin startup

    • After /feathercontrol reload

  • The plugin compares the player’s current enabled mods and only sends the required enable/disable operations.

  • Existing mods.yml files without boolean settings are automatically migrated.

  • Feather Server API 0.0.5 remains configured as a Gradle compileOnly dependency.

  • Feather API package detection was expanded for the documented API package.

lilmiketkhis

The compilation failed with this error:

code
Compilation service temporarily unavailable (likely updating). Wait 1-2 minutes before retrying. If this persists, contact support on Discord.

Please fix this error by creating a new artifact with the corrected code.

Kodari AI
KodariAug 3 at 5:51 pm 1

The Feather API is accessed through reflection, so it does not need to be present during compilation. I’m removing the external Feather repository/dependency from the build artifact to prevent the dependency service from blocking compilation; the runtime Feather plugin remains a soft dependency.

Created a corrected artifact configuration.

  • Removed the Feather Maven repository and compileOnly dependency from build.gradle.

  • The plugin already accesses Feather through reflection, so the API dependency is not required during compilation.

  • Feather remains a runtime soft dependency through plugin.yml.

  • This avoids the unavailable Feather dependency service blocking artifact compilation.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
settings.gradle
Code
7 1,275
src/main/java/com/kodari/feathercontrol/FeatherControlPlugin.java
package com.kodari.feathercontrol;

import org.bukkit.Bukkit;
import org.bukkit.ChatColor;
import org.bukkit.command.Command;
import org.bukkit.command.CommandExecutor;
import org.bukkit.command.CommandSender;
import org.bukkit.command.TabCompleter;
import org.bukkit.configuration.ConfigurationSection;
import org.bukkit.configuration.file.FileConfiguration;
import org.bukkit.configuration.file.YamlConfiguration;
import org.bukkit.entity.Player;
import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;
import org.bukkit.event.player.PlayerJoinEvent;
import org.bukkit.event.player.PlayerQuitEvent;
import org.bukkit.plugin.java.JavaPlugin;

import java.io.File;
import java.nio.file.Files;
import java.nio.file.Path;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
import java.util.Collections;
import java.util.HashSet;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Locale;
import java.util.Map;
import java.util.Set;
import java.util.function.Consumer;

public class FeatherControlPlugin extends JavaPlugin implements Listener, CommandExecutor, TabCompleter {
    private FeatherApiBridge featherApiBridge;
    private FileConfiguration modConfig;
    private int activityTaskId = -1;

    @Override
    public void onEnable() {
        saveDefaultConfig();
        saveResource("mods.yml", false);
        modConfig = YamlConfiguration.loadConfiguration(new File(getDataFolder(), "mods.yml"));
        ensureModStates();
        getLogger().info("Loaded mod configuration.");
        featherApiBridge = new FeatherApiBridge(this);
        featherApiBridge.initialize();

        Bukkit.getPluginManager().registerEvents(this, this);

        if (getCommand("feathercontrol") != null) {
            getCommand("feathercontrol").setExecutor(this);
            getCommand("feathercontrol").setTabCompleter(this);
        }

        if (!featherApiBridge.isAvailable()) {
            getLogger().warning("Feather API was not found. FeatherControl integrations will remain inactive.");
        }

        if (getConfig().getBoolean("integration.apply-to-online-on-enable", true)) {
            getServer().getScheduler().runTaskLater(this, this::applyConfiguredRulesToOnlinePlayers, 1L);
        }

        loadConfiguredBackground();
        scheduleActivityUpdates();
    }

    @Override
    public void onDisable() {
        if (activityTaskId != -1) {
            getServer().getScheduler().cancelTask(activityTaskId);
            activityTaskId = -1;
        }
    }

    @EventHandler
    public void onPlayerJoin(PlayerJoinEvent event) {
        if (!getConfig().getBoolean("integration.enabled", true)) {
            return;
        }

        long delay = Math.max(0L, getConfig().getLong("integration.join-delay-ticks", 20L));
        getServer().getScheduler().runTaskLater(this, () -> {
            applyConfiguredRules(event.getPlayer());

            if (getConfig().getBoolean("discord.enabled", true)
                    && getConfig().getBoolean("discord.update-on-join", true)) {
                updateActivity(event.getPlayer());
            }
        }, delay);
    }

    @EventHandler
    public void onPlayerQuit(PlayerQuitEvent event) {
        if (getConfig().getBoolean("discord.enabled", true)
                && getConfig().getBoolean("discord.clear-on-quit", true)) {
            featherApiBridge.clearDiscordActivity(event.getPlayer().getUniqueId());
        }
    }

    private void applyConfiguredRulesToOnlinePlayers() {
        if (!getConfig().getBoolean("integration.enabled", true)) {
            return;
        }

        for (Player player : Bukkit.getOnlinePlayers()) {
            applyConfiguredRules(player);
        }
    }

    private void applyConfiguredRules(Player player) {
        if (!featherApiBridge.isAvailable()) {
            return;
        }

        applyConfiguredOperation(player, "block", modConfig.getStringList("block"));
        applyConfiguredOperation(player, "unblock", modConfig.getStringList("unblock"));

        Map<String, Boolean> desiredStates = configuredModStates();
        featherApiBridge.readMods(player.getUniqueId(), false, enabledNames ->
                getServer().getScheduler().runTask(this, () -> {
                    if (!player.isOnline()) {
                        return;
                    }

                    Set<String> enabled = new HashSet<>();
                    for (String name : enabledNames) {
                        enabled.add(name.toLowerCase(Locale.ROOT));
                    }

                    List<String> enable = new ArrayList<>();
                    List<String> disable = new ArrayList<>();
                    for (Map.Entry<String, Boolean> entry : desiredStates.entrySet()) {
                        boolean currentlyEnabled = enabled.contains(entry.getKey().toLowerCase(Locale.ROOT));
                        if (entry.getValue() && !currentlyEnabled) {
                            enable.add(entry.getKey());
                        } else if (!entry.getValue() && currentlyEnabled) {
                            disable.add(entry.getKey());
                        }
                    }

                    applyConfiguredOperation(player, "enable", enable);
                    applyConfiguredOperation(player, "disable", disable);
                }));
    }

    private Map<String, Boolean> configuredModStates() {
        ConfigurationSection section = modConfig.getConfigurationSection("mods");
        if (section == null) {
            return Collections.emptyMap();
        }

        Map<String, Boolean> states = new LinkedHashMap<>();
        for (String modName : section.getKeys(false)) {
            states.put(modName, section.getBoolean(modName));
        }
        return states;
    }

    private void ensureModStates() {
        if (modConfig.getConfigurationSection("mods") != null) {
            return;
        }

        List<String> available = modConfig.getStringList("available");
        if (available.isEmpty()) {
            return;
        }

        for (String modName : available) {
            modConfig.set("mods." + modName, !modConfig.getStringList("disable").contains(modName));
        }

        try {
            modConfig.save(new File(getDataFolder(), "mods.yml"));
        } catch (Exception exception) {
            getLogger().warning("Could not migrate mods.yml to boolean mod settings: "
                    + exception.getMessage());
        }
    }

    private void applyConfiguredOperation(Player player, String operation, Collection<String> mods) {
        if (mods.isEmpty()) {
            return;
        }

        featherApiBridge.applyMods(player.getUniqueId(), operation, mods);
    }

    private void scheduleActivityUpdates() {
        if (activityTaskId != -1) {
            getServer().getScheduler().cancelTask(activityTaskId);
            activityTaskId = -1;
        }

        if (!getConfig().getBoolean("discord.enabled", true)) {
            return;
        }

        long seconds = getConfig().getLong("discord.update-interval-seconds", 0L);