0

make this confing.yml default

📎 1 file 991 chars
📄
config.yml
yml 48 lines
▶
# PmcTpa Configuration
# Author: LUCIFER
# Description: PMC NETWORK ON TOP

# Database settings
database:
  type: SQLITE # SQLITE or MYSQL
  mysql:
    host: localhost
    port: 3306
    database: pmctpa
    username: root
    password: password
    pool-size: 10

# Teleport countdown settings
teleport-countdown:
  # Enable chat countdown messages (separate message every second)
  chat-message: true
  # Enable actionbar countdown
  actionbar: true
  # Play countdown sound every second
  countdown-sound: true
  # Cancel teleport on movement
  cancel-on-move: true

# Teleport delays (in seconds)
teleport-delays:
  spawn: 5
  warp: 5
  tpa: 5
  tpahere: 5

# TPA request settings
tpa-requests:
  # Request expiration time (in seconds)
  expire-time: 120
  # Auto-open INVENTORY GUI when receiving request
  auto-open-INVENTORY GUI: true
  # Cooldown between requests (in seconds)
  request-cooldown: 5

# PlaceholderAPI support
placeholderapi:
  enabled: true

# Prefix
prefix: "PmcTPA"
Kodari AI
KodariMay 7 at 12:18 pm 3,437 (v2)

I’ll read the current config.yml and then update it with your new default configuration.

Updated config.yml with your new defaults:

  • TPA delays changed from 3 to 5 seconds

  • Request expire time increased from 60 to 120 seconds

  • Auto-open GUI changed to true

  • Prefix simplified to “PmcTPA”

0

make this INVENTORY GUI.yml to default

📎 1 file 2,961 chars
📄
INVENTORY GUI.yml
yml 151 lines
▶
# INVENTORY GUI Configuration
# All GUIs support legacy color codes (&a, &c, &6, &l, etc.)

# Warps INVENTORY GUI
warps-INVENTORY GUI:
  title: "&b&lServer Warps"
  size: 27
  
  # Warp item template
  warp-item:
    material: "ENDER_PEARL"
    name: "&e&l%warp_name%"
    lore:
      - ""
      - "&7Player: &f%player_name%"
      - "&7World: &f%player_world%"
      - "&7Flying: &f%player_flying%"
      - ""
      - "&aClick to teleport!"
  
  # Fill empty slots
  fill-item:
    enabled: true
    material: "GRAY_STAINED_GLASS_PANE"
    name: " "

# TPA Confirm INVENTORY GUI
tpa-confirm-INVENTORY GUI:
  title: "&c&lConfirm TPA Request"
  size: 27
  
  # Requester head (center)
  requester-head:
    slot: 13
    name: "&e&l%player_name%"
    lore:
      - ""
      - "&7wants to teleport to you"
      - ""
      - "&aAccept or Decline?"
  
  # Request info item
  info-item:
    slot: 4
    material: "PAPER"
    name: "&b&lRequest Info"
    lore:
      - ""
      - "&7From: &f%player_name%"
      - "&7Type: &fTPA"
      - "&7Time: &f%time%"
      - ""
  
  # Accept button
  accept-button:
    slot: 11
    material: "GREEN_STAINED_GLASS_PANE"
    name: "&a&l✓ ACCEPT"
    lore:
      - ""
      - "&7Click to accept the request"
      - ""
    sound:
      enabled: true
      name: "ENTITY_PLAYER_LEVELUP"
      volume: 1.0
      pitch: 1.0
  
  # Decline button
  decline-button:
    slot: 15
    material: "RED_STAINED_GLASS_PANE"
    name: "&c&l✗ DECLINE"
    lore:
      - ""
      - "&7Click to decline the request"
      - ""
    sound:
      enabled: true
      name: "ENTITY_VILLAGER_NO"
      volume: 1.0
      pitch: 1.0
  
  # Fill item
  fill-item:
    enabled: true
    material: "GRAY_STAINED_GLASS_PANE"
    name: " "

# TPAHERE Confirm INVENTORY GUI
tpahere-confirm-INVENTORY GUI:
  title: "&e&lConfirm TPAHERE Request"
  size: 27
  
  # Requester head (center)
  requester-head:
    slot: 13
    name: "&e&l%player_name%"
    lore:
      - ""
      - "&7wants you to teleport to them"
      - ""
      - "&aAccept or Decline?"
  
  # Request info item
  info-item:
    slot: 4
    material: "PAPER"
    name: "&b&lRequest Info"
    lore:
      - ""
      - "&7From: &f%player_name%"
      - "&7Type: &fTPAHERE"
      - "&7Time: &f%time%"
      - ""
  
  # Accept button
  accept-button:
    slot: 11
    material: "GREEN_STAINED_GLASS_PANE"
    name: "&a&l✓ ACCEPT"
    lore:
      - ""
      - "&7Click to accept the request"
      - ""
    sound:
      enabled: true
      name: "ENTITY_PLAYER_LEVELUP"
      volume: 1.0
      pitch: 1.0
  
  # Decline button
  decline-button:
    slot: 15
    material: "RED_STAINED_GLASS_PANE"
    name: "&c&l✗ DECLINE"
    lore:
      - ""
      - "&7Click to decline the request"
      - ""
    sound:
      enabled: true
      name: "ENTITY_VILLAGER_NO"
      volume: 1.0
      pitch: 1.0
  
  # Fill item
  fill-item:
    enabled: true
    material: "GRAY_STAINED_GLASS_PANE"
    name: " "
Kodari AI
KodariMay 7 at 12:19 pm 7,466 (v2)

I’ll read the existing gui.yml file and then update it with your new default configuration.

The gui.yml file already matches your desired default configuration exactly. The file you provided labeled as “INVENTORY GUI.yml” appears to be the same content with “INVENTORY GUI” text added throughout, but the actual file is already correctly named gui.yml and contains the exact same structure and values you want.

No changes needed - the default configuration is already in place.

0

make this messages.yml to default

📎 1 file 5,483 chars
📄
messages.yml
yml 229 lines
▶
# Messages Configuration
# Supports legacy & color codes and RGB hex colors (&#RRGGBB format)
# Placeholders: %player_name%, %player_world%, %player_flying%, %time%, %warp_name%, %target_player%

prefix: ""

# Spawn messages
spawn:
  teleport-start:
    message: "&7✈ Teleporting to spawn in &b%time% &7seconds"
    actionbar: "&7✈ Teleporting to Spawn in &b%time%s"
    sound:
      enabled: true
      name: "BLOCK_NOTE_BLOCK_PLING"
      volume: 1.0
      pitch: 1.0
  
  teleport-success:
    message: "&7Successfully Teleported"
    sound:
      enabled: true
      name: "ENTITY_ENDERMAN_TELEPORT"
      volume: 1.0
      pitch: 1.5
  
  movement-cancel:
    message: "&7Teleport Cancelled! Don't move during &bcountdown"
    sound:
      enabled: true
      name: "ENTITY_VILLAGER_NO"
      volume: 1.0
      pitch: 1.0
  
  not-set:
    message: "&c⚠ Spawn has not been set yet!"
  
  set-success:
    message: "�ff87✔ Spawn location set successfully!"

# Warp messages
warp:
  teleport-start:
    message: "&7✈ Teleporting in &b%time%s &7seconds"
    actionbar: "&7✈ Teleporting in &b%time%s"
    sound:
      enabled: true
      name: "BLOCK_NOTE_BLOCK_PLING"
      volume: 1.0
      pitch: 1.0
  
  teleport-success:
    message: "&7Successfully Teleported"
    sound:
      enabled: true
      name: "ENTITY_ENDERMAN_TELEPORT"
      volume: 1.0
      pitch: 1.5
  
  movement-cancel:
    message: "&7Teleport Cancelled! Don't move during &bcountdown"
    sound:
      enabled: true
      name: "ENTITY_VILLAGER_NO"
      volume: 1.0
      pitch: 1.0
  
  not-exist:
    message: "&c⚠ Warp does not exist"
  
  created:
    message: "�ff87✔ Warp &#FFD700&l%warp_name% �ff87created!"
  
  deleted:
    message: "�ff87✔ Warp &#FFD700&l%warp_name% �ff87deleted!"
  
  already-exists:
    message: "&c⚠ Warp &#FFD700%warp_name% &calready exists!"
  
  no-warps:
    message: "&c⚠ No warps available!"

# TPA messages
tpa:
  request-sent:
    message: "&7✈ Teleport request sent to &b%target_player%"
    sound:
      enabled: true
      name: "ENTITY_EXPERIENCE_ORB_PICKUP"
      volume: 1.0
      pitch: 1.0
  
  request-received:
    message: "&b%player_name% &7Sent You a Teleport Request"
    clickable: "&#FFD700&l[ ✦ CLICK TO OPEN INVENTORY INVENTORY GUI ✦ ]"
    sound:
      enabled: true
      name: "BLOCK_NOTE_BLOCK_BELL"
      volume: 1.0
      pitch: 1.5
  
  request-accepted:
    message: "&7✈ Teleport request &baccepted"
    sound:
      enabled: true
      name: "ENTITY_PLAYER_LEVELUP"
      volume: 1.0
      pitch: 1.0
  
  request-denied:
    message: "&7✈ Teleport request &crejected"
    sound:
      enabled: true
      name: "ENTITY_VILLAGER_NO"
      volume: 1.0
      pitch: 1.0
  
  request-expired:
    message: "&7✈ Teleport request &cexpired"
    sound:
      enabled: true
      name: "BLOCK_ANVIL_LAND"
      volume: 0.5
      pitch: 1.0
  
  teleport-start:
    message: "&7✈ Teleporting in &b%time% &7seconds"
    actionbar: "&7✈ Teleporting in &b%time%s"
    sound:
      enabled: true
      name: "BLOCK_NOTE_BLOCK_PLING"
      volume: 1.0
      pitch: 1.0
  
  teleport-success:
    message: "&7Successfully Teleported"
    sound:
      enabled: true
      name: "ENTITY_ENDERMAN_TELEPORT"
      volume: 1.0
      pitch: 1.5
  
  movement-cancel:
    message: "&7Teleport Cancelled! Don't move during &bcountdown"
    sound:
      enabled: true
      name: "ENTITY_VILLAGER_NO"
      volume: 1.0
      pitch: 1.0
  
  no-request:
    message: "&7✈ You don't have any pending teleport requests"
  
  player-not-found:
    message: "&7⚠ &b%target_player% &7is not online"
  
  self-request:
    message: "&7⚠ You cannot send a teleport request to &byourself"
  
  already-pending:
    message: "&7⚠ You already sent a teleport request to this player"
  
  cooldown:
    message: "&7⚠ Wait &b%time% &7seconds before sending another request"
  
  toggle-enabled:
    message: "&7✈ TPA requests &benabled"
  
  toggle-disabled:
    message: "&7✈ TPA requests &bdisabled"
  
  auto-enabled:
    message: "&7✈ Auto-accept TPA &benabled"
  
  auto-disabled:
    message: "&7✈ Auto-accept TPA &bdisabled"
  
  cancelled:
    message: "&7⚠ Teleport request &bcancelled"
  
  requests-disabled:
    message: "&7⚠ This player has &bdisabled &7TPA requests"

# TPAHERE messages
tpahere:
  request-sent:
    message: "&7✈ Teleport-Here request sent to &b%target_player%"
    sound:
      enabled: true
      name: "ENTITY_EXPERIENCE_ORB_PICKUP"
      volume: 1.0
      pitch: 1.0
  
  request-received:
    message: "&b%player_name% &7Sent You a Teleport Here Request"
    clickable: "&#FFD700&l[ ✦ CLICK TO OPEN INVENTORY INVENTORY GUI ✦ ]"
    sound:
      enabled: true
      name: "BLOCK_NOTE_BLOCK_BELL"
      volume: 1.0
      pitch: 1.5
  
  toggle-enabled:
    message: "&7✈ TPAHERE requests &benabled"
  
  toggle-disabled:
    message: "&7✈ TPAHERE requests &bdisabled"
  
  auto-enabled:
    message: "&7✈ Auto-accept TPAHERE &benabled"
  
  auto-disabled:
    message: "&7✈ Auto-accept TPAHERE &bdisabled"
  
  requests-disabled:
    message: "&7⚠ This player has &bdisabled &7TPAHERE requests"

# General messages
general:
  no-permission:
    message: "&c⚠ You don't have permission to use this command!"
  
  reload-success:
    message: "�ff87✔ Configuration reloaded successfully!"
  
  player-only:
    message: "&c⚠ This command can only be used by players!"
  
  invalid-usage:
    message: "&c⚠ Usage: &b%usage%"
Kodari AI
KodariMay 7 at 12:21 pm 11,610 (v2)

I’ll read the current messages.yml file and update it with your new default configuration.

Updated messages.yml with your new defaults:

  • Changed spawn teleport-start message format (“seconds” word added)

  • Changed warp teleport-start message format (“seconds” added)

  • Capitalized TPA request-received messages (“Sent You” instead of “sent you”)

  • Changed clickable text to “INVENTORY INVENTORY GUI” (double “INVENTORY”)

  • Updated TPA teleport-start to show “seconds” word

  • Updated cooldown message to show “seconds” word instead of “s”

  • Updated TPAHERE request-received with capitalization and double “INVENTORY”

