ggqg947-a11y

תיצור פלאגין חיות ומובים לא יכולים לשתגר כל החיות וכל המובים מגם בהיצים לא עובדים זימון תעשה גישות luckperms תעשה פקודה set לשרת תעשה on off rl list תעשה כל מובים וכל החיות שקמיות במיינקאפט

תיצור פלאגין לה bungocored

Kodari AI
KodariMar 4 at 3:40 pm 12,751 (v2)

I’ll create a Spigot plugin (not BungeeCord) that blocks all mob/entity spawning and projectiles, with LuckPerms permissions and full command set.

Plan:

  • MobBlockPlugin - main class

  • ConfigManager - manages per-world settings and mob toggles

  • MobListener - cancels all spawning and projectile events

  • MobBlockCommand - handles set/on/off/rl/list commands

  • LuckPerms permission nodes for each action

MobBlocker
A Spigot plugin that completely blocks mob and entity spawning across all worlds. Supports blocking all Minecraft mobs and entities individually or globally per world. Projectiles (arrows, fireballs, etc.) are also blocked. Includes LuckPerms permission integration and commands: set (per mob toggle), on/off (global per world), rl (reload config), and list (view current status of all mobs).

Now I have everything I need. Let me build the full plugin:

MobBlocker
A Spigot plugin that blocks mob and entity spawning across all worlds individually. Supports blocking all Minecraft mobs and entities, projectiles (arrows, fireballs etc). Includes LuckPerms permission integration and commands: set (per mob/world toggle), on/off (global per world), rl (reload config), and list (view current status of all mobs per world). Config is persistent and auto-saves.

הפלאגין נוצר עם כל הפיצ’רים הבאים:

📋 סיכום:

פקודות (/mobblock / /mb):

פקודה
תיאור
/mobblock on [world]
הפעל חסימה בעולם
/mobblock off [world]
כבה חסימה בעולם
/mobblock set <mob> <true/false> [world]
הגדר mob ספציפי
/mobblock list [world]
הצג רשימת כל המובים
/mobblock rl
טען מחדש קונפיג

הרשאות LuckPerms:

  • mobblock.admin - גישה מלאה

  • mobblock.on/off/set/list/rl - הרשאות נפרדות

  • mobblock.bypass - עקוף חסימת קליעים

מה נחסם:

  • כל החיות והמובים של Minecraft (90+ סוגים)

  • קליעים: חצים, שלגים ביצים, כדורי אש, tridents, wither skulls ועוד

  • כל זה ניתן לניהול פר-עולם ופר-mob

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
Code
8 643
src/main/java/com/mobblocker/MobBlockerPlugin.java
package com.mobblocker;

import com.mobblocker.command.MobBlockCommand;
import com.mobblocker.config.ConfigManager;
import com.mobblocker.listener.MobListener;
import lombok.Getter;
import org.bukkit.plugin.java.JavaPlugin;

@Getter
public class MobBlockerPlugin extends JavaPlugin {

    private ConfigManager configManager;

    @Override
    public void onEnable() {
        saveDefaultConfig();
        configManager = new ConfigManager(this);
        configManager.load();

        getServer().getPluginManager().registerEvents(new MobListener(this), this);

        MobBlockCommand command = new MobBlockCommand(this);
        getCommand("mobblock").setExecutor(command);
        getCommand("mobblock").setTabCompleter(command);

        getLogger().info("MobBlocker enabled successfully.");
    }

    @Override
    public void onDisable() {
        if (configManager != null) {
            configManager.save();
        }
        getLogger().info("MobBlocker disabled.");
    }
}