mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-02 06:28:49 +00:00
Merge branch 'tpaignore'
This commit is contained in:
commit
13eca6761b
15 files changed
+187
-49
No files matched your search
@@ -6,7 +6,7 @@
|
||||
|
||||
<groupId>me.William278</groupId>
|
||||
<artifactId>HuskHomes</artifactId>
|
||||
<version>2.6.3</version>
|
||||
<version>2.7</version>
|
||||
<packaging>jar</packaging>
|
||||
|
||||
<name>HuskHomes</name>
|
||||
|
||||
@@ -1,30 +1,7 @@
|
||||
package me.william278.huskhomes2;
|
||||
|
||||
import me.william278.huskhomes2.api.HuskHomesAPI;
|
||||
import me.william278.huskhomes2.commands.BackCommand;
|
||||
import me.william278.huskhomes2.commands.CommandBase;
|
||||
import me.william278.huskhomes2.commands.DelHomeCommand;
|
||||
import me.william278.huskhomes2.commands.DelWarpCommand;
|
||||
import me.william278.huskhomes2.commands.EditHomeCommand;
|
||||
import me.william278.huskhomes2.commands.EditWarpCommand;
|
||||
import me.william278.huskhomes2.commands.HomeCommand;
|
||||
import me.william278.huskhomes2.commands.HomeListCommand;
|
||||
import me.william278.huskhomes2.commands.HuskHomesCommand;
|
||||
import me.william278.huskhomes2.commands.PublicHomeCommand;
|
||||
import me.william278.huskhomes2.commands.PublicHomeListCommand;
|
||||
import me.william278.huskhomes2.commands.RtpCommand;
|
||||
import me.william278.huskhomes2.commands.SetHomeCommand;
|
||||
import me.william278.huskhomes2.commands.SetSpawnCommand;
|
||||
import me.william278.huskhomes2.commands.SetWarpCommand;
|
||||
import me.william278.huskhomes2.commands.SpawnCommand;
|
||||
import me.william278.huskhomes2.commands.TpCommand;
|
||||
import me.william278.huskhomes2.commands.TpaCommand;
|
||||
import me.william278.huskhomes2.commands.TpAcceptCommand;
|
||||
import me.william278.huskhomes2.commands.TpaHereCommand;
|
||||
import me.william278.huskhomes2.commands.TpDenyCommand;
|
||||
import me.william278.huskhomes2.commands.TpHereCommand;
|
||||
import me.william278.huskhomes2.commands.WarpCommand;
|
||||
import me.william278.huskhomes2.commands.WarpListCommand;
|
||||
import me.william278.huskhomes2.commands.*;
|
||||
import me.william278.huskhomes2.config.Settings;
|
||||
import me.william278.huskhomes2.data.SQL.Database;
|
||||
import me.william278.huskhomes2.data.SQL.MySQL;
|
||||
@@ -35,6 +12,7 @@ import me.william278.huskhomes2.integrations.Map.Map;
|
||||
import me.william278.huskhomes2.integrations.VaultIntegration;
|
||||
import me.william278.huskhomes2.listeners.PlayerListener;
|
||||
import me.william278.huskhomes2.listeners.PluginMessageListener;
|
||||
import me.william278.huskhomes2.migrators.UpgradeDatabase;
|
||||
import me.william278.huskhomes2.teleport.SettingHandler;
|
||||
import me.william278.huskhomes2.util.PlayerList;
|
||||
import org.bstats.bukkit.Metrics;
|
||||
@@ -48,6 +26,8 @@ import java.io.InputStreamReader;
|
||||
import java.net.URL;
|
||||
import java.net.URLConnection;
|
||||
import java.sql.Connection;
|
||||
import java.util.HashSet;
|
||||
import java.util.UUID;
|
||||
import java.util.logging.Level;
|
||||
|
||||
public final class HuskHomes extends JavaPlugin {
|
||||
@@ -78,6 +58,16 @@ public final class HuskHomes extends JavaPlugin {
|
||||
private static PlayerList playerList;
|
||||
public static PlayerList getPlayerList() { return playerList; }
|
||||
|
||||
// Ignoring teleport requests handler
|
||||
private static final HashSet<UUID> ignoringTeleportRequests = new HashSet<>();
|
||||
public static boolean isIgnoringTeleportRequests(UUID uuid) { return ignoringTeleportRequests.contains(uuid); }
|
||||
public static void setIgnoringTeleportRequests(UUID uuid) {
|
||||
ignoringTeleportRequests.add(uuid);
|
||||
}
|
||||
public static void setNotIgnoringTeleportRequests(UUID uuid) {
|
||||
ignoringTeleportRequests.remove(uuid);
|
||||
}
|
||||
|
||||
private static final int METRICS_PLUGIN_ID = 8430;
|
||||
|
||||
/**
|
||||
@@ -144,6 +134,7 @@ public final class HuskHomes extends JavaPlugin {
|
||||
CommandBase.EmptyTab emptyTab = new CommandBase.EmptyTab();
|
||||
new TpAcceptCommand().register(getCommand("tpaccept")).setTabCompleter(emptyTab);
|
||||
new TpDenyCommand().register(getCommand("tpdeny")).setTabCompleter(emptyTab);
|
||||
new TpIgnoreCommand().register(getCommand("tpignore")).setTabCompleter(emptyTab);
|
||||
new WarpListCommand().register(getCommand("warplist")).setTabCompleter(emptyTab);
|
||||
new HomeListCommand().register(getCommand("homelist")).setTabCompleter(emptyTab);
|
||||
new PublicHomeListCommand().register(getCommand("publichomelist")).setTabCompleter(emptyTab);
|
||||
@@ -218,6 +209,9 @@ public final class HuskHomes extends JavaPlugin {
|
||||
// Register events
|
||||
registerEvents(this);
|
||||
|
||||
// Upgrade Database if needed
|
||||
UpgradeDatabase.upgradeDatabase();
|
||||
|
||||
// bStats initialisation
|
||||
try {
|
||||
Metrics metrics = new Metrics(this, METRICS_PLUGIN_ID);
|
||||
|
||||
@@ -10,4 +10,4 @@ public class TpAcceptCommand extends CommandBase {
|
||||
protected void onCommand(Player p, Command command, String label, String[] args) {
|
||||
TeleportRequestHandler.replyTpRequest(p, true);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
package me.william278.huskhomes2.commands;
|
||||
|
||||
import me.william278.huskhomes2.HuskHomes;
|
||||
import me.william278.huskhomes2.MessageManager;
|
||||
import me.william278.huskhomes2.data.DataManager;
|
||||
import org.bukkit.Bukkit;
|
||||
import org.bukkit.command.Command;
|
||||
import org.bukkit.entity.Player;
|
||||
|
||||
import java.sql.SQLException;
|
||||
|
||||
public class TpIgnoreCommand extends CommandBase {
|
||||
|
||||
private static final HuskHomes plugin = HuskHomes.getInstance();
|
||||
|
||||
@Override
|
||||
protected void onCommand(Player p, Command command, String label, String[] args) {
|
||||
if (HuskHomes.isIgnoringTeleportRequests(p.getUniqueId())) {
|
||||
MessageManager.sendMessage(p, "tpignore_toggle_off");
|
||||
HuskHomes.setNotIgnoringTeleportRequests(p.getUniqueId());
|
||||
setIgnoringRequestsData(p, false);
|
||||
} else {
|
||||
MessageManager.sendMessage(p, "tpignore_toggle_on");
|
||||
HuskHomes.setIgnoringTeleportRequests(p.getUniqueId());
|
||||
setIgnoringRequestsData(p, true);
|
||||
}
|
||||
}
|
||||
|
||||
private void setIgnoringRequestsData(Player player, boolean isIgnoring) {
|
||||
Bukkit.getScheduler().runTaskAsynchronously(plugin, () -> {
|
||||
try {
|
||||
DataManager.setPlayerIgnoringRequests(player, isIgnoring, HuskHomes.getConnection());
|
||||
} catch (SQLException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
}
|
||||
@@ -120,6 +120,27 @@ public class DataManager {
|
||||
return null;
|
||||
}
|
||||
|
||||
// Return if the player is ignoring teleport requests
|
||||
public static Boolean getPlayerIgnoringRequests(Player p, Connection connection) throws SQLException {
|
||||
PreparedStatement ps;
|
||||
ResultSet rs;
|
||||
|
||||
ps = connection.prepareStatement("SELECT * FROM " + HuskHomes.getSettings().getPlayerDataTable() + " WHERE `user_uuid`=?;");
|
||||
ps.setString(1, p.getUniqueId().toString());
|
||||
rs = ps.executeQuery();
|
||||
if (rs != null) {
|
||||
if (rs.next()) {
|
||||
final boolean isIgnoringRequests = rs.getBoolean("is_ignoring_requests");
|
||||
ps.close();
|
||||
return isIgnoringRequests;
|
||||
}
|
||||
} else {
|
||||
Bukkit.getLogger().severe("Failed to retrieve if player was ignoring teleport requests");
|
||||
}
|
||||
ps.close();
|
||||
return null;
|
||||
}
|
||||
|
||||
// Return a player's UUID
|
||||
public static String getPlayerUUID(int playerID, Connection connection) throws SQLException {
|
||||
return getPlayerString(playerID, "user_uuid", connection);
|
||||
@@ -373,7 +394,7 @@ public class DataManager {
|
||||
ps.close();
|
||||
}
|
||||
|
||||
public static void setPlayerTeleportingData(UUID uuid, boolean value, Connection connection) throws SQLException {
|
||||
private static void setPlayerTeleportingData(UUID uuid, boolean value, Connection connection) throws SQLException {
|
||||
PreparedStatement ps;
|
||||
ps = connection.prepareStatement("UPDATE " + HuskHomes.getSettings().getPlayerDataTable() + " SET `is_teleporting`=? WHERE `user_uuid`=?;");
|
||||
ps.setBoolean(1, value);
|
||||
@@ -382,6 +403,15 @@ public class DataManager {
|
||||
ps.close();
|
||||
}
|
||||
|
||||
private static void setPlayerIgnoringRequestsData(UUID uuid, boolean value, Connection connection) throws SQLException {
|
||||
PreparedStatement ps;
|
||||
ps = connection.prepareStatement("UPDATE " + HuskHomes.getSettings().getPlayerDataTable() + " SET `is_ignoring_requests`=? WHERE `user_uuid`=?;");
|
||||
ps.setBoolean(1, value);
|
||||
ps.setString(2, uuid.toString());
|
||||
ps.executeUpdate();
|
||||
ps.close();
|
||||
}
|
||||
|
||||
public static void setPlayerHomeSlots(UUID uuid, int newValue, Connection connection) throws SQLException {
|
||||
PreparedStatement ps;
|
||||
ps = connection.prepareStatement("UPDATE " + HuskHomes.getSettings().getPlayerDataTable() + " SET `home_slots`=? WHERE `user_uuid`=?;");
|
||||
@@ -735,6 +765,10 @@ public class DataManager {
|
||||
setPlayerTeleportingData(p.getUniqueId(), value, connection);
|
||||
}
|
||||
|
||||
public static void setPlayerIgnoringRequests(Player p, boolean value, Connection connection) throws SQLException {
|
||||
setPlayerIgnoringRequestsData(p.getUniqueId(), value, connection);
|
||||
}
|
||||
|
||||
public static void updateRtpCooldown(Player p, Connection connection) throws SQLException {
|
||||
long currentTime = Instant.now().getEpochSecond();
|
||||
int newCoolDownTime = (int) currentTime + (60 * HuskHomes.getSettings().getRtpCoolDown());
|
||||
|
||||
@@ -33,6 +33,7 @@ public class MySQL extends Database {
|
||||
"`is_teleporting` boolean NOT NULL DEFAULT 0," +
|
||||
"`dest_location_id` integer NULL," +
|
||||
"`last_location_id` integer NULL," +
|
||||
"`is_ignoring_requests` boolean NOT NULL DEFAULT 0," +
|
||||
|
||||
"PRIMARY KEY (`player_id`)," +
|
||||
"FOREIGN KEY (`dest_location_id`) REFERENCES " + HuskHomes.getSettings().getLocationsDataTable() + " (`location_id`) ON DELETE SET NULL ON UPDATE NO ACTION," +
|
||||
|
||||
@@ -35,6 +35,7 @@ public class SQLite extends Database {
|
||||
"`is_teleporting` boolean NOT NULL DEFAULT 0," +
|
||||
"`dest_location_id` integer NULL," +
|
||||
"`last_location_id` integer NULL," +
|
||||
"`is_ignoring_requests` boolean NOT NULL DEFAULT 0," +
|
||||
"PRIMARY KEY (`player_id`)," +
|
||||
"FOREIGN KEY (`dest_location_id`) REFERENCES " + HuskHomes.getSettings().getLocationsDataTable() + " (`location_id`) ON DELETE SET NULL ON UPDATE NO ACTION," +
|
||||
"FOREIGN KEY (`last_location_id`) REFERENCES " + HuskHomes.getSettings().getLocationsDataTable() + " (`location_id`) ON DELETE SET NULL ON UPDATE NO ACTION" +
|
||||
|
||||
@@ -61,6 +61,13 @@ public class PlayerListener implements Listener {
|
||||
HomeCommand.Tab.updatePlayerHomeCache(p);
|
||||
}
|
||||
|
||||
final Boolean isIgnoringRequests = DataManager.getPlayerIgnoringRequests(p, connection);
|
||||
if (isIgnoringRequests != null) {
|
||||
if (isIgnoringRequests) {
|
||||
HuskHomes.setIgnoringTeleportRequests(p.getUniqueId());
|
||||
}
|
||||
}
|
||||
|
||||
// If bungee mode, check if the player joined the server from a teleport and act accordingly
|
||||
if (HuskHomes.getSettings().doBungee()) {
|
||||
final Boolean isTeleporting = DataManager.getPlayerTeleporting(p, connection);
|
||||
|
||||
@@ -45,16 +45,20 @@ public class PluginMessageListener implements org.bukkit.plugin.messaging.Plugin
|
||||
}
|
||||
case TPA_REQUEST -> {
|
||||
if (!VanishChecker.isVanished(recipient)) {
|
||||
TeleportRequestHandler.teleportRequests.put(recipient, new TeleportRequest(pluginMessage.getMessageData(), TeleportRequest.RequestType.TPA));
|
||||
MessageManager.sendMessage(recipient, "tpa_request_ask", pluginMessage.getMessageData());
|
||||
MessageManager.sendMessage(recipient, "teleport_request_options");
|
||||
if (!HuskHomes.isIgnoringTeleportRequests(recipient.getUniqueId())) {
|
||||
TeleportRequestHandler.teleportRequests.put(recipient, new TeleportRequest(pluginMessage.getMessageData(), TeleportRequest.RequestType.TPA));
|
||||
MessageManager.sendMessage(recipient, "tpa_request_ask", pluginMessage.getMessageData());
|
||||
MessageManager.sendMessage(recipient, "teleport_request_options");
|
||||
}
|
||||
}
|
||||
}
|
||||
case TPAHERE_REQUEST -> {
|
||||
if (!VanishChecker.isVanished(recipient)) {
|
||||
TeleportRequestHandler.teleportRequests.put(recipient, new TeleportRequest(pluginMessage.getMessageData(), TeleportRequest.RequestType.TPAHERE));
|
||||
MessageManager.sendMessage(recipient, "tpahere_request_ask", pluginMessage.getMessageData());
|
||||
MessageManager.sendMessage(recipient, "teleport_request_options");
|
||||
if (!HuskHomes.isIgnoringTeleportRequests(recipient.getUniqueId())) {
|
||||
TeleportRequestHandler.teleportRequests.put(recipient, new TeleportRequest(pluginMessage.getMessageData(), TeleportRequest.RequestType.TPAHERE));
|
||||
MessageManager.sendMessage(recipient, "tpahere_request_ask", pluginMessage.getMessageData());
|
||||
MessageManager.sendMessage(recipient, "teleport_request_options");
|
||||
}
|
||||
}
|
||||
}
|
||||
case TPA_REQUEST_REPLY -> {
|
||||
|
||||
@@ -0,0 +1,36 @@
|
||||
package me.william278.huskhomes2.migrators;
|
||||
|
||||
import me.william278.huskhomes2.HuskHomes;
|
||||
import org.bukkit.Bukkit;
|
||||
|
||||
import java.sql.PreparedStatement;
|
||||
import java.sql.SQLException;
|
||||
import java.util.logging.Level;
|
||||
|
||||
public class UpgradeDatabase {
|
||||
|
||||
private static final HuskHomes plugin = HuskHomes.getInstance();
|
||||
|
||||
// Upgrade the database system if the config file version is not high enough
|
||||
public static void upgradeDatabase() {
|
||||
plugin.reloadConfig();
|
||||
if (plugin.getConfig().getInt("config_file_version", 1) <= 5) {
|
||||
plugin.getLogger().info("Detected that the database needs updating. Running database upgrade...");
|
||||
Bukkit.getScheduler().runTaskAsynchronously(plugin, () -> {
|
||||
try (PreparedStatement statement = HuskHomes.getConnection().prepareStatement("ALTER TABLE " + HuskHomes.getSettings().getPlayerDataTable() + " ADD `is_ignoring_requests` boolean NOT NULL DEFAULT 0")) {
|
||||
statement.executeUpdate();
|
||||
plugin.getLogger().info("Database update complete!");
|
||||
} catch (SQLException e) {
|
||||
plugin.getLogger().log(Level.SEVERE, "An SQL exception occurred upgrading the database format!", e);
|
||||
} finally {
|
||||
// Update the config file version
|
||||
Bukkit.getScheduler().runTask(plugin, () -> {
|
||||
plugin.getConfig().set("config_file_version", 6);
|
||||
plugin.saveConfig();
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -42,10 +42,12 @@ public class TeleportRequestHandler {
|
||||
if (targetPlayer != null) {
|
||||
if (targetPlayer.getUniqueId() != requester.getUniqueId()) {
|
||||
if (!VanishChecker.isVanished(targetPlayer)) {
|
||||
teleportRequests.put(targetPlayer, new TeleportRequest(requester.getName(), TeleportRequest.RequestType.TPA));
|
||||
MessageManager.sendMessage(requester, "tpa_request_sent", targetPlayerName);
|
||||
MessageManager.sendMessage(targetPlayer, "tpa_request_ask", requester.getName());
|
||||
MessageManager.sendMessage(targetPlayer, "teleport_request_options");
|
||||
if (!HuskHomes.isIgnoringTeleportRequests(targetPlayer.getUniqueId())) {
|
||||
teleportRequests.put(targetPlayer, new TeleportRequest(requester.getName(), TeleportRequest.RequestType.TPA));
|
||||
MessageManager.sendMessage(targetPlayer, "tpa_request_ask", requester.getName());
|
||||
MessageManager.sendMessage(targetPlayer, "teleport_request_options");
|
||||
}
|
||||
} else {
|
||||
MessageManager.sendMessage(requester, "error_player_not_found", targetPlayerName);
|
||||
}
|
||||
@@ -66,10 +68,12 @@ public class TeleportRequestHandler {
|
||||
Player targetPlayer = Bukkit.getPlayer(targetPlayerName);
|
||||
if (targetPlayer != null) {
|
||||
if (targetPlayer.getUniqueId() != requester.getUniqueId()) {
|
||||
teleportRequests.put(targetPlayer, new TeleportRequest(requester.getName(), TeleportRequest.RequestType.TPAHERE));
|
||||
MessageManager.sendMessage(requester, "tpahere_request_sent", targetPlayerName);
|
||||
MessageManager.sendMessage(targetPlayer, "tpahere_request_ask", requester.getName());
|
||||
MessageManager.sendMessage(targetPlayer, "teleport_request_options");
|
||||
if (!HuskHomes.isIgnoringTeleportRequests(targetPlayer.getUniqueId())) {
|
||||
teleportRequests.put(targetPlayer, new TeleportRequest(requester.getName(), TeleportRequest.RequestType.TPAHERE));
|
||||
MessageManager.sendMessage(targetPlayer, "tpahere_request_ask", requester.getName());
|
||||
MessageManager.sendMessage(targetPlayer, "teleport_request_options");
|
||||
}
|
||||
} else {
|
||||
MessageManager.sendMessage(requester, "error_tp_self");
|
||||
}
|
||||
@@ -88,6 +92,10 @@ public class TeleportRequestHandler {
|
||||
MessageManager.sendMessage(p, "error_tpa_no_pending_request");
|
||||
return;
|
||||
}
|
||||
if (HuskHomes.isIgnoringTeleportRequests(p.getUniqueId())) {
|
||||
MessageManager.sendMessage(p, "error_ignoring_teleport_requests");
|
||||
return;
|
||||
}
|
||||
TeleportRequest teleportRequest = teleportRequests.get(p);
|
||||
if (teleportRequest.isExpired()) {
|
||||
teleportRequests.remove(p);
|
||||
|
||||
@@ -102,4 +102,7 @@ page_options_min_max: '\n[Viewing Page %1%/%2%](#00fb9a)'
|
||||
page_options_max: '\n[←](gray show_text=&7View previous page run_command=%1%) [Viewing Page %2%/%3%](#00fb9a)'
|
||||
page_no_items: '[(No items to display on this page)](gray show_text=&7Try a different page number)'
|
||||
command_list_header: '\n[HuskHomes](#00fb9a bold) [| Command List](#00fb9a)'
|
||||
error_invalid_on_arrival: '[Error:](#ff3300) [Failed to finish your teleportation as the target world could not be found.](#ff7e5e)'
|
||||
error_invalid_on_arrival: '[Error:](#ff3300) [Failed to finish your teleportation as the target world could not be found.](#ff7e5e)'
|
||||
tpignore_toggle_on: '[You are now](#00fb9a) [ignoring](#00fb9a bold) [incoming teleport requests.](#00fb9a) [(Click to toggle)](gray show_text=&7Click to listen for incoming teleport requests run_command=/huskhomes:tpignore)'
|
||||
tpignore_toggle_off: '[You are now](#00fb9a) [listening](#00fb9a bold) [to any incoming teleport requests.](#00fb9a) [(Click to toggle)](gray show_text=&7Click to ignore incoming teleport requests run_command=/huskhomes:tpignore)'
|
||||
error_ignoring_teleport_requests: '[Error:](#ff3300) [You are currently ignoring teleport requests!](#ff7e5e) [(Click to toggle)](#ff7e5e show_text=&#ff7e5e&Click to listen for incoming teleport requests run_command=/huskhomes:tpignore)'
|
||||
@@ -103,3 +103,6 @@ page_options_max: '\n[←](gray show_text=&7Pagina precedente run_command=%1%) [
|
||||
page_no_items: '[(Nessun oggetto visibile in questa pagina)](gray show_text=&7Prova un numero differente)'
|
||||
command_list_header: '\n[HuskHomes](#00fb9a bold) [| Comandi](#00fb9a)'
|
||||
error_invalid_on_arrival: '[Errore:](#ff3300) [Non sono riuscito a teletrasportarti perché il mondo non è caricato correttamente.](#ff7e5e)'
|
||||
tpignore_toggle_on: '[You are now](#00fb9a) [ignoring](#00fb9a bold) [incoming teleport requests.](#00fb9a) [(Click to toggle)](gray show_text=&7Click to listen for incoming teleport requests run_command=/huskhomes:tpignore)'
|
||||
tpignore_toggle_off: '[You are now](#00fb9a) [listening](#00fb9a bold) [to any incoming teleport requests.](#00fb9a) [(Click to toggle)](gray show_text=&7Click to ignore incoming teleport requests run_command=/huskhomes:tpignore)'
|
||||
error_ignoring_teleport_requests: '[Error:](#ff3300) [You are currently ignoring teleport requests!](#ff7e5e) [(Click to toggle)](#ff7e5e show_text=&#ff7e5e&Click to listen for incoming teleport requests run_command=/huskhomes:tpignore)'
|
||||
@@ -86,4 +86,4 @@ economy_integration:
|
||||
random_teleport: 20
|
||||
back: 0
|
||||
handle_vanished_players: true
|
||||
config_file_version: 5
|
||||
config_file_version: 6
|
||||
@@ -95,6 +95,11 @@ commands:
|
||||
usage: /tpdeny
|
||||
permission: huskhomes.tprequest
|
||||
aliases: [tpno]
|
||||
tpignore:
|
||||
description: Ignore incoming teleport requests
|
||||
usage: /tpignore
|
||||
permission: huskhomes.tpignore
|
||||
aliases: [tpaignore, ignoretprequests]
|
||||
rtp:
|
||||
description: Teleport randomly into the wild
|
||||
usage: /rtp
|
||||
@@ -177,13 +182,13 @@ permissions:
|
||||
default: true
|
||||
huskhomes.warp.*:
|
||||
description: Lets you access all warps even if permission-restricted
|
||||
default: false
|
||||
default: op
|
||||
huskhomes.setwarp:
|
||||
description: Allows you to set server warps
|
||||
default: false
|
||||
default: op
|
||||
huskhomes.delwarp:
|
||||
description: Allows you to delete a home
|
||||
default: false
|
||||
default: op
|
||||
huskhomes.publichome:
|
||||
description: Allows you to teleport to public homes
|
||||
default: true
|
||||
@@ -192,13 +197,13 @@ permissions:
|
||||
default: true
|
||||
huskhomes.editwarp:
|
||||
description: Allows you to edit home information
|
||||
default: false
|
||||
default: op
|
||||
huskhomes.back:
|
||||
description: Allows you to return to your last position
|
||||
default: true
|
||||
huskhomes.rtp:
|
||||
description: Allows you to randomly teleport
|
||||
default: false
|
||||
default: true
|
||||
huskhomes.rtp.bypass_cooldown:
|
||||
description: Allows you to bypass the /rtp cooldown
|
||||
default: false
|
||||
@@ -209,16 +214,19 @@ permissions:
|
||||
default: true
|
||||
huskhomes.reload:
|
||||
description: Reload the plugin configuration & messages files
|
||||
default: false
|
||||
default: op
|
||||
huskhomes.version_checker:
|
||||
description: Check if the plugin is up-to-date
|
||||
default: false
|
||||
default: op
|
||||
huskhomes.tp:
|
||||
description: Allows you to directly teleport to players or locations
|
||||
default: false
|
||||
huskhomes.tprequest:
|
||||
description: Allows you to request to teleport to a player
|
||||
default: true
|
||||
huskhomes.tpignore:
|
||||
description: Allows you to ingore teleport requests
|
||||
default: true
|
||||
huskhomes.back.death:
|
||||
description: Allows you to return to where you died
|
||||
default: true
|
||||
@@ -227,7 +235,7 @@ permissions:
|
||||
default: true
|
||||
huskhomes.spawn.set:
|
||||
description: Allows you to set the spawn location
|
||||
default: false
|
||||
default: op
|
||||
children:
|
||||
huskhomes.spawn: true
|
||||
huskhomes.edithome.public:
|
||||
|
||||
Reference in new issue
Block a user