diff --git a/pom.xml b/pom.xml
index e5a6d47a..24d4a28e 100644
--- a/pom.xml
+++ b/pom.xml
@@ -196,5 +196,11 @@
5.0.1
compile
+
+ org.jetbrains
+ annotations
+ 23.0.0
+ compile
+
diff --git a/src/main/java/me/william278/huskhomes2/api/events/PlayerHomeUpdateEvent.java b/src/main/java/me/william278/huskhomes2/api/events/PlayerHomeUpdateEvent.java
index 1aadc0d2..8d1972a5 100644
--- a/src/main/java/me/william278/huskhomes2/api/events/PlayerHomeUpdateEvent.java
+++ b/src/main/java/me/william278/huskhomes2/api/events/PlayerHomeUpdateEvent.java
@@ -5,6 +5,7 @@ import org.bukkit.entity.Player;
import org.bukkit.event.Cancellable;
import org.bukkit.event.HandlerList;
import org.bukkit.event.player.PlayerEvent;
+import org.jetbrains.annotations.NotNull;
/**
* An event, fired when a home is updated
@@ -31,7 +32,7 @@ public class PlayerHomeUpdateEvent extends PlayerEvent implements Cancellable {
}
@Override
- public HandlerList getHandlers() {
+ public @NotNull HandlerList getHandlers() {
return HANDLER_LIST;
}
diff --git a/src/main/java/me/william278/huskhomes2/api/events/PlayerPreTeleportEvent.java b/src/main/java/me/william278/huskhomes2/api/events/PlayerPreTeleportEvent.java
index 245b8752..50bba608 100644
--- a/src/main/java/me/william278/huskhomes2/api/events/PlayerPreTeleportEvent.java
+++ b/src/main/java/me/william278/huskhomes2/api/events/PlayerPreTeleportEvent.java
@@ -5,6 +5,7 @@ import org.bukkit.entity.Player;
import org.bukkit.event.Cancellable;
import org.bukkit.event.HandlerList;
import org.bukkit.event.player.PlayerEvent;
+import org.jetbrains.annotations.NotNull;
public class PlayerPreTeleportEvent extends PlayerEvent implements Cancellable {
@@ -25,7 +26,7 @@ public class PlayerPreTeleportEvent extends PlayerEvent implements Cancellable {
}
@Override
- public HandlerList getHandlers() {
+ public @NotNull HandlerList getHandlers() {
return HANDLER_LIST;
}
diff --git a/src/main/java/me/william278/huskhomes2/api/events/PlayerSetHomeEvent.java b/src/main/java/me/william278/huskhomes2/api/events/PlayerSetHomeEvent.java
index 699b6d38..64eafee3 100644
--- a/src/main/java/me/william278/huskhomes2/api/events/PlayerSetHomeEvent.java
+++ b/src/main/java/me/william278/huskhomes2/api/events/PlayerSetHomeEvent.java
@@ -5,6 +5,7 @@ import org.bukkit.entity.Player;
import org.bukkit.event.Cancellable;
import org.bukkit.event.HandlerList;
import org.bukkit.event.player.PlayerEvent;
+import org.jetbrains.annotations.NotNull;
/**
* An event, fired when a player sets a new home
@@ -28,7 +29,7 @@ public class PlayerSetHomeEvent extends PlayerEvent implements Cancellable {
}
@Override
- public HandlerList getHandlers() {
+ public @NotNull HandlerList getHandlers() {
return HANDLER_LIST;
}
diff --git a/src/main/java/me/william278/huskhomes2/api/events/PlayerSetWarpEvent.java b/src/main/java/me/william278/huskhomes2/api/events/PlayerSetWarpEvent.java
index c0ad9bb0..35f30181 100644
--- a/src/main/java/me/william278/huskhomes2/api/events/PlayerSetWarpEvent.java
+++ b/src/main/java/me/william278/huskhomes2/api/events/PlayerSetWarpEvent.java
@@ -5,6 +5,7 @@ import org.bukkit.entity.Player;
import org.bukkit.event.Cancellable;
import org.bukkit.event.HandlerList;
import org.bukkit.event.player.PlayerEvent;
+import org.jetbrains.annotations.NotNull;
/**
* An event, fired when a player sets a new warp
@@ -28,7 +29,7 @@ public class PlayerSetWarpEvent extends PlayerEvent implements Cancellable {
}
@Override
- public HandlerList getHandlers() {
+ public @NotNull HandlerList getHandlers() {
return HANDLER_LIST;
}
diff --git a/src/main/java/me/william278/huskhomes2/api/events/PlayerWarpUpdateEvent.java b/src/main/java/me/william278/huskhomes2/api/events/PlayerWarpUpdateEvent.java
index afe862b4..37a90f18 100644
--- a/src/main/java/me/william278/huskhomes2/api/events/PlayerWarpUpdateEvent.java
+++ b/src/main/java/me/william278/huskhomes2/api/events/PlayerWarpUpdateEvent.java
@@ -5,6 +5,7 @@ import org.bukkit.entity.Player;
import org.bukkit.event.Cancellable;
import org.bukkit.event.HandlerList;
import org.bukkit.event.player.PlayerEvent;
+import org.jetbrains.annotations.NotNull;
/**
* An event, fired when a warp is updated
@@ -32,7 +33,7 @@ public class PlayerWarpUpdateEvent extends PlayerEvent implements Cancellable {
}
@Override
- public HandlerList getHandlers() {
+ public @NotNull HandlerList getHandlers() {
return HANDLER_LIST;
}
diff --git a/src/main/java/me/william278/huskhomes2/commands/CommandBase.java b/src/main/java/me/william278/huskhomes2/commands/CommandBase.java
index c9fcfb87..4b8da947 100644
--- a/src/main/java/me/william278/huskhomes2/commands/CommandBase.java
+++ b/src/main/java/me/william278/huskhomes2/commands/CommandBase.java
@@ -1,15 +1,18 @@
package me.william278.huskhomes2.commands;
+import me.william278.huskhomes2.MessageManager;
import org.bukkit.command.*;
import org.bukkit.entity.Player;
+import org.jetbrains.annotations.NotNull;
import java.util.Collections;
import java.util.List;
import java.util.Objects;
public abstract class CommandBase implements CommandExecutor {
+
@Override
- public boolean onCommand(CommandSender sender, Command command, String label, String[] args) {
+ public boolean onCommand(@NotNull CommandSender sender, @NotNull Command command, @NotNull String label, String[] args) {
if (sender instanceof Player) {
onCommand((Player) sender, command, label, args);
return true;
@@ -21,20 +24,28 @@ public abstract class CommandBase implements CommandExecutor {
/**
* Register base for bukkit command
+ *
* @param command Command for registration
*/
public PluginCommand register(PluginCommand command) {
Objects.requireNonNull(command);
+
+ // Set command executor
command.setExecutor(this);
+
+ // Set the appropriate tab completer
if (this instanceof TabCompleter) {
command.setTabCompleter((TabCompleter) this);
}
+
+ // Get localised command description
+ command.setDescription(MessageManager.getRawMessage(command.getName() + "_command_description"));
return command;
}
public static class EmptyTab implements TabCompleter {
@Override
- public List onTabComplete(CommandSender commandSender, Command command, String s, String[] strings) {
+ public List onTabComplete(@NotNull CommandSender commandSender, @NotNull Command command, @NotNull String s, String[] strings) {
return Collections.emptyList();
}
}
diff --git a/src/main/java/me/william278/huskhomes2/commands/HuskHomesCommand.java b/src/main/java/me/william278/huskhomes2/commands/HuskHomesCommand.java
index 013d6169..2ed7add2 100644
--- a/src/main/java/me/william278/huskhomes2/commands/HuskHomesCommand.java
+++ b/src/main/java/me/william278/huskhomes2/commands/HuskHomesCommand.java
@@ -13,6 +13,7 @@ import org.bukkit.command.CommandSender;
import org.bukkit.command.TabCompleter;
import org.bukkit.entity.Player;
import org.bukkit.util.StringUtil;
+import org.jetbrains.annotations.NotNull;
import java.util.ArrayList;
import java.util.Arrays;
@@ -62,7 +63,7 @@ public class HuskHomesCommand extends CommandBase implements TabCompleter {
}
@Override
- public boolean onCommand(CommandSender sender, Command command, String label, String[] args) {
+ public boolean onCommand(@NotNull CommandSender sender, @NotNull Command command, @NotNull String label, String[] args) {
if (args.length == 0) {
if (sender instanceof Player) {
showHelpMenu((Player) sender, 1);
@@ -174,7 +175,7 @@ public class HuskHomesCommand extends CommandBase implements TabCompleter {
final static String[] COMMAND_TAB_ARGS = {"help", "about", "update", "reload"};
@Override
- public List onTabComplete(CommandSender sender, Command command, String alias, String[] args) {
+ public List onTabComplete(@NotNull CommandSender sender, Command command, @NotNull String alias, String[] args) {
Player p = (Player) sender;
if (command.getPermission() != null) {
if (!p.hasPermission(command.getPermission())) {
diff --git a/src/main/java/me/william278/huskhomes2/commands/PublicHomeCommand.java b/src/main/java/me/william278/huskhomes2/commands/PublicHomeCommand.java
index 8539adf7..b32c6556 100644
--- a/src/main/java/me/william278/huskhomes2/commands/PublicHomeCommand.java
+++ b/src/main/java/me/william278/huskhomes2/commands/PublicHomeCommand.java
@@ -12,6 +12,7 @@ import org.bukkit.command.CommandSender;
import org.bukkit.command.TabCompleter;
import org.bukkit.entity.Player;
import org.bukkit.util.StringUtil;
+import org.jetbrains.annotations.NotNull;
import java.sql.Connection;
import java.sql.SQLException;
@@ -69,7 +70,7 @@ public class PublicHomeCommand extends CommandBase implements TabCompleter {
}
@Override
- public boolean onCommand(CommandSender sender, Command command, String label, String[] args) {
+ public boolean onCommand(@NotNull CommandSender sender, @NotNull Command command, @NotNull String label, String[] args) {
if (!(sender instanceof Player p)) {
handleConsolePublicHomeTeleport(sender, args);
return true;
@@ -134,7 +135,7 @@ public class PublicHomeCommand extends CommandBase implements TabCompleter {
}
@Override
- public List onTabComplete(CommandSender sender, Command command, String alias, String[] args) {
+ public List onTabComplete(CommandSender sender, @NotNull Command command, @NotNull String alias, String[] args) {
if (!sender.hasPermission("huskhomes.publichome")) {
return Collections.emptyList();
}
diff --git a/src/main/java/me/william278/huskhomes2/commands/WarpCommand.java b/src/main/java/me/william278/huskhomes2/commands/WarpCommand.java
index 36e6c5eb..5e77500c 100644
--- a/src/main/java/me/william278/huskhomes2/commands/WarpCommand.java
+++ b/src/main/java/me/william278/huskhomes2/commands/WarpCommand.java
@@ -11,6 +11,7 @@ import org.bukkit.command.CommandSender;
import org.bukkit.command.TabCompleter;
import org.bukkit.entity.Player;
import org.bukkit.util.StringUtil;
+import org.jetbrains.annotations.NotNull;
import java.sql.Connection;
import java.sql.SQLException;
@@ -26,7 +27,7 @@ public class WarpCommand extends CommandBase {
private static final HuskHomes plugin = HuskHomes.getInstance();
@Override
- public boolean onCommand(CommandSender sender, Command command, String label, String[] args) {
+ public boolean onCommand(@NotNull CommandSender sender, @NotNull Command command, @NotNull String label, String[] args) {
if (!(sender instanceof Player p)) {
handleConsoleWarp(sender, args);
return true;
@@ -116,7 +117,7 @@ public class WarpCommand extends CommandBase {
@Override
- public List onTabComplete(CommandSender sender, Command command, String alias, String[] args) {
+ public List onTabComplete(CommandSender sender, @NotNull Command command, @NotNull String alias, String[] args) {
if (!sender.hasPermission("huskhomes.warp")) {
return Collections.emptyList();
}
diff --git a/src/main/java/me/william278/huskhomes2/data/message/pluginmessage/PluginMessageReceiver.java b/src/main/java/me/william278/huskhomes2/data/message/pluginmessage/PluginMessageReceiver.java
index b543dd42..98994baf 100644
--- a/src/main/java/me/william278/huskhomes2/data/message/pluginmessage/PluginMessageReceiver.java
+++ b/src/main/java/me/william278/huskhomes2/data/message/pluginmessage/PluginMessageReceiver.java
@@ -7,6 +7,7 @@ import me.william278.huskhomes2.data.message.CrossServerMessageHandler;
import org.bukkit.Bukkit;
import org.bukkit.entity.Player;
import org.bukkit.plugin.messaging.PluginMessageListener;
+import org.jetbrains.annotations.NotNull;
import java.io.ByteArrayInputStream;
import java.io.DataInputStream;
@@ -15,7 +16,7 @@ import java.io.IOException;
public class PluginMessageReceiver implements PluginMessageListener {
@Override @SuppressWarnings("UnstableApiUsage")
- public void onPluginMessageReceived(String channel, Player player, byte[] message) {
+ public void onPluginMessageReceived(String channel, @NotNull Player player, byte[] message) {
// Return if the message is not a Bungee message
if (!channel.equals("BungeeCord")) {
return;
diff --git a/src/main/java/me/william278/huskhomes2/teleport/TeleportRequestHandler.java b/src/main/java/me/william278/huskhomes2/teleport/TeleportRequestHandler.java
index b3a1b2e3..0f1cbfa6 100644
--- a/src/main/java/me/william278/huskhomes2/teleport/TeleportRequestHandler.java
+++ b/src/main/java/me/william278/huskhomes2/teleport/TeleportRequestHandler.java
@@ -8,10 +8,7 @@ import me.william278.huskhomes2.integrations.VanishChecker;
import org.bukkit.Bukkit;
import org.bukkit.entity.Player;
-import java.sql.Connection;
-import java.sql.SQLException;
import java.util.HashMap;
-import java.util.logging.Level;
public class TeleportRequestHandler {
diff --git a/src/main/java/me/william278/huskhomes2/teleport/TimedTeleport.java b/src/main/java/me/william278/huskhomes2/teleport/TimedTeleport.java
index 6ef05259..bec049bf 100644
--- a/src/main/java/me/william278/huskhomes2/teleport/TimedTeleport.java
+++ b/src/main/java/me/william278/huskhomes2/teleport/TimedTeleport.java
@@ -93,7 +93,7 @@ public class TimedTeleport {
sendWarmupMessage(player, "teleporting_action_bar_cancelled");
return;
}
- if (hasDamagedPlayers(executablePlayer)) {
+ if (hasDealtDamage(executablePlayer)) {
cancel();
executablePlayer.playSound(executablePlayer.getLocation(), HuskHomes.getSettings().getTeleportCancelledSound(), 1, 1);
MessageManager.sendMessage(player, "teleporting_cancelled_pvp");
@@ -202,8 +202,8 @@ public class TimedTeleport {
return totalDiff > movementThreshold;
}
- // This returns if the player has damaged other players
- public boolean hasDamagedPlayers(Player p) {
+ // This returns if the player has dealt damage
+ public boolean hasDealtDamage(Player p) {
final int damageDealt = p.getStatistic(Statistic.DAMAGE_DEALT);
return damageDealt > initialDamageDealt;
}
diff --git a/src/main/resources/languages/en-gb.yml b/src/main/resources/languages/en-gb.yml
index ef708c8c..9576541c 100644
--- a/src/main/resources/languages/en-gb.yml
+++ b/src/main/resources/languages/en-gb.yml
@@ -120,4 +120,29 @@ error_invalid_player: '[Error:](#ff3300) [Please specify the name of a valid pla
error_no_homes_set_other: '[Error:](#ff3300) [%1% hasn''t set any homes!](#ff7e5e)'
error_home_invalid_other: '[Error:](#ff3300) [%1% doesn''t have a home set named "%2%"](#ff7e5e)'
error_edit_home_maximum_public_homes: '[Error:](#ff3300) [You can only make a maximum of %1% homes public.](#ff7e5e)'
-teleporting_cancelled_pvp: '[Teleportation cancelled; you engaged in combat!](#ff7e5e)'
\ No newline at end of file
+teleporting_cancelled_pvp: '[Teleportation cancelled; you engaged in combat!](#ff7e5e)'
+home_command_description: 'Teleport to one of your homes'
+sethome_command_description: 'Set a new home with given name'
+delhome_command_description: 'Delete a home you previously set'
+edithome_command_description: 'Edit one of your homes'
+warp_command_description: 'Teleport to a warp'
+setwarp_command_description: 'Set a new warp with given name'
+delwarp_command_description: 'Delete a warp'
+editwarp_command_description: 'Edit a warp'
+back_command_description: 'Return to your previous position, or where you died'
+homelist_command_description: 'Get a list of your homes'
+warplist_command_description: 'View the list of warps'
+publichomelist_command_description: 'View the list of public homes'
+publichome_command_description: 'Teleport to a public home'
+tp_command_description: 'Teleport to another player or location'
+tphere_command_description: 'Teleport another player to you'
+tpa_command_description: 'Request to teleport to another player'
+tpahere_command_description: 'Request another player to teleport to you'
+tpaccept_command_description: 'Accept a teleport request'
+tpdeny_command_description: 'Deny a teleport request'
+tpignore_command_description: 'Ignore incoming teleport requests'
+tpoffline_command_description: 'Teleport to where a player was last online'
+rtp_command_description: 'Teleport randomly into the wild'
+spawn_command_description: 'Teleport to spawn'
+setspawn_command_description: 'Set the spawn position'
+huskhomes_command_description: 'View plugin information & reload configs'
\ No newline at end of file
diff --git a/src/main/resources/languages/it-it.yml b/src/main/resources/languages/it-it.yml
index 893b52c0..56c5691c 100644
--- a/src/main/resources/languages/it-it.yml
+++ b/src/main/resources/languages/it-it.yml
@@ -119,4 +119,29 @@ error_no_homes_set_other: '[Errore:](#ff3300) [%1% non ha nessuna home!](#ff7e5e
error_home_invalid_other: '[Errore:](#ff3300) [%1% non ha una home chiamata "%2%"](#ff7e5e)'
home_deleted_other: '[Hai cancellato la home](#00fb9a)[%2%](#00fb9a bold)[di %1%](#00fb9a) '
edit_home_privacy_private_other: '• Accesso: ff7e5e&Privato &7(Solo %1% può usarla)'
-error_edit_home_maximum_public_homes: '[Error:](#ff3300) [You can only make a maximum of %1% homes public.](#ff7e5e)'
\ No newline at end of file
+error_edit_home_maximum_public_homes: '[Error:](#ff3300) [You can only make a maximum of %1% homes public.](#ff7e5e)'
+home_command_description: 'Teleport to one of your homes'
+sethome_command_description: 'Set a new home with given name'
+delhome_command_description: 'Delete a home you previously set'
+edithome_command_description: 'Edit one of your homes'
+warp_command_description: 'Teleport to a warp'
+setwarp_command_description: 'Set a new warp with given name'
+delwarp_command_description: 'Delete a warp'
+editwarp_command_description: 'Edit a warp'
+back_command_description: 'Return to your previous position, or where you died'
+homelist_command_description: 'Get a list of your homes'
+warplist_command_description: 'View the list of warps'
+publichomelist_command_description: 'View the list of public homes'
+publichome_command_description: 'Teleport to a public home'
+tp_command_description: 'Teleport to another player or location'
+tphere_command_description: 'Teleport another player to you'
+tpa_command_description: 'Request to teleport to another player'
+tpahere_command_description: 'Request another player to teleport to you'
+tpaccept_command_description: 'Accept a teleport request'
+tpdeny_command_description: 'Deny a teleport request'
+tpignore_command_description: 'Ignore incoming teleport requests'
+tpoffline_command_description: 'Teleport to where a player was last online'
+rtp_command_description: 'Teleport randomly into the wild'
+spawn_command_description: 'Teleport to spawn'
+setspawn_command_description: 'Set the spawn position'
+huskhomes_command_description: 'View plugin information & reload configs'
\ No newline at end of file
diff --git a/src/main/resources/languages/pl.yml b/src/main/resources/languages/pl.yml
index 540d97d7..3893b827 100644
--- a/src/main/resources/languages/pl.yml
+++ b/src/main/resources/languages/pl.yml
@@ -119,4 +119,29 @@ error_no_homes_set_other: '[Błąd:](#ff3300) [%1% nie ma żadnych domów!](#ff7
error_home_invalid_other: '[Błąd:](#ff3300) [%1% nie ma domu nazwanego "%2%"](#ff7e5e)'
home_deleted_other: '[Pomyślnie usunięto dom %1%,](#00fb9a) [%2%](#00fb9a bold)'
edit_home_privacy_private_other: '• Dostęp: ff7e5e&Prywatny &7(Tylko %1% może to użyć)'
-error_edit_home_maximum_public_homes: '[Błąd:](#ff3300) [Możesz maksymalnie utworzyć %1% publicznych domów.](#ff7e5e)'
\ No newline at end of file
+error_edit_home_maximum_public_homes: '[Błąd:](#ff3300) [Możesz maksymalnie utworzyć %1% publicznych domów.](#ff7e5e)'
+home_command_description: 'Teleport to one of your homes'
+sethome_command_description: 'Set a new home with given name'
+delhome_command_description: 'Delete a home you previously set'
+edithome_command_description: 'Edit one of your homes'
+warp_command_description: 'Teleport to a warp'
+setwarp_command_description: 'Set a new warp with given name'
+delwarp_command_description: 'Delete a warp'
+editwarp_command_description: 'Edit a warp'
+back_command_description: 'Return to your previous position, or where you died'
+homelist_command_description: 'Get a list of your homes'
+warplist_command_description: 'View the list of warps'
+publichomelist_command_description: 'View the list of public homes'
+publichome_command_description: 'Teleport to a public home'
+tp_command_description: 'Teleport to another player or location'
+tphere_command_description: 'Teleport another player to you'
+tpa_command_description: 'Request to teleport to another player'
+tpahere_command_description: 'Request another player to teleport to you'
+tpaccept_command_description: 'Accept a teleport request'
+tpdeny_command_description: 'Deny a teleport request'
+tpignore_command_description: 'Ignore incoming teleport requests'
+tpoffline_command_description: 'Teleport to where a player was last online'
+rtp_command_description: 'Teleport randomly into the wild'
+spawn_command_description: 'Teleport to spawn'
+setspawn_command_description: 'Set the spawn position'
+huskhomes_command_description: 'View plugin information & reload configs'
\ No newline at end of file
diff --git a/src/main/resources/languages/zh-cn.yml b/src/main/resources/languages/zh-cn.yml
index 0db5ddab..7c3b2804 100644
--- a/src/main/resources/languages/zh-cn.yml
+++ b/src/main/resources/languages/zh-cn.yml
@@ -119,4 +119,29 @@ error_no_homes_set_other: '[错误:](#ff3300) [%1% 没有设置任何一个家!]
error_home_invalid_other: '[错误:](#ff3300) [%1% 没有叫做 "%2%" 的家](#ff7e5e)'
home_deleted_other: '[成功删除了 %1% 的名字叫](#00fb9a) [%2%](#00fb9a bold) [的家](#00fb9a)'
edit_home_privacy_private_other: '• 隐私性: ff7e5e&私有的 &7(只有 %1% 可以使用该家)'
-error_edit_home_maximum_public_homes: '[Error:](#ff3300) [You can only make a maximum of %1% homes public.](#ff7e5e)'
\ No newline at end of file
+error_edit_home_maximum_public_homes: '[Error:](#ff3300) [You can only make a maximum of %1% homes public.](#ff7e5e)'
+home_command_description: 'Teleport to one of your homes'
+sethome_command_description: 'Set a new home with given name'
+delhome_command_description: 'Delete a home you previously set'
+edithome_command_description: 'Edit one of your homes'
+warp_command_description: 'Teleport to a warp'
+setwarp_command_description: 'Set a new warp with given name'
+delwarp_command_description: 'Delete a warp'
+editwarp_command_description: 'Edit a warp'
+back_command_description: 'Return to your previous position, or where you died'
+homelist_command_description: 'Get a list of your homes'
+warplist_command_description: 'View the list of warps'
+publichomelist_command_description: 'View the list of public homes'
+publichome_command_description: 'Teleport to a public home'
+tp_command_description: 'Teleport to another player or location'
+tphere_command_description: 'Teleport another player to you'
+tpa_command_description: 'Request to teleport to another player'
+tpahere_command_description: 'Request another player to teleport to you'
+tpaccept_command_description: 'Accept a teleport request'
+tpdeny_command_description: 'Deny a teleport request'
+tpignore_command_description: 'Ignore incoming teleport requests'
+tpoffline_command_description: 'Teleport to where a player was last online'
+rtp_command_description: 'Teleport randomly into the wild'
+spawn_command_description: 'Teleport to spawn'
+setspawn_command_description: 'Set the spawn position'
+huskhomes_command_description: 'View plugin information & reload configs'
\ No newline at end of file
diff --git a/src/main/resources/languages/zh-tw.yml b/src/main/resources/languages/zh-tw.yml
index e37525e0..23c6d3f0 100644
--- a/src/main/resources/languages/zh-tw.yml
+++ b/src/main/resources/languages/zh-tw.yml
@@ -119,4 +119,29 @@ home_deleted_other: '[Successfully deleted %1%''s home,](#00fb9a) [%2%](#00fb9a
edit_home_privacy_private_other: '• Access: ff7e5e&Private &7(Only %1% can use it)'
edit_home_title_other: '\n[Edit home details for %1%''s home,](#00fb9a) [%2%](#00fb9a bold)[:](#00fb9a)'
command_list_item: '[/%1%](#00fb9a show_text=fb9a&%2% suggest_command=/%1%) [•](white) [%3%](gray)'
-error_edit_home_maximum_public_homes: '[Error:](#ff3300) [You can only make a maximum of %1% homes public.](#ff7e5e)'
\ No newline at end of file
+error_edit_home_maximum_public_homes: '[Error:](#ff3300) [You can only make a maximum of %1% homes public.](#ff7e5e)'
+home_command_description: 'Teleport to one of your homes'
+sethome_command_description: 'Set a new home with given name'
+delhome_command_description: 'Delete a home you previously set'
+edithome_command_description: 'Edit one of your homes'
+warp_command_description: 'Teleport to a warp'
+setwarp_command_description: 'Set a new warp with given name'
+delwarp_command_description: 'Delete a warp'
+editwarp_command_description: 'Edit a warp'
+back_command_description: 'Return to your previous position, or where you died'
+homelist_command_description: 'Get a list of your homes'
+warplist_command_description: 'View the list of warps'
+publichomelist_command_description: 'View the list of public homes'
+publichome_command_description: 'Teleport to a public home'
+tp_command_description: 'Teleport to another player or location'
+tphere_command_description: 'Teleport another player to you'
+tpa_command_description: 'Request to teleport to another player'
+tpahere_command_description: 'Request another player to teleport to you'
+tpaccept_command_description: 'Accept a teleport request'
+tpdeny_command_description: 'Deny a teleport request'
+tpignore_command_description: 'Ignore incoming teleport requests'
+tpoffline_command_description: 'Teleport to where a player was last online'
+rtp_command_description: 'Teleport randomly into the wild'
+spawn_command_description: 'Teleport to spawn'
+setspawn_command_description: 'Set the spawn position'
+huskhomes_command_description: 'View plugin information & reload configs'
\ No newline at end of file
diff --git a/src/main/resources/plugin.yml b/src/main/resources/plugin.yml
index 214e6491..6ad5ddd7 100644
--- a/src/main/resources/plugin.yml
+++ b/src/main/resources/plugin.yml
@@ -11,115 +11,90 @@ libraries:
commands:
home:
- description: Teleport to one of your homes
usage: /
permission: huskhomes.home
sethome:
- description: Set a new home with given name
usage: /
permission: huskhomes.sethome
delhome:
- description: Delete a home you previously set
usage: /
permission: huskhomes.delhome
edithome:
- description: Edit one of your homes
usage: / [arguments]
permission: huskhomes.edithome
warp:
- description: Teleport to a warp
usage: /
permission: huskhomes.warp
setwarp:
- description: Set a new warp with given name
usage: /
permission: huskhomes.setwarp
delwarp:
- description: Delete a warp
usage: /
permission: huskhomes.delwarp
editwarp:
- description: Edit a warp
usage: / [arguments]
permission: huskhomes.editwarp
back:
- description: Return to your previous position, or where you died
usage: /
permission: huskhomes.back
homelist:
- description: Get a list of your homes
usage: /
permission: huskhomes.home
aliases: [homes, listhomes]
warplist:
- description: View the list of warps
usage: /
permission: huskhomes.warp
aliases: [warps, listwarps]
publichomelist:
- description: View the list of public homes
usage: /
permission: huskhomes.publichome
aliases: [phomes, phomelist, listphomes, listpublichomes]
publichome:
- description: Teleport to a public home
usage: /
permission: huskhomes.publichome
aliases: [phome]
tp:
- description: Teleport to another player or location
usage: /
permission: huskhomes.tp
aliases: [tpo]
tphere:
- description: Teleport another player to you
usage: /
permission: huskhomes.tphere
aliases: [tpohere]
tpa:
- description: Request to teleport to another player
usage: /
permission: huskhomes.tpa
aliases: [tprequest, tpask]
tpahere:
- description: Request another player to teleport to you
usage: /
permission: huskhomes.tpahere
aliases: [tphererequest, tpaskhere]
tpaccept:
- description: Accept a teleport request
usage: / [player]
permission: huskhomes.tpaccept
aliases: [tpyes]
tpdeny:
- description: Deny a teleport request
usage: / [player]
permission: huskhomes.tpdeny
aliases: [tpno]
tpignore:
- description: Ignore incoming teleport requests
usage: /
permission: huskhomes.tpignore
aliases: [tpaignore, ignoretprequests]
tpoffline:
- description: Teleport to where a player was last online
usage: /
permission: huskhomes.tpoffline
rtp:
- description: Teleport randomly into the wild
usage: /
permission: huskhomes.rtp
aliases: [randomtp, randomteleport, wild]
spawn:
- description: Teleport to spawn
usage: /
permission: huskhomes.spawn
setspawn:
- description: Set the spawn position
usage: /
permission: huskhomes.spawn.set
huskhomes:
- description: Plugin information & reload configs.
usage: /
permissions: