Skip to content

About

RushCT MC Server管理团队自行研制的插件,专门应用于该服务器。 A plugin developed independently by RushCT MC Server Admins, specifically intended for use on RushCT MC Server

Resources

Stars

0 stars

Watchers

0 watching

Forks

 
 

Repository files navigation

RushCT Mod - Fabric Edition

This mod includes AI-generated contents

Converted from Bukkit/Spigot plugin to Fabric mod.

Conversion Summary

Original Files (Bukkit)

  • RushCT.java - Main plugin class
  • MotdSystem.java - MOTD server list system
  • FriendSystem.java - Friend system with passports
  • EconomySystem.java - Economy + Residence GUI

Converted Files (Fabric)

Main Class

  • RushCTMod.java - Main mod class implementing ModInitializer
    • Replaces JavaPlugin with Fabric's ModInitializer
    • Registers all commands via Brigadier
    • Initializes all sub-systems
    • Handles server lifecycle events

Systems

  • system/MotdSystem.java - MOTD system

    • Replaces ServerListPingEvent with server metadata approach
    • Replaces BukkitRunnable with ServerTickEvents
    • Config moved from YAML to JSON
  • system/FriendSystem.java - Friend system

    • Replaces Bukkit events with Fabric events (ServerPlayConnectionEvents, ServerMessageEvents)
    • Replaces InventoryHolder GUI with GuiHelper ScreenHandler-based GUI
    • Replaces PlaceholderAPI with built-in playtime tracking
    • Replaces YamlConfiguration with ModConfig (JSON)
    • Friend requests, passports, gender selection, visibility modes all preserved
  • system/EconomySystem.java - Economy system

    • Replaces Vault economy with built-in simple economy
    • Residence GUI removed (no direct Fabric equivalent)
    • JSON-based persistence
  • system/CheckInSystem.java - Daily check-in system

    • Extracted from main RushCT class
    • Calendar UI with coefficient-based rewards
    • Makeup check-in feature preserved
  • system/GiftSystem.java - Gift/parcel system

    • Extracted from main RushCT class
    • Send/receive items as gifts
    • Pagination support
  • system/ChatSystem.java - Chat moderation

    • Extracted from main RushCT class
    • Spam detection with mute system
    • +1 message reward system
    • New player welcome

Utilities

  • util/TextUtil.java - Text formatting

    • Replaces ChatColor.translateAlternateColorCodes
    • Supports & color codes, <#RRGGBB> hex colors, <gradient:...> gradients, <rainbow> rainbow text
    • Outputs native Minecraft Text components
  • config/ModConfig.java - Configuration system

    • Replaces YamlConfiguration
    • JSON-based with dot-path access (e.g., "fake-players.enabled")
    • Similar API to Bukkit config
  • gui/GuiHelper.java - GUI helper

    • Replaces Bukkit's InventoryHolder pattern
    • Uses GenericContainerScreenHandler with click interception
    • Chest-style 9x6 menus

API Mappings

Bukkit API Fabric Equivalent
JavaPlugin ModInitializer
@EventHandler + Listener Event callbacks (ServerPlayConnectionEvents.JOIN.register())
org.bukkit.entity.Player net.minecraft.server.network.ServerPlayerEntity
org.bukkit.inventory.ItemStack net.minecraft.item.ItemStack
org.bukkit.Material net.minecraft.item.Items
Inventory + InventoryHolder SimpleInventory + ScreenHandler
YamlConfiguration ModConfig (JSON)
BukkitRunnable ServerTickEvents.END_SERVER_TICK
ChatColor Text + Style + Formatting
onCommand() Brigadier CommandRegistrationCallback
ServerListPingEvent Server metadata provider
PlaceholderAPI Built-in placeholders
Vault Economy Built-in economy
Residence plugin Removed (use Open Parties and Claims or similar)
Bukkit.broadcastMessage() server.getPlayerManager().broadcast()
player.performCommand() CommandManager.execute()
player.getInventory().addItem() player.getInventory().insertStack()
player.openInventory() player.openHandledScreen()

Removed Features

  • Residence/Land Claim GUI: No direct Fabric equivalent. Could integrate with Open Parties and Claims, GOML-Residence, or other Fabric land claim mods.
  • PlaceholderAPI dependency: Replaced with built-in playtime tracking.
  • Vault dependency: Replaced with built-in economy system.

Build Instructions

  1. Set up Fabric development environment
  2. Copy src/ directory to your mod project
  3. Run ./gradlew build
  4. Find the compiled jar in build/libs/

Target Version

  • Minecraft: 1.20.4
  • Java: 17+
  • Fabric Loader: 0.15.7+
  • Fabric API: 0.96.11+

About

RushCT MC Server管理团队自行研制的插件,专门应用于该服务器。 A plugin developed independently by RushCT MC Server Admins, specifically intended for use on RushCT MC Server

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages