Ninjaeslammiss

fix my D:\FSMP\PLUGINS\FSMPPlayer>gradle build Starting a Gradle Daemon, 1 incompatible and 1 stopped Daemons could not be reused, use --status for details

FAILURE: Build failed with an exception.

* Where:

Build file 'D:\FSMP\PLUGINS\FSMPPlayer\build.gradle' line: 8

* What went wrong:

A problem occurred evaluating root project 'FSMPPlayer'. > Could not set unknown property 'sourceCompatibility' for root project 'FSMPPlayer' of type org.gradle.api.Project.

* Try: > Run with --stacktrace option to get the stack trace. > Run with --info or --debug option to get more log output. > Run with --scan to get full insights from a Build Scan (powered by Develocity). > Get more help at https://help.gradle.org.

BUILD FAILED in 1m 18s

D:\FSMP\PLUGINS\FSMPPlayer> its not building fix it i just want it to work do anything even remove something do not remove a command

Ninjaeslammiss

fix my D:\FSMP\PLUGINS\FSMPPlayer>gradle build Starting a Gradle Daemon, 1 incompatible and 1 stopped Daemons could not be reused, use --status for details

FAILURE: Build failed with an exception.

* Where:

Build file 'D:\FSMP\PLUGINS\FSMPPlayer\build.gradle' line: 8

* What went wrong:

A problem occurred evaluating root project 'FSMPPlayer'. > Could not set unknown property 'sourceCompatibility' for root project 'FSMPPlayer' of type org.gradle.api.Project.

* Try: > Run with --stacktrace option to get the stack trace. > Run with --info or --debug option to get more log output. > Run with --scan to get full insights from a Build Scan (powered by Develocity). > Get more help at https://help.gradle.org.

BUILD FAILED in 1m 18s

D:\FSMP\PLUGINS\FSMPPlayer> its not building fix it i just want it to work do anything even remove something do not remove a command

Kodari AI
KodariJun 4 at 3:41 pm 7

sourceCompatibility and targetCompatibility must be inside a java { } block in modern Gradle โ€” moved them there. Run gradle build again and it should work.

Ninjaeslammiss
๐Ÿ“Ž 1 file 1,812 chars
๐Ÿ“„
pasted-code-1780587811730.txt
txt 38 lines
โ–ถ
Microsoft Windows [Version 10.0.26200.8457]
(c) Microsoft Corporation. All rights reserved.

D:\FSMP\PLUGINS\FSMPPlayer>gradle build
> Task :compileJava FAILED

[Incubating] Problems report is available at: file:///D:/FSMP/PLUGINS/FSMPPlayer/build/reports/problems/problems-report.html

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':compileJava' (registered by plugin class 'org.gradle.api.plugins.JavaBasePlugin').
> Could not resolve all files for configuration ':compileClasspath'.
   > Could not find net.byteflux:libby-bukkit:1.1.5.
     Searched in the following locations:
       - https://repo.maven.apache.org/maven2/net/byteflux/libby-bukkit/1.1.5/libby-bukkit-1.1.5.pom
       - https://repo.papermc.io/repository/maven-public/net/byteflux/libby-bukkit/1.1.5/libby-bukkit-1.1.5.pom
       - https://maven.citizensnpcs.co/repo/net/byteflux/libby-bukkit/1.1.5/libby-bukkit-1.1.5.pom
     Required by:
         root project 'FSMPPlayer' > net.citizensnpcs:citizens-main:2.0.35-SNAPSHOT:20241023.154538-110

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights from a Build Scan (powered by Develocity).
> Get more help at https://help.gradle.org.

Deprecated Gradle features were used in this build, making it incompatible with Gradle 10.

You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

For more on this, please refer to https://docs.gradle.org/9.5.1/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation.

BUILD FAILED in 21s
1 actionable task: 1 executed

D:\FSMP\PLUGINS\FSMPPlayer>
Kodari AI
KodariJun 4 at 3:43 pm 2

Citizens needs the libby-bukkit repo added. Fixing:

Added ByteFluxโ€™s repository which hosts libby-bukkit. Run gradle build again.

