H
📎 1 file 9,344 chars
📄
Aspects3.txt
txt 166 lines
▶
Aspect SMP Plugin

All Messages Prefix : Aspect SMP ( in red bold )

In This Plugin Some Custom Unique Natures Aspect Exist And Their Unique Abilities and colour themes

Electric Aspect : (Colour : Yellow) (default item : Yellow Dye)
passive : gets strength 1 effect in weather is thunder storm
ability1 : Strikes Enemy With 10 Thunder Strikes At Once Dealing 19 Damage ( Ability Name : Thunderbolt)
ability2 : strikes its owner with a friendly thunder strike and gives its owner Speed 7 Effect for 10 Seconds ( Ability name : speedy)
terrain attack : Every Player Gets A Title "The Field Is Charged" in yellow and subtitle "Electric Terrain Are Now Stronger" and all electric aspect users gets strength 2 effect for 1 minute

Dark Aspect : (Colour : Black) (default item : black dye)
passive: gets strength 1 at night and weakness 1 at day
ability1 : Spawns a 10x10 obsidian box empty from inside spawns for 20 seconds and after 20 seconds its dissapears
ability2 : Player in 10 blocks radius except its owner will get nausea 2 , blindness 2 and slowness 2 effect for 7 seconds

Fighting Aspect : (Colour : Red) (Default item : red dye)
passive : strength 1 permanent effect
ability1 : gets strength 3 for 5 seconds 
ability2 : dashes forward and launches enemy away who are in the path

Dragon Aspect : (Colour : Blue) (Default item : blue dye)
ability1 : Shoots A Ball In The Sky And Meteors Will Shoot On the Ground for 5 seconds
ability2 : creates a dark blue circle with particles launching the players in 10 blocks radius away

Ice Aspect : (Colour : Light Blue) (default item : Light Blue Dye)
ability1 : shoots 3 ice spikes at enemy dealing 15 damage
ability2 : a message will pop up to its owner "Hit A Player To Freeze Them" And If Its Owner Hits A Player the victim will be freezed and cannot moved for 5 seconds

 Fairy Aspect : (Colour : pink) (default item : pink dye)
 ability1 : Gets 3 Hearts Healed of its owner
 ability2 : waits 3 seconds to charge and after that Shoots a Beam At Where Its Owner's Crosshair is dealing 32 damage 
 
 Phychic Aspect : (Colour : pink) (default item : pink dye)
 ability1 : its owner will get a message "Hit A Player To Control Them" and if its owner hit a player he will be controlled at where its owner's crosshair is
 ability2 : glows the player in 30 blocks radius
 
 Grass Aspect : (Colour : Lime ) (Default item : Lime dye)
 ability1 : gives enemy a slight knockback that deals 17 damage
 ability2 : gives its owner strength 2 for 5 seconds
 terrain attack : All Grass Aspect Players in 50 blocks radius will het strength 2 effect for 30 seconds
 
 Water Aspect : (colour : light blue) (default item : light blue dye)
 passive : permanent dolphin grace 1 effect and strength 1 if in water or weather is rain
 ability1 : can ride water waves for 5 seconds water waves dissapears after 5 seconds
 ability2 : Sets weathers to rain and all water aspect users gets strength 1 effect ( ability name : Rain Dance)
 
 Cosmic Aspect : (colour : black) (default item : black dye)
 passive : none
 ability1 : pulls enemy but enemy must be on its owner's crosshair
 ability2 : Makes A circlr Shield With particles and knocks enemy away
 
 Fire Aspect : (colour : orange ) (default item : orange dye)
 passive : gets strength effect in nether and weakness effect if standing in water
ability1 : creates a circle with orange particles and burns player except its owner in 10 blocks radius
ability2 : shoots fireball at where its owner's crosshair is dealing 19 damage

Titan Aspect : (colour : brown) (default item : brown dye)
ability1 : its owner size sets to 0.4 for 10 seconds
ability2 : its owner will get a message "Hit A Player To Giant Curse Them" and if its owner hits a player the victim size will be set to 3.0

Air Aspect : (Colour : White) (default item : white dye)
ability1 : dashes forward 20 blocks
ability2 : spawns a tornado that takes the players in 20 blocks inside of it and spins them upwards and throws them

Ghost Aspect : (colour : purple) (default item : Purple dye)
ability1 : Dragon Sound Will Hear And Player in 20 blocks radius will get slowness 4 effect for 10 seconds
ability2 : its owner will get a message "Hit A Player To Make A Bond With Them" and if its owner hits a player they will be conncected and if its owner die the player who has bond with he/she will also die

Steel Aspect : (colour : gray) (default item : gray dye)
ability1 : its owner will get a message "Hit A Player To Steal A Random Item From Their Inventory" and if its owner hits a player a random item will be stealed from the victim's inventory and given to its owner
ability2 : give its owner resistance 2 effect for 20 seconds



