본문 바로가기
Minecraft/Plugins

(S) Vault 플러그인

by Minra1 2023. 10. 2.
SMALL

[E]Vault is a Permissions, Chat, & Economy API to give plugins easy hooks into these systems without needing to hook or depend on each individual plugin themselves. It was born out of a distaste for how both Register and the current Permissions API are run, and their lack of features or over-complicated implementations. Vault attempts to solve these issues by being intuitive and providing plugins with support for any system that they may use.

[K] Vault는 각 개별 플러그인 자체를 연결하거나 의존할 필요 없이 플러그인을 이러한 시스템에 쉽게 연결할 수 있는 권한, 채팅 및 경제 API입니다. 이는 Register와 현재 Permissions API가 실행되는 방식, 기능 부족 또는 지나치게 복잡한 구현에 대한 혐오감에서
 탄생했습니다. Vault는 직관적이고 사용 가능한 모든 시스템을 지원하는 플러그인을 제공함으로써 
이러한 문제를 해결하려고 시도합니다

2011년부터 꾸준하게 업데이트 되어오고 있는 마인크래프트의 수많은 경제, 채팅, 펄미션 제어 플러그인에서 광범위하게 쓰이는 API입니다. 모든 펄미션, 경제, 채팅 관리 플러그인 각자의 방식대로 구현된다면 서버 관리자의 입장에서 플러그인을 바꿀 때마다 설정이 날아가게 되어 곤란하게 되어 불필요한 작업량이 증가하게 됩니다. 이를 해결하기 위해서 서로 다른 플러그인 간에 데이터를 연동하기 위해 마인크래프트 플러그인 개발 커뮤니티는 Vault를 사용하고 있습니다.많은 플러그인들이 요구하고 있기 때문에 Spigot에서 다운로드 수 2위를 기록하는 마인크래프트 서버 시스템 구축에 필수적인 플러그인입니다.

Vault.1.7.3..jar
0.26MB

설정 :
● Update- Check 
   ● turns the uppdate checker on/off

펄미션 :
● vault.admin 
  ● allows access to vault info and conversion commands 
  ● defaults to OP 

● vault.update
  ● Anyone with this permission will be notified when Vault is out-dated 
  ● defaults to OP 
  ● setting to false in permissions.yml will disable version check messages for console

Vault currently Supports:

  Perms: Permissions 3, bPermissions, PEX, GroupManager, PermissionsBukkit, zPermission, SimplyPerms, 
     Privileges, DroxPerms, xPerms
  Econ: iConomy 4,5,6, BOSEconomy 6 & 7, EssentialsEcon, 3Co, MultiCurrency, MineConomy, eWallet, EconXP, 
     CurrencyCore, CraftConomy, AEco, Gringotts
          Bank support in CraftConomy, CurrencyCore, BOSE & iCo6 only
          iCo6/CurrencyCore use merged player/bank accounts. It's suggested to use BOSE for full featured banks.
          iCo6 flatfile has SEVERE bugs, USE AT YOUR OWN RISK
    Chat: mChat, iChat, bPermissions, PEX, P3, DroxPerms
    Other economies/permissions systems may have built-in support for Vault, check with them to be sure.

Vault는 현재 다음을 지원합니다.

권한: 권한 3, bPermissions, PEX, GroupManager, PermissionsBukkit, zPermission, SimplyPerms, 권한, DroxPerms, xPerms
이콘: iConomy 4,5,6, BOSEconomy 6 & 7, EssentialsEcon, 3Co, MultiCurrency, MineConomy, eWallet, EconXP, CurrentCore, CraftConomy, AEco, Gringotts
CraftConomy, CurrentCore, BOSE 및 iCo6에서만 은행 지원
iCo6/CurrencyCore는 병합된 플레이어/은행 계좌를 사용합니다. 모든 기능을 갖춘 은행에는 BOSE를 사용하는 것이 좋습니다.
iCo6 플랫 파일에는 심각한 버그가 있으므로 위험을 감수하고 사용하십시오.
채팅: mChat, iChat, bPermissions, PEX, P3, DroxPerms
다른 경제/권한 시스템에는 Vault가 기본적으로 지원될 수 있으므로 해당 시스템에 문의하여 확인하세요.

Linking Vault
There's a slightly longer/more detailed example on the Vault github page on how you might link to vault in a plugin. See: https://github.com/MilkBowl/VaultAPI

The following 3 methods can be used along with the 3 variables to load both the permission, economy, and chat systems from Vault. Make sure to add depend: [Vault] to your plugin.yml - You don't need to use all 3 if you don't want to in your plugin! If you only want one or two of the three APIs only use those ones you need!

NOTICE: Vault automatically logs what Plugins it found and hooks to, there is no need to display this information in your plugin.

NOTICE: Don't Forget To add softdepend: [Vault] or depend: [Vault] to your plugin.yml

    public static Permission permission = null;
    public static Economy economy = null;
    public static Chat chat = null;

    private boolean setupPermissions()
    {
        RegisteredServiceProvider<Permission> permissionProvider = getServer().getServicesManager().getRegistration(net.milkbowl.vault.permission.Permission.class);
        if (permissionProvider != null) {
            permission = permissionProvider.getProvider();
        }
        return (permission != null);
    }

    private boolean setupChat()
    {
        RegisteredServiceProvider<Chat> chatProvider = getServer().getServicesManager().getRegistration(net.milkbowl.vault.chat.Chat.class);
        if (chatProvider != null) {
            chat = chatProvider.getProvider();
        }

        return (chat != null);
    }

    private boolean setupEconomy()
    {
        RegisteredServiceProvider<Economy> economyProvider = getServer().getServicesManager().getRegistration(net.milkbowl.vault.economy.Economy.class);
        if (economyProvider != null) {
            economy = economyProvider.getProvider();
        }

        return (economy != null);
    }
Repository Information for Maven Projects
<repository>
<id>vault-repo</id>
<url>http://nexus.hc.to/content/repositories/pub_releases</url>
</repository>

'Minecraft > Plugins' 카테고리의 다른 글

[ Plugins ] 란?  (0) 2023.10.02