Rice Plugins Rice Plugins
🏡 Home
  • Paid Plugins

    • [Guild]PlayerGuild
    • [Shop]RandomShop
    • [Auction]PlayerAuction
    • [Group Buy]PlayerPddShop
    • [Companion]CompanionsPlus
    • [Gem]PlayerGem
    • [Ranking]PlayerTop
  • Partial Paid

    • PlayerTitle
    • PlayerTask
    • PlayerWarp
  • Open Source (Paid)

    • HandyParticle
    • PlayerMenu
    • PlayerChat
    • ip2region
    • PlayerReturn
    • AfDianPay
    • OfflinePapi
  • Free Plugins

    • PlayerIntensify
    • PlayerCurrency
    • DeepSeek
    • MonsterPlus
    • RiceMotd
    • RiceNotice
    • PlayerRace
    • PlayerRewards
    • PlayerFatigue
    • LoginExpansion
    • PlayerSignIn
    • OauthLogin
    • PlayerScoreboard
    • DeathMark
    • PlayerTime
    • McMmoView
    • Fair-DanTiao
    • ResidenceEnhance
discord (opens new window)
  • 中文 (opens new window)
  • English (opens new window)
🏡 Home
  • Paid Plugins

    • [Guild]PlayerGuild
    • [Shop]RandomShop
    • [Auction]PlayerAuction
    • [Group Buy]PlayerPddShop
    • [Companion]CompanionsPlus
    • [Gem]PlayerGem
    • [Ranking]PlayerTop
  • Partial Paid

    • PlayerTitle
    • PlayerTask
    • PlayerWarp
  • Open Source (Paid)

    • HandyParticle
    • PlayerMenu
    • PlayerChat
    • ip2region
    • PlayerReturn
    • AfDianPay
    • OfflinePapi
  • Free Plugins

    • PlayerIntensify
    • PlayerCurrency
    • DeepSeek
    • MonsterPlus
    • RiceMotd
    • RiceNotice
    • PlayerRace
    • PlayerRewards
    • PlayerFatigue
    • LoginExpansion
    • PlayerSignIn
    • OauthLogin
    • PlayerScoreboard
    • DeathMark
    • PlayerTime
    • McMmoView
    • Fair-DanTiao
    • ResidenceEnhance
discord (opens new window)
  • 中文 (opens new window)
  • English (opens new window)
  • Basic

    • Introduction
    • Commands and Permissions
    • Variable Support
    • Image Gallery
    • Video Introduction
    • Purchase Notes
    • Changelog
  • Pro

    • Simplest Configuration
    • Create Companion
    • Companion Abilities
    • Companion Attributes
    • Companion Potions
    • Companion Equipment
    • Companion Models
    • Companion Mystery Box
    • Mob Capture
    • Companion Warehouse
  • Developer

    • API
    • CompanionsPlus
    • Developer
    handy
    2026-10-16
    目录

    API

    # API Purpose

    We warmly welcome integrating with this plugin to develop more add-ons. If you need additional APIs, please contact me to add them.

    3.0.0 provides cn.handyplus.companions.api.CompanionsPlusApi, which can give companions via giveCompanion(Player, String), or use giveCompanion(Player, String, boolean) to choose whether to enable immediately. It returns the new companion instance ID; it returns -1 when the config does not exist, the warehouse is full or adding fails, and it does not auto-enable by default.

    # 1. Importing API Dependency Package

    <repository>
        <id>handyplus-maven</id>
        <url>https://maven.cnb.cool/handyplus/maven/-/packages/</url>
    </repository>
    
    <dependency>
        <groupId>cn.handyplus.companions</groupId>
        <artifactId>CompanionsPlus</artifactId>
        <version>3.0.0</version>
        <scope>provided</scope>
    </dependency>
    
    

    # 2. View Specific Methods

    Javadoc Documentation (opens new window)

    Companion Warehouse

    ← Companion Warehouse

    Theme by Vdoing | Copyright © 2020-2026 Rice Plugins - All Rights Reserved
    • 跟随系统
    • 浅色模式
    • 深色模式
    • 阅读模式