Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

can't disable the Mini Map Addon

オープン
#2 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
38/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
java
領域
api

調査の方向性

再現に示されているエントリーポイント LabyModPlayer.disableAddons(addonsToDisable) から始め、"keystrokes" と "labysminimap" の扱いを比較します。参加イベントの例を再現し、次に Mini Map addon が動作している addon と同じ方法で無効化されることを確認します。

索引モデルが issue の本文から書いたものです。

説明

enhancement
General Troubleshooting
  • I am using the latest version of the LabyMod 4 Server API.
  • I am using the latest version of LabyMod.
  • I have checked for similar issues on the Issue-tracker.
  • I have checked for Pull Requests that might already address this issue.
Platforms

Spigot / Bukkit, Other (please specify in the additional information text field at the bottom)

Affected Minecraft Version(s)

ALL of the Labymod Versions

Expected Behaviour

I can disable other addon with below code, but when im going to disable "labysminimap" it doesnt function at all.

Code Example for Reproduction Steps
@Override
    public void onEnable() {
        instance = this;
        LabyModProtocolService.initialize(this);
        getServer().getPluginManager().registerEvents(new Listener() {
            @EventHandler
            public void onLabyModPlayerJoin(LabyModPlayerJoinEvent event) {
                Player player = event.labyModPlayer().getPlayer();
                List<String> addonsToDisable = new ArrayList<>();

                addonsToDisable.add("keystrokes"); // it works, getting disabled.
                addonsToDisable.add("labysminimap"); // it doesnt function

                LabyModPlayer labyModPlayer = LabyModProtocolService.get().getPlayer(player.getUniqueId());

                labyModPlayer.disableAddons(addonsToDisable);
                requestAddons(player);
                player.sendMessage(ChatColor.RED + "LabyMod Integration has been enabled, due to the server rules Minimap addon has been disabled on this gamemode.");
            }
        }, this);
    }
Exception or Error
N/A
Additional Information

No response

主要言語
Java
スター
12
フォーク
3
PR マージ指標
30日以内にマージされた PR はありません

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

LabyMod/labymod4-server-api のほかの issue

LabyMod/labymod4-server-api の issue をすべて見る

似ている issue

Java の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。