0

make this tpa INVENTORY GUI default

📎 1 file 729 chars
📄
tpa-INVENTORY GUI.yml
yml 44 lines
▶
title: "ᴛᴘᴀ ʀᴇǫᴜᴇsᴛ"
size: 27

requester-head:
  slot: 13
  name: "&6%player_name%"
  lore:
    - ""
    - "&7wants to teleport to you"
    - ""
    - "&aDecline or Accept"

accept-button:
  slot: 15
  material: "LIME_GLASS_PANE"
  name: "&a&l✓ ACCEPT"
  lore:
    - ""
    - "&7Click to accept the request"
    - ""
  sound:
    enabled: true
    name: "ENTITY_PLAYER_LEVELUP"
    volume: 1.0
    pitch: 1.0

decline-button:
  slot: 11
  material: "RED_STAINED_GLASS_PANE"
  name: "&c&l✗ DECLINE"
  lore:
    - ""
    - "&7Click to decline the request"
    - ""
  sound:
    enabled: true
    name: "ENTITY_VILLAGER_NO"
    volume: 1.0
    pitch: 1.0

fill-item:
  enabled: true
  material: "GRAY_STAINED_GLASS_PANE"
  name: " "
Kodari AI
KodariMay 7 at 12:22 pm 9,522 (v2)

I’ll read the current tpa-gui.yml file and update it with your new default configuration.

Updated tpa-gui.yml with your new defaults:

  • Changed title to small caps Unicode format: “ᴛᴘᴀ ʀᴇǫᴜᴇsᴛ”

  • Updated requester head name from &e&l to &6 (gold without bold)

  • Changed lore from “Accept or Decline?” to “Decline or Accept”

  • Swapped button positions: accept moved to slot 15, decline moved to slot 11

  • Changed accept button material from GREEN_STAINED_GLASS_PANE to LIME_GLASS_PANE

0

make this tpa here INVENTORY GUI default

📎 1 file 739 chars
📄
tpahere-INVENTORY GUI.yml
yml 44 lines
▶
title: "ᴛᴘᴀ-ʜᴇʀᴇ ʀᴇǫᴜᴇsᴛ"
size: 27

requester-head:
  slot: 13
  name: "&6%player_name%"
  lore:
    - ""
    - "&7wants you to teleport to them"
    - ""
    - "&aDecline or Accept"

accept-button:
  slot: 15
  material: "LIME_GLASS_PANE"
  name: "&a&l✓ ACCEPT"
  lore:
    - ""
    - "&7Click to accept the request"
    - ""
  sound:
    enabled: true
    name: "ENTITY_PLAYER_LEVELUP"
    volume: 1.0
    pitch: 1.0

decline-button:
  slot: 11
  material: "RED_STAINED_GLASS_PANE"
  name: "&c&l✗ DECLINE"
  lore:
    - ""
    - "&7Click to decline the request"
    - ""
  sound:
    enabled: true
    name: "ENTITY_VILLAGER_NO"
    volume: 1.0
    pitch: 1.0

fill-item:
  enabled: true
  material: "GRAY_STAINED_GLASS_PANE"
  name: " "
Kodari AI
KodariMay 7 at 12:24 pm 10,929 (v2)

I’ll read the current tpahere-gui.yml file and update it with your new default configuration.

Updated tpahere-gui.yml with your new defaults:

  • Changed title to small caps Unicode format: “ᴛᴘᴀ-ʜᴇʀᴇ ʀᴇǫᴜᴇsᴛ”

  • Updated requester head name from &e&l to &6 (gold without bold)

  • Changed lore from “Accept or Decline?” to “Decline or Accept”

  • Swapped button positions: accept moved to slot 15, decline moved to slot 11

  • Changed accept button material from GREEN_STAINED_GLASS_PANE to LIME_GLASS_PANE

0

make this warps file default

📎 1 file 2,085 chars
📄
warps-INVENTORY GUI.yml
yml 80 lines
▶
# Warps INVENTORY GUI Configuration
# Configure the warps inventory interface here
# Supports legacy color codes (&a, &c, &6, &l, etc.) and hex colors (&#RRGGBB)

# INVENTORY GUI Settings
title: "ᴡᴀʀᴘs"
size: 27