Ninjaeslammiss
๐Ÿ“Ž 1 file 4,918 chars
๐Ÿ“„
pasted-code-1780587964882.txt
txt 157 lines
โ–ถ
Microsoft Windows [Version 10.0.26200.8457]
(c) Microsoft Corporation. All rights reserved.

D:\FSMP\PLUGINS\FSMPPlayer>gradle build
> Task :compileJava FAILED

[Incubating] Problems report is available at: file:///D:/FSMP/PLUGINS/FSMPPlayer/build/reports/problems/problems-report.html

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':compileJava' (registered by plugin class 'org.gradle.api.plugins.JavaBasePlugin').
> Could not resolve all files for configuration ':compileClasspath'.
   > Could not find net.byteflux:libby-bukkit:1.1.5.
     Searched in the following locations:
       - https://repo.maven.apache.org/maven2/net/byteflux/libby-bukkit/1.1.5/libby-bukkit-1.1.5.pom
       - https://repo.papermc.io/repository/maven-public/net/byteflux/libby-bukkit/1.1.5/libby-bukkit-1.1.5.pom
       - https://maven.citizensnpcs.co/repo/net/byteflux/libby-bukkit/1.1.5/libby-bukkit-1.1.5.pom
       - https://repo.byteflux.net/repository/byteflux-public/net/byteflux/libby-bukkit/1.1.5/libby-bukkit-1.1.5.pom
     Required by:
         root project 'FSMPPlayer' > net.citizensnpcs:citizens-main:2.0.35-SNAPSHOT:20241023.154538-110

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights from a Build Scan (powered by Develocity).
> Get more help at https://help.gradle.org.

Deprecated Gradle features were used in this build, making it incompatible with Gradle 10.

You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

For more on this, please refer to https://docs.gradle.org/9.5.1/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation.

BUILD FAILED in 4s
1 actionable task: 1 executed

D:\FSMP\PLUGINS\FSMPPlayer>

This is a different problem now.

Your plugin is trying to use Citizens, and Citizens depends on a library called libby-bukkit, but Gradle cannot download it.

The key error is:

Could not find net.byteflux:libby-bukkit:1.1.5

This usually means one of three things:

The AI generated an outdated Citizens dependency.
The Citizens version is wrong.
The repository containing libby-bukkit is unavailable.
First step

Show me your entire build.gradle.

Run:

type build.gradle

and paste the full file.

Likely quick fix

If the AI generated something like:

implementation 'net.citizensnpcs:citizens-main:2.0.35-SNAPSHOT'

replace it with:

compileOnly 'net.citizensnpcs:citizens-main:2.0.35-SNAPSHOT'

because plugins normally depend on Citizens being installed on the server rather than bundling it into the plugin.

Also tell me

Did you ask the AI to:

Require the Citizens plugin?
Or create fake players without Citizens?

Because if you want standalone fake players, the generated code may be unnecessarily pulling in Citizens and can be rewritten to avoid that dependency entirely.

Paste build.gradle and I'll tell you the exact line to change.

D:\FSMP\PLUGINS\FSMPPlayer>type build.gradle
plugins {
    id 'java'
}

group = 'com.fsmpplayer'
version = '1.0.0'

java {
    sourceCompatibility = JavaVersion.VERSION_21
    targetCompatibility = JavaVersion.VERSION_21
}

repositories {
    mavenCentral()
    maven { url 'https://repo.papermc.io/repository/maven-public/' }
    maven { url 'https://maven.citizensnpcs.co/repo' }
    maven { url 'https://repo.byteflux.net/repository/byteflux-public/' }
}

dependencies {
    compileOnly 'io.papermc.paper:paper-api:1.21-R0.1-SNAPSHOT'
    compileOnly 'net.citizensnpcs:citizens-main:2.0.35-SNAPSHOT'
}
D:\FSMP\PLUGINS\FSMPPlayer>

Your build.gradle actually looks fine.

The problem is that the generated code depends on a specific snapshot of Citizens:

compileOnly 'net.citizensnpcs:citizens-main:2.0.35-SNAPSHOT'

