Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

class設定を行うインターフェイスを提供する #67

Closed
ucchyocean opened this issue Oct 10, 2013 · 1 comment
Closed

class設定を行うインターフェイスを提供する #67

ucchyocean opened this issue Oct 10, 2013 · 1 comment

Comments

@ucchyocean
Copy link
Owner

今は、プレイヤーにclassを設定する実装は、cclassコマンド実装の中に埋め込まれており、プラグインの外から呼び出すことができない状態になっている。
そのため、ColorTeamingClassSign と実装が重複しており、メンテナンス性が良くない。
そこで、classをプレイヤーに適用するインターフェイスを用意して、外部プラグインから呼び出せるように調整する。

インターフェイス実装案

    /**
     * 指定されたプレイヤーに指定されたクラスを設定する
     * @param player プレイヤー
     * @param classname クラス名
     * @return クラス設定を実行したかどうか。
     * 例えば、指定されたクラス名が存在しない場合や、指定されたプレイヤーがオフラインの場合は、falseになる。
     */
    public boolean setClassToPlayer(Player player, String classname);
@ghost ghost assigned ucchyocean Oct 10, 2013
@ucchyocean
Copy link
Owner Author

Fixed
動作確認OK

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant