Skip to content

Commit

Permalink
Reimplementation of serverlist based commands.
Browse files Browse the repository at this point in the history
  • Loading branch information
ShakeforProtein committed Jun 22, 2021
1 parent d6f11bd commit ada7b31
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>me.ShakeforProtein</groupId>
<artifactId>TreeboTeleport</artifactId>
<version>2.0.3</version>
<version>2.0.4</version>
<packaging>jar</packaging>

<name>TreeboTeleport</name>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -205,8 +205,7 @@ public ItemStack getHubItemFromConfig() {
}

public void registerNewCommand(String fallback, BukkitCommand command) {
/*try {
try {
Field bukkitCommandMap = Bukkit.getServer().getClass().getDeclaredField("commandMap");
bukkitCommandMap.setAccessible(true);
CommandMap commandMap = (CommandMap) bukkitCommandMap.get(Bukkit.getServer());
Expand All @@ -220,7 +219,7 @@ public void registerNewCommand(String fallback, BukkitCommand command) {
e.printStackTrace();
}

*/

}

public void saveFileConfigurationToFile(File file, FileConfiguration conf, CommandSender s) {
Expand Down
3 changes: 3 additions & 0 deletions src/main/resources/plugin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@ commands:
homes:
description: "Opens the homes GUI."
permission: "tbteleport.player.home"
hub:
description: "Opens the Hub GUI"
permission: "tbteleport.player.hub"
jsaw:
description: "Corrupts your player data."
permission: "tbteleport.player.jsaw"
Expand Down

0 comments on commit ada7b31

Please sign in to comment.