9just_chill6
๐Ÿ“Ž 1 file 1,089 chars
๐Ÿ“„
pasted-code-1769435013676.txt
txt 35 lines
โ–ถ

Create A Minecraft 1.21+ Plugin For paper or Spigot .Make all Messages Colorful when send on chat !!

DETAILS:-
Author: Just_ChiLL
Version: 1.0
Platform: Paper/Spigot
Minecraft: 1.21+

FEATURES:-
Set & Teleport โ€” Easy-to-use /sethome and /home commands
Delay & Cooldown โ€” Balanced gameplay experience
Particles & Sounds โ€” Fancy effects when teleporting
Customizable Config โ€” Edit messages, timings, and limits
Multi-World Support โ€” Works across all worlds
Data Stored in Config โ€” Simple and transparent
Teleport Cancel : While teleporting Player Moves Then cancel Teleport

COMMANDS:-

/sethome {homename} : To Set current location as home.
/home {homename} : To Teleport to Chosen home.
/delhome {homename} : To Delete A Chosen Home.
/helphome : Show All COMMANDS And Details Related To This Plugin.



MESSAGES:-
1.Set Home : Home set successfully!
2.Teleport Start : Teleporting in 3 seconds...
3.Teleport Success : Welcome home!
4.Teportation Failed (Moved) : Teleport cancelled because you moved!
5.Cooldown : Please wait before teleporting again.

Kodari AI
KodariJan 26 at 1:44 pm 603 (v2)
HomeTeleportPlugin
A home teleportation plugin for Minecraft 1.21+ that enables players to set, teleport to, and delete custom homes with features like teleportation delays, cooldowns, movement cancellation, particles, sounds, multi-world support, and colorful MiniMessage-formatted chat messages. All home data is stored in a simple config file for transparency and ease of management.
  • Create build.gradle with Paper API dependency and XSeries

  • Create plugin.yml with commands and permissions

  • Create config.yml with default settings for messages, timings, and limits

  • Create main plugin class HomeTeleportPlugin

  • Create ColorUtil for MiniMessage colorization

  • Create HomeManager for config-based home data management

  • Create TeleportManager for handling teleport logic, delays, and cooldowns

  • Create command classes: SetHomeCommand, HomeCommand, DelHomeCommand, HelpHomeCommand

  • Create MovementListener to cancel teleports on player movement

9just_chill6

The compilation failed with this error:

code
Validation failed for compilation: Compilation failed with 3 error(s):

ERROR in src/main/java/com/justchill/hometeleport/TeleportManager.java at line 4: cannot find symbol
import com.cryptomorin.xseries.XParticle;
                              ^
  symbol: class XParticle
  location: package com.cryptomorin.xseries

ERROR in   src/main/java/com/justchill/hometeleport/TeleportManager.java at line 4: cannot find symbol
  import com.cryptomorin.xseries.XParticle;
                                ^
  symbol: class XParticle
  location: package com.cryptomorin.xseries

ERROR in src/main/java/com/justchill/hometeleport/TeleportManager.java at line 4: cannot find symbol
import com.cryptomorin.xseries.XParticle;
                              ^
  symbol: class XParticle
  location: package com.cryptomorin.xseries


=== COMPILATION ERROR ANALYSIS ===

MISSING CLASSES:
  - XParticle
ACTION: Create these classes or check imports

FILES TO INVESTIGATE:
  - src/main/java/com/justchill/hometeleport/TeleportManager.java
  -   src/main/java/com/justchill/hometeleport/TeleportManager.java
 exceeds maximum 

Please fix this error by creating a new artifact with the corrected code.

Kodari AI
KodariJan 26 at 1:44 pm 403 (v2)
Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
Code
12 469
src/main/java/com/justchill/hometeleport/HomeTeleportPlugin.java
package com.justchill.hometeleport;

import com.justchill.hometeleport.commands.DelHomeCommand;
import com.justchill.hometeleport.commands.HelpHomeCommand;
import com.justchill.hometeleport.commands.HomeCommand;
import com.justchill.hometeleport.commands.SetHomeCommand;
import com.justchill.hometeleport.listeners.MovementListener;
import org.bukkit.plugin.java.JavaPlugin;

public class HomeTeleportPlugin extends JavaPlugin {
    private static HomeTeleportPlugin instance;
    private HomeManager homeManager;
    private TeleportManager teleportManager;

    @Override
    public void onEnable() {
        instance = this;
        saveDefaultConfig();
        homeManager = new HomeManager(this);
        teleportManager = new TeleportManager(this, homeManager);

        getCommand("sethome").setExecutor(new SetHomeCommand(homeManager, teleportManager));
        getCommand("home").setExecutor(new HomeCommand(homeManager, teleportManager));
        getCommand("delhome").setExecutor(new DelHomeCommand(homeManager));
        getCommand("helphome").setExecutor(new HelpHomeCommand());

        getServer().getPluginManager().registerEvents(new MovementListener(teleportManager), this);

        getLogger().info("HomeTeleportPlugin enabled!");
    }

    @Override
    public void onDisable() {
        teleportManager.cancelAllTeleports();
        getLogger().info("HomeTeleportPlugin disabled!");
    }

    public static HomeTeleportPlugin getInstance() {
        return instance;
    }

    public HomeManager getHomeManager() {
        return homeManager;
    }

    public TeleportManager getTeleportManager() {
        return teleportManager;
    }
}