Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

can't disable the Mini Map Addon

Đang mở
#2 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
38/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
java
Lĩnh vực
api

Hướng nghiên cứu

Bắt đầu với điểm vào LabyModPlayer.disableAddons(addonsToDisable) được hiển thị trong bản tái hiện và so sánh cách xử lý "keystrokes" với "labysminimap". Tái hiện ví dụ về sự kiện tham gia, sau đó xác minh rằng addon Mini Map được vô hiệu hóa theo cùng cách như addon đang hoạt động.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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

Ngôn ngữ chính
Java
Star
12
Fork
3
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của LabyMod/labymod4-server-api

Tất cả issue của LabyMod/labymod4-server-api

Issue tương tự

Thêm issue về Java

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.