Commands :

/aspect start - starts a countdown in title "5" in purple bold "4" in green bold "3" in yellow bold "2" in Blue bold "1" in red bold and after that new title will come "Aspect SMP" in red bold and subtitle "Has Started" in green text and every player gets 64 cooked beef as starter and also plays a totem use effect to make it look cool and every player gets a random aspect
/ability1 - uses ability1 of aspect
/ability2 - uses ability2 of aspect
/terrainattack - uses terrain attack of an aspect
/aspect announce  - a title will come "Aspect Announcement" in red bold and subtitle will be text written for title announcements
/announce  - a title will come "Aspect Announcement" in red bold and subtitle will be text written for title announcements
/aspect phase 1 - Disables the diamond helmet , diamond leggings , diamond chestplate , diamond boots , diamond sword and diamond axe recipes and world border sets to 3000 blocks and everyone will get a title "Phase 1" in red bold and subtitle "The Origins" In purple Text
/aspect phase 2 - enables the diamond helmet , diamond leggings , diamond chestplate , diamond boots , diamond sword and diamond axe recipes and world border sets to 6000 blocks and everyone will get a title "Phase 2" in red bold and subtitle "The Diamond Age" In blue Text but disables the netherite helmet , netherite chestplate , netherite leggings , netherite boots , netherite sword and netherite axe recipe
/aspect phase 3 - enables the netherite helmet , netherite chestplate , netherite leggings , netherite boots , netherite sword and netherite axe recipe world border sets to 9000 blocks and everyone will get a title "Phase 2" in red bold and subtitle "The Netherite Age" In black Text 
/aspect trust  - trusts a player and aspect abilities cannot be used on trusted player and also cannot hit them 
/aspect trust list - shows the lists of trusted players
/aspect untrust - untrusts a player and aspect abilities now can be used on them and also can hit them
/aspect reroll  - rerolls a player's aspect and gives them a random aspect and removes previous aspect's effect
/aspect ability1 - uses ability1 of an aspect
/aspect ability2 - uses ability2 of an aspect
/aspect lives withdraw  - withdraws the number the lifes
/aspect revive  - revives a player and revived player will have 3 lives 
/aspect customitem give  
/aspect set   - sets a player's specific aspect
/aspect withdraw - withdraws the aspect and gives it default item in the inventory 
/aspect INVENTORY GUI - shows all aspects and their abilities and custom items in the INVENTORY GUI and items cannot be taken from it only operator can take items from it




Each Player Haves 5 Lives 

Starter Lives : 5
Max Lives : 10
Banned After : 0 lives

if A Player is on 0 lives he will gone to spectator mode and cannot move in the void

Custom Recipes :

Aspect Crown Template : can be craft only 4 times
4x prismarine shard
1x heart of the sea
4x netherite ingot

Aspect's Crown : can be craft only once
4x Aspect Crown Template
4x Netherite Block
1x Nether Star

Aspect Life : (default item : Red Dye)
4x Red Dye
4x Ancient Debris
center slot empty

A Player Abilities Will Lock After Some Kills Like
1. Ability1 Will Unlock After 5 Kills
2. Ability2 Will Unlock After 5 Kills
By Default Player Abilities Will Be Locked

Revival Beacon : default item beacon
4x Aspect Lives
4x Diamond
1x heart of the sea 

/revive - player must be holding a revival beacon to use this and if used a INVENTORY GUI will open with all banned players head in it and if the user clicks one of those head that player will be revived





Player's Hotbar Will Be Like :-

if Abilities Are Locked 🔒 
" Aspect | Locked 🔒  | Locked 🔒  | Aspectian Lives "

And If It Is Unlocked
" Aspect | Ability1  | Ability2 "


Cooldowns :

Caution : Player Cant bypass The Cooldown By Rejoining Server Or by Server Restarting

Cooldowns :
Ability1 - 5 minutes
Ability2 - 5 minutes
Terrain Attacks - 10 minutes

Player's Aspect Or Player Data Will Not Gone Even If Server Restarts Or Crashes or stop and start
Make The Plugin Low End And No Console Logs Spam For Passive Abilities And Plugin Can Also Run Even in a 2gb ram server Make The Plugin Light Weight 
and all features and abilities passive abilities everything should work properly
Kodari AI
KodariJul 5 at 1:39 pm 17

I’ll create a comprehensive AspectsSMP plugin with all the features described.

AspectsSMP
A unique SMP plugin featuring 15 custom aspects, each with distinct abilities, color themes, and passive effects. Includes a lives system (5 lives, max 10), custom recipes (Aspect Crown, Revival Beacon), phased progression (disable/enable gear), cooldown system, player trust system, and persistent data storage. Features commands for aspect management, ability usage, terrain attacks, and player revival.

