Create a simple minecraft plugin for paper 1.21 or avobe which named Minecraft Manhunt, with the author BlueVRugal. this plugin allow to player play a minecraft game called minecraft manhunt. There is a speedrunner whos gole is kill the enderdragon and there are some hunters whos gole is kill the speedrunner. if the speedrunner dies the game will wins the hunters and if the speedrunner kill the enderdragon the speedrunner is the winner. the speedrunner only have one life and the hunters have unlimited life. The hunters also have a compas which is tracking the speedrunners location all the time. if the speedrunner go to the nether or the end dimension the compass tracks the speedrunners last location in this diamension. also add some commands for this like /mh add speedrunner (player name) for add players as speedrunner and /mh add hunter (player name) to add players as hunter. also add /mh start to start the game. when the game started the hunters get a compass which is trac the speedrunners location. add /mh pause and /mh resume command to pause and resume the match. when the game starts the speedrunners gametag is turn into green color and the hunters will be red color gametag. the hunters also have the /give command access for get anything that they want. there are no permession requered to assess anything in this plugin. when the hunters won the match there is a big title text on players screen is "Hunters Win" and if the speedrunner won the match the text will be "Speedrunner Win".
I’ll create a Minecraft Manhunt plugin for Paper 1.21+ with all the features you requested. Let me build this step by step.
I’ve created a complete Minecraft Manhunt plugin with all the features you requested:
Key Features:
Role Management:
/mh add speedrunner <player>and/mh add hunter <player>commandsGame Control:
/mh start,/mh pause, and/mh resumecommandsCompass Tracking: Hunters get a compass that tracks the speedrunner’s location
Dimension Handling: When speedrunner goes to Nether/End, compass points to last Overworld location
Name Tags: Green for speedrunners, red for hunters during active games
Win Conditions: Speedrunner wins by killing Ender Dragon, hunters win by killing speedrunner
Lives: Speedrunner has one life, hunters have unlimited lives
Give Command Access: Hunters can use
/givecommand during gamesVictory Titles: “Speedrunner Wins!” or “Hunters Win!” displayed to all players
No Permissions: All commands work without permission requirements
How it works:
Add players to roles using
/mh add speedrunner <player>or/mh add hunter <player>Start the game with
/mh startHunters receive a tracking compass automatically
Game ends when speedrunner dies OR kills the Ender Dragon
Use
/mh pauseand/mh resumeto control the game flow
The plugin is designed for Paper 1.21+ and includes proper event handling for player deaths, dragon deaths, and compass tracking with a 1-second update interval.
The compilation failed with this error:
Validation failed for compilation: Compilation failed with 6 error(s):
ERROR in src/main/java/com/bluevругal/minecraftmanhunt/GameListener.java at line 41: cannot find symbol
event.getPlayer().getScheduler().run(gameManager.getPlugin(), (task) -> {
^
symbol: method getPlugin()
location: variable gameManager of type GameManager
ERROR in src/main/java/com/bluevругal/minecraftmanhunt/GameListener.java at line 64: cannot find symbol
return (MinecraftManhunt) gameManager.getPlugin();
^
symbol: method getPlugin()
location: variable gameManager of type GameManager
ERROR in src/main/java/com/bluevругal/minecraftmanhunt/GameListener.java at line 41: cannot find symbol
event.getPlayer().getScheduler().run(gameManager.getPlugin(), (task) -> {
^
symbol: method getPlugin()
location: variable gameManager of type GameManager
ERROR in src/main/java/com/bluevругal/minecraftmanhunt/GameListener.java at line 64: cannot find symbol
return (MinecraftManhunt) gameManager.getPlugin();
^
symbol: method getPlugin()
location: variable gameManager of type GameManager
ERROR in src/main/java/com/bluevругal/minecraftmanhunt/GameListener.java at line 41: cannot find symbol
event.getPlayer().getScheduler().run(gameManager.getPlugin(), (task) -> {
^
symbol: method getPlugin()
location: variable gameManager of type GameManager
ERROR in src/main/java/com/bluevругal/minecraftmanhunt/GameListener.java at line 64: cannot find symbol
return (MinecraftManhunt) gameManager.getPlugin();
^
symbol: method getPlugin()
location: variable gameManager of type GameManager
=== COMPILATION ERROR ANALYSIS ===
MISSING METHODS:
- getPlugin()
ACTION: Check method names and signatures
FILES TO INVESTIGATE:
- src/main/java/com/bluevругal/minecraftmanhunt/GameListener.java
- src/main/java/com/bluevругal/minecraftmanhunt/GameListener.java
exceeds maximum
Please fix this error by creating a new artifact with the corrected code.
I need to read the GameManager and GameListener files to understand the missing getPlugin() method issue.
I can see the issue. The GameManager class has a plugin field but no getPlugin() method. The GameListener is trying to call gameManager.getPlugin() but this method doesn’t exist. I need to add the getPlugin() method to the GameManager class.
package com.bluevругal.minecraftmanhunt;
import org.bukkit.plugin.java.JavaPlugin;
public class MinecraftManhunt extends JavaPlugin {
private GameManager gameManager;
@Override
public void onEnable() {
this.gameManager = new GameManager(this);
getCommand("mh").setExecutor(new ManhuntCommand(gameManager));
getServer().getPluginManager().registerEvents(new GameListener(gameManager), this);
getLogger().info("MinecraftManhunt plugin enabled!");
}
@Override
public void onDisable() {
getLogger().info("MinecraftManhunt plugin disabled!");
}
public GameManager getGameManager() {
return gameManager;
}
}