Skip to content

Commit

Permalink
forgot to register the command
Browse files Browse the repository at this point in the history
  • Loading branch information
Abelkrijgtalles committed Jul 7, 2023
1 parent 386a62e commit febb798
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/main/java/nl/abelkrijgtalles/mojangmaps/MojangMaps.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package nl.abelkrijgtalles.mojangmaps;

import nl.abelkrijgtalles.mojangmaps.commands.CalculateDistanceCommand;
import nl.abelkrijgtalles.mojangmaps.commands.RegisterLocationCommand;
import nl.abelkrijgtalles.mojangmaps.managers.config.NodesConfig;
import org.bukkit.plugin.java.JavaPlugin;
Expand All @@ -15,6 +16,7 @@ public void onEnable() {
NodesConfig.setup();

getCommand("registerlocation").setExecutor(new RegisterLocationCommand());
getCommand("calculatedistance").setExecutor(new CalculateDistanceCommand());

}

Expand Down
4 changes: 3 additions & 1 deletion src/main/resources/plugin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,6 @@ description: A Google Maps like navigation system for Minecraft.
website: https://github.com/Abelkrijgtalles/mojang-maps
commands:
registerlocation:
description: Register a location.
description: Register a location.
calculatedistance:
description: Calculates the distance to every point.

0 comments on commit febb798

Please sign in to comment.