and that snapshot is trying to pull:

net.byteflux:libby-bukkit:1.1.5

which is no longer available from the repositories Gradle is checking.

Check whether Citizens is really required

Search your source code:

findstr /S /I "citizens npc npcregistry citizensapi" src\main\java\*.java

If the plugin uses Citizens APIs, you'll see imports such as:

import net.citizensnpcs.api.CitizensAPI;
import net.citizensnpcs.api.npc.NPC;

Paste the output.

Fastest fix

If the AI only added Citizens because it thought fake players require it, and the code barely uses Citizens, we can remove Citizens entirely and compile without it.

Another thing to try

See if a newer snapshot resolves:

dependencies {
    compileOnly 'io.papermc.paper:paper-api:1.21-R0.1-SNAPSHOT'
    compileOnly 'net.citizensnpcs:citizens-main:2.0.37-SNAPSHOT'
}

Then run:

gradle --refresh-dependencies build
Best next step

Show me the output of:

findstr /S /I "citizens npc npcregistry citizensapi" src\main\java\*.java
Kodari AI
KodariJun 4 at 3:46 pm 4

The code uses Citizens APIs, so the dependency is needed โ€” the problem is the snapshot version pulling a broken transitive dep. Switch to citizens-api (which has no libby-bukkit dependency) instead of citizens-main, and bump to a newer version:

citizens-api is the API-only jar (no bundled deps like libby-bukkit), which is also the correct artifact to compile against. Run gradle build again.

Ninjaeslammiss

what is the plugin command and how to use it?

Kodari AI
KodariJun 4 at 4:08 pm 5

Hereโ€™s the full command reference for your plugin:


๐Ÿ“Œ /fsmpwand

Gives you the selection wand to define a region area.

  • Hold the item and left/right click two blocks to set the region corners.


๐Ÿ“Œ /fsmpplayer <args>

Spawns and manages fake players inside the selected region.

Command
Description
/fsmpplayer <armor> <invis|disinvis>
Spawn a fake player with the given armor, visible or invisible
/fsmpplayer list
List all active fake players with their ID, armor, visibility, and location
/fsmpplayer removeall
Remove all spawned fake players

Valid armor types: diamond, netherite, iron, leather, copper

Examples:

Plain Text
/fsmpplayer diamond invis       โ†’ spawns invisible diamond-armored fake player
/fsmpplayer leather disinvis    โ†’ spawns visible leather-armored fake player
/fsmpplayer list
/fsmpplayer removeall

โš ๏ธ You must select a region with /fsmpwand first before spawning.


๐Ÿ“Œ /fsmpmove <args>

Controls movement of spawned fake players.

Command
Description
/fsmpmove <mode> <d1> [r1 d2 r2 ...]
Start moving fake players with a pattern of distances and rests
/fsmpmove stop
Stop all fake player movement

Valid modes: walking, shifting, running

The number pairs work as: distance to walk โ†’ rest ticks โ†’ distance โ†’ rest โ†’ โ€ฆ

Examples:

Plain Text
/fsmpmove walking 10 20 5 10    โ†’ walk 10 blocks, rest 20 ticks, walk 5, rest 10
/fsmpmove running 30            โ†’ run 30 blocks
/fsmpmove stop                  โ†’ stop all movement
Ninjaeslammiss

i used the fsmpplayer and i didnt spawn only one in the area i want to fill the whole are with player

Kodari AI
KodariJun 4 at 4:11 pm 16

I need to:

  1. Add a getAllSurfaceLocations() method to Region

  2. Add a spawnFill method to FakePlayerManager that spawns one NPC per surface block

  3. Add fill subcommand to PlayerCommand

Now add spawnFill to FakePlayerManager and the fill subcommand to PlayerCommand:

Done. New command:

Plain Text
/fsmpplayer fill <armor> <invis|disinvis>

This scans every block in your selected region, finds all valid surface spots (solid floor + 2 air above), and spawns one fake player on each one โ€” filling the entire area. For example:

Plain Text
/fsmpplayer fill diamond disinvis   โ†’ fills region with visible diamond players
/fsmpplayer fill iron invis         โ†’ fills region with invisible iron players
Ninjaeslammiss

wait look so the selected area i want the whole area fill with player and do not put same player in the same z y x with custome names not player1 like mohamadkiller also add the left the server with yellow colour

Kodari AI
KodariJun 4 at 4:19 pm 10

Three changes needed:

  1. getAllSurfaceLocations โ†’ return every X,Z column (already does this โœ“) but also every Y layer inside the region if itโ€™s a 3D box the user selected โ€” actually the region already fills every surface. The real issue is the name (โ€œFakePlayer1โ€) and the yellow color tag.

  2. Replace generic names with realistic-looking ones, randomized + deduplicated

  3. Set NPC name in yellow (ยงe prefix) so it looks like a player who โ€œleft the serverโ€

Now add getAllLocations() to Region (fills every block position in the area, not just surface):

Done. Hereโ€™s what changed:

  • Every valid spot in your selected region gets a player (not just the top surface โ€” any solid block with air above it counts)

  • No duplicates โ€” each spawned player gets a unique position

  • Custom names โ€” randomly generated from name combos like DarkKiller, ShadowBlade, FrostReaper, CrimsonNinja, etc. (400 possible combos + number fallback if region is huge)

  • Yellow color โ€” all names appear in ยงe yellow, just like how Minecraft shows players who left the server tab

Run /fsmpplayer fill diamond disinvis in your selected region and itโ€™ll fill every spot.

Ninjaeslammiss

[16:33:09 WARN]: [FSMPPlayer] Plugin FSMPPlayer v1.0.0 generated an exception while executing task 75268 java.lang.IllegalStateException: NPCAddTraitEvent may only be triggered synchronously. at io.papermc.paper.plugin.manager.PaperEventManager.callEvent(PaperEventManager.java:42) ~[paper-1.21.11.jar:1.21.11-132-c5eb079] at io.papermc.paper.plugin.manager.PaperPluginManagerImpl.callEvent(PaperPluginManagerImpl.java:131) ~[paper-1.21.11.jar:1.21.11-132-c5eb079] at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:628) ~[paper-api-1.21.11-R0.1-SNAPSHOT.jar:?] at Citizens-2.0.41-b4126.jar//net.citizensnpcs.api.npc.AbstractNPC.addTrait(AbstractNPC.java:114) ~[?:?] at Citizens-2.0.41-b4126.jar//net.citizensnpcs.api.npc.AbstractNPC.getOrAddTrait(AbstractNPC.java:222) ~[?:?] at Citizens-2.0.41-b4126.jar//net.citizensnpcs.npc.CitizensNPC.setNameInternal(CitizensNPC.java:291) ~[?:?] at Citizens-2.0.41-b4126.jar//net.citizensnpcs.api.npc.AbstractNPC.<init>(AbstractNPC.java:79) ~[?:?] at Citizens-2.0.41-b4126.jar//net.citizensnpcs.npc.CitizensNPC.<init>(CitizensNPC.java:75) ~[?:?] at Citizens-2.0.41-b4126.jar//net.citizensnpcs.npc.CitizensNPCRegistry.createNPC(CitizensNPCRegistry.java:70) ~[?:?] at Citizens-2.0.41-b4126.jar//net.citizensnpcs.npc.CitizensNPCRegistry.createNPC(CitizensNPCRegistry.java:56) ~[?:?] at FSMPPlayerV2-1.0.0.jar//com.fsmpplayer.managers.FakePlayerManager.spawnFill(FakePlayerManager.java:52) ~[?:?] at FSMPPlayerV2-1.0.0.jar//com.fsmpplayer.commands.PlayerCommand.lambda$handleFill$0(PlayerCommand.java:71) ~[?:?] at org.bukkit.craftbukkit.scheduler.CraftTask.run(CraftTask.java:78) ~[paper-1.21.11.jar:1.21.11-132-c5eb079] at org.bukkit.craftbukkit.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:57) ~[paper-1.21.11.jar:1.21.11-132-c5eb079] at com.destroystokyo.paper.ServerSchedulerReportingWrapper.run(ServerSchedulerReportingWrapper.java:22) ~[paper-1.21.11.jar:?] at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1090) ~[?:?] at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:614) ~[?:?] at java.base/java.lang.Thread.run(Thread.java:1474) ~[?:?]

