• 欢迎加入MineBBS QQ讨论群:点击查看所有的官方讨论群
  • 我们将于近期对服务器进行迁移,服务可能中断至多2日。请各位安排好自己的访问计划,造成不便敬请谅解!
  • MineBBS入站考试已经上线!想要成为【正式会员】解锁更多功能吗?快来参与吧!【点我去看】
WnUnion-联盟

LSE WnUnion-联盟 1.3.3

请登录后获取
#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~:
# Fix the serious bug related to logs. Please update to version 1.3.3

一、 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/
    BackupTimes: [[0,4,0],[14,0,0]], // backup time
    BackupSavedNum: 30,          // backup saved count
    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);
后退
顶部 底部