# Fill empty slots with this item
fill-item:
  enabled: true
  material: "GRAY_STAINED_GLASS_PANE"
  name: " "

# Individual Warp Configuration
# Add your warps here with custom materials, names, lores, and slots
# Available placeholders:
#   %player_name% - Player who opened the INVENTORY GUI
#   %player_world% - Player's current world
#   %player_flying% - Whether player is flying (Yes/No)
#   %warp_name% - Name of the warp
#   %warp_world% - World where the warp is located
#   %warp_x% - X coordinate of the warp
#   %warp_y% - Y coordinate of the warp
#   %warp_z% - Z coordinate of the warp
#   %time% - Current time (HH:mm:ss)

warps:
  # Example warps (configure these based on your actual warps)
  
  pvp:
    slot: 11
    material: "NETHERITE_SWORD"
    name: "&#FF6B6B&l⚔ PVP Arena"
    lore:
      - ""
      - "&7Enter the PVP battleground"
      - ""
      - ""
      - "&c&l⚠ &cWarning: PVP is enabled!"
      - ""
      - "�ff87&l➤ &aClick to teleport!"
  
  cpvp:
    slot: 15
    material: "END_CRYSTAL"
    name: "&d&lCRYSTAL ARENA"
    lore:
      - ""
      - "&7Enter the CPVP battleground"
      - ""
      - ""
      - "&c&l⚠ &cWarning: PVP is enabled"
      - ""
      - "�ff87&l➤ &aClick to teleport!"
  
  example:
    slot: 16
    material: "IRON_PICKAXE"
    name: "&#A855F7&l⛏ Mining World"
    lore:
      - ""
      - "&7Gather resources in the mines"
      - "&7Location: &f%warp_world% (%warp_x%, %warp_y%, %warp_z%)"
      - ""
      - "&e&l⚡ &eRich ore deposits!"
      - ""
      - "�ff87&l➤ &aClick to teleport!"
  
  # Template for adding new warps:
  # warpname:
  #   slot: 0
  #   material: "ENDER_PEARL"
  #   name: "&#FFD700&l%warp_name%"
  #   lore:
  #     - ""
  #     - "&7World: &f%warp_world%"
  #     - "&7Coordinates: &f%warp_x%, %warp_y%, %warp_z%"
  #     - ""
  #     - "�ff87&l➤ &aClick to teleport!"
Kodari AI
KodariMay 7 at 12:25 pm 11,041 (v2)

I’ll read the current warps-gui.yml file and update it with your new default configuration.

Updated warps-gui.yml with your new defaults:

  • Changed title to small caps Unicode format: “ᴡᴀʀᴘs”

  • Reduced inventory size from 54 to 27 slots

  • Updated comment from “GUI” to “INVENTORY GUI”

  • Replaced example warps: removed spawn and shop, kept pvp (moved to slot 11, material changed to NETHERITE_SWORD), added cpvp (slot 15, END_CRYSTAL), renamed mine to example (slot 16)

  • Removed location coordinates from pvp and cpvp lore, kept it only in example warp

0

click on MSG to exucute /tpaccept command. not working FIX

Kodari AI
KodariMay 7 at 12:30 pm 19,510 (v2)

I’ll read the relevant files to understand how TPA messages and click functionality work.

Now I can see the issue. The messages.yml has a clickable field for TPA request received messages, but the code doesn’t implement clickable text functionality. I need to:

  1. Update ColorUtil to add a method for creating clickable text with commands

  2. Update both TPACommand and TPAHereCommand to send clickable messages using TextComponent

Now I’ll update the ColorUtil class to add a method for creating clickable messages, and then update both TPA command files to use it:

Now I’ll update both TPACommand and TPAHereCommand to use the clickable message functionality:

Perfect! I’ve fixed the clickable message functionality:

Changes made:

  1. ColorUtil.java - Added sendClickableMessage() method that:

    • Creates a TextComponent with the main message

    • Creates a separate clickable TextComponent with a RUN_COMMAND click event

    • Sends both messages to the player using the Spigot API

  2. TPACommand.java - Updated to:

    • Retrieve the clickable text from messages.yml

    • Use the new sendClickableMessage() method instead of plain text

    • Add a blank line after for spacing

  3. TPAHereCommand.java - Same updates as TPACommand