Kodari AI
KodariJun 4 at 4:34 pm 6

The fill is running on an async thread. Citizens NPC creation must be on the main thread. Let me find and fix that scheduler call.

The entire fill was running asynchronously โ€” Citizens requires NPC creation on the main thread. Swapped runTaskAsynchronously โ†’ runTask (sync). Rebuild and try /fsmpplayer fill again.

Ninjaeslammiss
๐Ÿ“Ž 1 file 2,211 chars
๐Ÿ“„
pasted-code-1780591028627.txt
txt 40 lines
โ–ถ
Microsoft Windows [Version 10.0.26200.8457]
(c) Microsoft Corporation. All rights reserved.

D:\FSMP\PLUGINS\FSMPPlayerV2>gradle build
> Task :compileJava FAILED

[Incubating] Problems report is available at: file:///D:/FSMP/PLUGINS/FSMPPlayerV2/build/reports/problems/problems-report.html

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':compileJava' (registered by plugin class 'org.gradle.api.plugins.JavaBasePlugin').
> Could not resolve all files for configuration ':compileClasspath'.
   > Could not find net.citizensnpcs:citizens-api:2.0.37-SNAPSHOT.
     Searched in the following locations:
       - https://repo.papermc.io/repository/maven-public/net/citizensnpcs/citizens-api/2.0.37-SNAPSHOT/maven-metadata.xml
       - https://repo.papermc.io/repository/maven-public/net/citizensnpcs/citizens-api/2.0.37-SNAPSHOT/citizens-api-2.0.37-SNAPSHOT.pom
       - https://maven.citizensnpcs.co/repo/net/citizensnpcs/citizens-api/2.0.37-SNAPSHOT/maven-metadata.xml
       - https://maven.citizensnpcs.co/repo/net/citizensnpcs/citizens-api/2.0.37-SNAPSHOT/citizens-api-2.0.37-SNAPSHOT.pom
       - https://repo.byteflux.net/repository/byteflux-public/net/citizensnpcs/citizens-api/2.0.37-SNAPSHOT/maven-metadata.xml
       - https://repo.byteflux.net/repository/byteflux-public/net/citizensnpcs/citizens-api/2.0.37-SNAPSHOT/citizens-api-2.0.37-SNAPSHOT.pom
     Required by:
         root project 'FSMPPlayerV2'

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights from a Build Scan (powered by Develocity).
> Get more help at https://help.gradle.org.

Deprecated Gradle features were used in this build, making it incompatible with Gradle 10.

You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

For more on this, please refer to https://docs.gradle.org/9.5.1/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation.

BUILD FAILED in 3s
1 actionable task: 1 executed

D:\FSMP\PLUGINS\FSMPPlayerV2>
Kodari AI
KodariJun 4 at 4:37 pm 4

Updated to 2.0.41-SNAPSHOT to match the Citizens jar you have on your server. Run gradle build again.

Ninjaeslammiss
๐Ÿ“Ž 1 file 2,211 chars
๐Ÿ“„
pasted-code-1780591082307.txt
txt 40 lines
โ–ถ
Microsoft Windows [Version 10.0.26200.8457]
(c) Microsoft Corporation. All rights reserved.

D:\FSMP\PLUGINS\FSMPPlayerV2>gradle build
> Task :compileJava FAILED

