• 周年纪念勋章活动已圆满结束,如有已购买但仍未申请的用户,可以通过对应勋章的下载链接申请~
WnUnion-联盟

LSE WnUnion-联盟 1.3.2

#This plugin is open source and has launched MineBBS for the first time
#Reproduction without permission is prohibited, and unauthorized commercial sales are prohibited
====
# Author:Wn1027
# Do not give feedback on bugs in the evaluation section. Please go to the discussion/feedback section for feedback on bugs,
# feedback QQ Group: 311860068

# Public welfare development, please give positive feedback for its usability~:

一、 Functions of plugins

  1. Alliance Announcement
  2. Alliance Notification
  3. TPA within the alliance (transmitted to alliance members) (optional)
  4. Alliance Wealth (Deposits)
  5. League level (League building level, placing blocks can accumulate personal building level, contribute to the league, and help the league upgrade)
  6. League ranking (level, wealth, number of people, creation time)
  7. Alliance teleportation anchor
  8. Chat within the alliance
  9. League Medal (chat bar title, conflicts with other chat bar styles)
  10. Log records (stored in./logs/WnUnion/)
  11. The OP has the highest authority to manage all settings of all leagues.
二、Installation and use of plugins (please refer to the corresponding updated content for version upgrades)
  1. Download to ./plugins/。
  2. start server,Automatically generate configuration files in ./plugins/WnNion/config.json
  3. Follow the instructions below to configure config.json
  4. Restart the server or console to execute /ll reload WnUnion
JavaScript:
let default_config =
{
    Language: 'en_US',
    CreateCost: 0,               // Create Union Fee
    CreateAuthority: true,       // Do you need permission from the server owner to create an union(/union lord "error block" true)
    UnionNameLimit: 15,          // Maximum number of characters in union name
    UnionDiscriptionLimit: 100,  // Maximum number of characters in union description
    TpaEnabled: false,           // Allow delivery to union members
    TpaPrice: 0,                 // Tpa price
    TpPosEnabled: false,         // Whether to enable the transfer anchor(TP pos) function
    TpPosPrice: 0,               // Set TP pos price(Delete non return coins)
    TpPosNum: 2,                 // TP pos limit quantity
    BillSavedDays: 60,           // Days to save bills and logs (form) except the logs under ./log/WnUnion/
    BankEnabled: false,          // Whether to activate the alliance bank function
    UnionChat: true,             // Enable intra union chat
    ChatMedal: false,            // Chat Medal(Conflicts with other chat plugins)
    PAPI: false,                 // enabled: PAPI BEPlaceholderAPI | UnionMedal: %player_UnionMedal% | UnionLevel: %player_UnionLevel%,please install pre plugin [URL='https://github.com/GroupMountain/GMLIB']GMLIB[/URL] and [URL='https://github.com/GroupMountain/GMLIB-LegacyRemoteCallApi']GMLIB-LegacyRemoteCallApi[/URL]
    BlockPlaceEnabled: true,     // enabled: Place blocks to obtain points
    EconomyType: 'llmoney',      // llmoney, scoreboard, func(external function)
    EconomyName: '§r§eCoin§r',   //
    EconomyScoreBoardName: '',   //
    EconomyFunc: { 
        namespace: '',           //
        getMoney: 'getMoney',    //
        setMoney: 'setMoney',
        addMoney: 'addMoney',
        reduceMoney: 'reduceMoney',
    }
}
;

三、How to use?
main menu:/union
Give players the authority to create alliances:/union lord "ERROR BLOCK" true
Chat within the team: /umsg <msg>

四、Customized features and developer calls

Please refer to the instructions at the end of the plugin for exporting APIs.
The alliance level configuration has not yet achieved config.json. Please check the function unionLevelText.
Using the exported API functions, mod plugins can be developed to achieve custom functions, such as customizing the way to obtain personal building level.
JavaScript:
mc.listen('onServerStarted', ()=>{
    if (ll.hasExported('WnUnion', 'getUnionData')){
        WnUnion.getUnionData = ll.imports('WnUnion', 'getUnionData');
        WnUnion.getPlayerData = ll.imports('WnUnion', 'getPlayerData');
        WnUnion.getMedal = ll.imports('WnUnion', 'getMedal');
        WnUnion.saveUnion = ll.imports('WnUnion', 'saveUnion');
        WnUnion.sendPlayerNotice = ll.imports('WnUnion', 'sendPlayerNotice');
        WnUnion.sendUnionNotice = ll.imports('WnUnion', 'sendUnionNotice');
        WnUnion.addUnionLog = ll.imports('WnUnion', 'addUnionLog');
        WnUnion.addUnionMoney = ll.imports('WnUnion', 'addUnionMoney');
        WnUnion.addPlayerConstruct = ll.imports('WnUnion', 'addPlayerConstruct');
        WnUnion.addUnionConstruct = ll.imports('WnUnion', 'addUnionConstruct');
        WnUnion.getMoney = ll.imports('WnUnion', 'getMoney');
        WnUnion.addMoney = ll.imports('WnUnion', 'addMoney');
        WnUnion.reduceMoney = ll.imports('WnUnion', 'reduceMoney');
        WnUnion.setMoney = ll.imports('WnUnion', 'setMoney');
    }else{
        logger.error(`WnUnion API获取失败, 请检查经WnUnion插件状态`);
    }
});

setInterval(()=>{
    for (let pl of mc.getOnlinePlayers()){
        if (pl!=null){
            WnUnion.addPlayerConstruct(pl.xuid, 1);
            pl.tell('blockplaceScore +1');
        }
    }
},1000);




浏览附件48703

浏览附件48700

浏览附件48701
后退
顶部 底部