Now when players receive TPA or TPAHERE requests, they’ll see the clickable “[ ✦ CLICK TO OPEN INVENTORY GUI ✦ ]” message that executes /tpaccept when clicked, which opens the confirmation GUI.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
manifest.kod
Code
47 3,267
src/main/java/com/lucifer/pmctpa/PmcTpa.java
package com.lucifer.pmctpa;

import com.lucifer.pmctpa.commands.*;
import com.lucifer.pmctpa.config.ConfigManager;
import com.lucifer.pmctpa.data.DatabaseManager;
import com.lucifer.pmctpa.inventory.gui.GUIListener;
import com.lucifer.pmctpa.inventory.gui.GUIManager;
import com.lucifer.pmctpa.listeners.PlayerMoveListener;
import com.lucifer.pmctpa.listeners.PlayerQuitListener;
import com.lucifer.pmctpa.managers.SpawnManager;
import com.lucifer.pmctpa.managers.TPAManager;
import com.lucifer.pmctpa.managers.TeleportManager;
import com.lucifer.pmctpa.managers.WarpManager;
import lombok.Getter;
import org.bukkit.Bukkit;
import org.bukkit.plugin.java.JavaPlugin;

@Getter
public class PmcTpa extends JavaPlugin {
    
    private ConfigManager configManager;
    private DatabaseManager databaseManager;
    private GUIManager guiManager;
    private SpawnManager spawnManager;
    private WarpManager warpManager;
    private TPAManager tpaManager;
    private TeleportManager teleportManager;
    
    @Override
    public void onEnable() {
        this.configManager = new ConfigManager(this);
        this.configManager.loadConfigs();
        
        this.databaseManager = new DatabaseManager(this);
        this.databaseManager.initialize();
        
        this.guiManager = new GUIManager();
        this.spawnManager = new SpawnManager(this);
        this.warpManager = new WarpManager(this);
        this.tpaManager = new TPAManager(this);
        this.teleportManager = new TeleportManager(this);
        
        this.registerCommands();
        this.registerListeners();
        
        if (Bukkit.getPluginManager().getPlugin("PlaceholderAPI") != null) {
            getLogger().info("PlaceholderAPI found! Enabling integration.");
        }
        
        getLogger().info("PmcTpa has been enabled! Author: LUCIFER");
    }
    
    @Override
    public void onDisable() {
        if (this.databaseManager != null) {
            this.databaseManager.shutdown();
        }
        getLogger().info("PmcTpa has been disabled!");
    }
    
    private void registerCommands() {
        getCommand("spawn").setExecutor(new SpawnCommand(this));
        getCommand("setspawn").setExecutor(new SetSpawnCommand(this));
        getCommand("warp").setExecutor(new WarpCommand(this));
        getCommand("warps").setExecutor(new WarpsCommand(this));
        getCommand("setwarp").setExecutor(new SetWarpCommand(this));
        getCommand("delwarp").setExecutor(new DelWarpCommand(this));
        getCommand("tpa").setExecutor(new TPACommand(this));
        getCommand("tpahere").setExecutor(new TPAHereCommand(this));
        getCommand("tpaccept").setExecutor(new TPAcceptCommand(this));
        getCommand("tpatoggle").setExecutor(new TPAToggleCommand(this));
        getCommand("tpaheretoggle").setExecutor(new TPAHereToggleCommand(this));
        getCommand("tpauto").setExecutor(new TPAutoCommand(this));
        getCommand("tpacancel").setExecutor(new TPACancelCommand(this));
        getCommand("pmctpa").setExecutor(new PmcTpaCommand(this));
        
        getCommand("spawn").setTabCompleter(new SpawnCommand(this));
        getCommand("warp").setTabCompleter(new WarpCommand(this));
        getCommand("setwarp").setTabCompleter(new SetWarpCommand(this));
        getCommand("delwarp").setTabCompleter(new DelWarpCommand(this));
        getCommand("tpa").setTabCompleter(new TPACommand(this));
        getCommand("tpahere").setTabCompleter(new TPAHereCommand(this));
        getCommand("tpaccept").setTabCompleter(new TPAcceptCommand(this));
    }
    
    private void registerListeners() {
        Bukkit.getPluginManager().registerEvents(new GUIListener(this.guiManager), this);
        Bukkit.getPluginManager().registerEvents(new PlayerMoveListener(this), this);
        Bukkit.getPluginManager().registerEvents(new PlayerQuitListener(this), this);
    }
    
    public void reload() {
        this.configManager.loadConfigs();
        this.spawnManager.loadSpawn();
        this.warpManager.loadWarps();
    }
}