[Incubating] Problems report is available at: file:///D:/FSMP/PLUGINS/FSMPPlayerV2/build/reports/problems/problems-report.html

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':compileJava' (registered by plugin class 'org.gradle.api.plugins.JavaBasePlugin').
> Could not resolve all files for configuration ':compileClasspath'.
   > Could not find net.citizensnpcs:citizens-api:2.0.41-SNAPSHOT.
     Searched in the following locations:
       - https://repo.papermc.io/repository/maven-public/net/citizensnpcs/citizens-api/2.0.41-SNAPSHOT/maven-metadata.xml
       - https://repo.papermc.io/repository/maven-public/net/citizensnpcs/citizens-api/2.0.41-SNAPSHOT/citizens-api-2.0.41-SNAPSHOT.pom
       - https://maven.citizensnpcs.co/repo/net/citizensnpcs/citizens-api/2.0.41-SNAPSHOT/maven-metadata.xml
       - https://maven.citizensnpcs.co/repo/net/citizensnpcs/citizens-api/2.0.41-SNAPSHOT/citizens-api-2.0.41-SNAPSHOT.pom
       - https://repo.byteflux.net/repository/byteflux-public/net/citizensnpcs/citizens-api/2.0.41-SNAPSHOT/maven-metadata.xml
       - https://repo.byteflux.net/repository/byteflux-public/net/citizensnpcs/citizens-api/2.0.41-SNAPSHOT/citizens-api-2.0.41-SNAPSHOT.pom
     Required by:
         root project 'FSMPPlayerV2'

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights from a Build Scan (powered by Develocity).
> Get more help at https://help.gradle.org.

Deprecated Gradle features were used in this build, making it incompatible with Gradle 10.

You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

For more on this, please refer to https://docs.gradle.org/9.5.1/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation.

BUILD FAILED in 4s
1 actionable task: 1 executed

D:\FSMP\PLUGINS\FSMPPlayerV2>
Kodari AI
KodariJun 4 at 4:38 pm 14

The Citizens Maven repo isnโ€™t serving that SNAPSHOT. Let me check what version is actually available.

The Citizens API SNAPSHOT builds arenโ€™t on Maven โ€” you need to add their Jitpack repo and use the correct artifact name.

The correct repo for Citizens is https://repo.citizensnpcs.co/ (not maven.citizensnpcs.co/repo) and the artifact is net.citizensnpcs:citizens-api:2.0.41-b4126. Let me verify:

The artifact ID is citizensapi (not citizens-api). Fix:

Run gradle build again โ€” the repo and version are correct, just the artifact ID was wrong (citizensapi vs citizens-api).

Ninjaeslammiss

good now leasting the new problem is not all player have armour make sure all of them have armour + the name make it cour white and if get killed the kille massge white and then the (npc_name) left the server

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
Code
14 1,259
src/main/java/com/fsmpplayer/FSMPPlayerPlugin.java
package com.fsmpplayer;

import com.fsmpplayer.commands.MoveCommand;
import com.fsmpplayer.commands.PlayerCommand;
import com.fsmpplayer.commands.WandCommand;
import com.fsmpplayer.listeners.WandListener;
import com.fsmpplayer.managers.FakePlayerManager;
import com.fsmpplayer.managers.MovementManager;
import com.fsmpplayer.managers.RegionManager;
import com.fsmpplayer.managers.WandManager;
import org.bukkit.plugin.java.JavaPlugin;

public class FSMPPlayerPlugin extends JavaPlugin {

    private WandManager wandManager;
    private RegionManager regionManager;
    private FakePlayerManager fakePlayerManager;
    private MovementManager movementManager;

    @Override
    public void onEnable() {
        saveDefaultConfig();

        this.wandManager = new WandManager(this);
        this.regionManager = new RegionManager(this);
        this.movementManager = new MovementManager(this);
        this.fakePlayerManager = new FakePlayerManager(this);

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

        getCommand("fsmpwand").setExecutor(new WandCommand(this));
        getCommand("fsmpplayer").setExecutor(new PlayerCommand(this));
        getCommand("fsmpmove").setExecutor(new MoveCommand(this));

        getLogger().info("FSMPPlayer enabled.");
    }

    @Override
    public void onDisable() {
        if (movementManager != null) movementManager.stopAll();
        getLogger().info("FSMPPlayer disabled.");
    }

    public WandManager getWandManager() { return wandManager; }
    public RegionManager getRegionManager() { return regionManager; }
    public FakePlayerManager getFakePlayerManager() { return fakePlayerManager; }
    public MovementManager getMovementManager() { return movementManager; }
}