Let me create all the files systematically

H

Yes

Kodari AI
KodariJul 5 at 1:59 pm 5

Good, the project skeleton is in place. Now I’ll create all 20+ Java files needed. Let me build this systematically.

Now I have full context. Let me create all missing files and fix issues. I need to create: AspectManager, 6 command classes, 3 listeners, GUI classes, and fix RecipeManager/PhaseManager.

Now let me create all the missing files. Starting with the manager and command classes:

H

Yes

Kodari AI
KodariJul 5 at 2:07 pm 19

Two issues:

  1. AspectAbility.java:269 — incomplete statement calling non-existent getPlayerDataMap() on PlayerData

  2. AbilityTracker.java:79 — missing closing braces, also missing Location import

Need to add AbilityTracker to the main plugin class too. Let me fix all three

Let me check other files that might be referenced but missing:

The two compilation errors are now fixed. Here’s what changed:

  1. AspectAbility.java:269 — removed the broken incomplete statement plugin.getPlayerDataManager().getPlayerData(player).getPlayerDataMap() and replaced with plugin.getAbilityTracker().setFreezeMode(player, true); which properly tracks the player in freeze mode (handled by the listener)

  2. AbilityTracker.java:79 — added missing closing braces and getter methods, plus the missing Location import

  3. AspectsSMP.java — added AbilityTracker field, initializer, and getter so AspectAbility can reference it

The project has many more files still needed (commands, listeners, GUI, etc.) — would you like me to continue creating those?

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
Code
28 2,543
src/main/java/com/aspectsmp/AspectsSMP.java
package com.aspectsmp;

import com.aspectsmp.command.*;
import com.aspectsmp.config.ConfigManager;
import com.aspectsmp.listener.AspectListener;
import com.aspectsmp.listener.PlayerListener;
import com.aspectsmp.manager.*;
import com.aspectsmp.inventory.gui.GUIListener;
import com.aspectsmp.inventory.gui.GUIManager;
import org.bukkit.Bukkit;
import org.bukkit.plugin.java.JavaPlugin;

public class AspectsSMP extends JavaPlugin {

    private static AspectsSMP instance;
    private ConfigManager configManager;
    private PlayerDataManager playerDataManager;
    private AspectManager aspectManager;
    private CooldownManager cooldownManager;
    private LivesManager livesManager;
    private PhaseManager phaseManager;
    private TrustManager trustManager;
    private GUIManager guiManager;
    private RecipeManager recipeManager;
    private AbilityTracker abilityTracker;

    @Override
    public void onEnable() {
        instance = this;

        saveDefaultConfig();

        this.configManager = new ConfigManager(this);
        this.playerDataManager = new PlayerDataManager(this);
        this.aspectManager = new AspectManager(this);
        this.cooldownManager = new CooldownManager(this);
        this.livesManager = new LivesManager(this);
        this.phaseManager = new PhaseManager(this);
        this.trustManager = new TrustManager(this);
        this.guiManager = new GUIManager();
        this.recipeManager = new RecipeManager(this);
        this.abilityTracker = new AbilityTracker();

        registerListeners();
        registerCommands();

        recipeManager.registerRecipes();

        getLogger().info("AspectsSMP has been enabled!");
    }

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

    private void registerListeners() {
        Bukkit.getPluginManager().registerEvents(new GUIListener(guiManager), this);
        Bukkit.getPluginManager().registerEvents(new AspectListener(this), this);
        Bukkit.getPluginManager().registerEvents(new PlayerListener(this), this);
    }

    private void registerCommands() {
        getCommand("aspect").setExecutor(new AspectCommand(this));
        getCommand("ability1").setExecutor(new Ability1Command(this));
        getCommand("ability2").setExecutor(new Ability2Command(this));
        getCommand("terrainattack").setExecutor(new TerrainAttackCommand(this));
        getCommand("announce").setExecutor(new AnnounceCommand(this));
        getCommand("revive").setExecutor(new ReviveCommand(this));
    }

    public static AspectsSMP getInstance() {
        return instance;
    }

    public ConfigManager getConfigManager() {
        return configManager;
    }

    public PlayerDataManager getPlayerDataManager() {
        return playerDataManager;
    }

    public AspectManager getAspectManager() {
        return aspectManager;
    }

    public CooldownManager getCooldownManager() {
        return cooldownManager;
    }

    public LivesManager getLivesManager() {
        return livesManager;
    }

    public PhaseManager getPhaseManager() {
        return phaseManager;
    }

    public TrustManager getTrustManager() {
        return trustManager;
    }

    public GUIManager getGuiManager() {
        return guiManager;
    }

    public AbilityTracker getAbilityTracker() {
        return abilityTracker;
    }

    public RecipeManager getRecipeManager() {
        return recipeManager;
    }
}