9
0
mirror of https://gitlab.com/SamB440/rpgregions-2.git synced 2026-01-04 15:31:38 +00:00

Fix multiverse support, add get world uuid command

This commit is contained in:
SamB440
2023-08-02 14:46:25 +01:00
parent 238e5e7ddf
commit a711463956
2 changed files with 7 additions and 1 deletions

View File

@@ -14,6 +14,7 @@ import net.islandearth.rpgregions.thread.Blocking;
import org.apache.commons.lang3.StringUtils;
import org.bukkit.ChatColor;
import org.bukkit.OfflinePlayer;
import org.bukkit.World;
import org.bukkit.command.CommandSender;
import java.sql.Connection;
@@ -92,4 +93,9 @@ public class RPGRegionsDebugCommand {
sender.sendMessage(ChatColor.GREEN + "Successfully removed and saved " + player.getName() + "'s account from the cache.");
});
}
@CommandMethod("rpgregionsdebug|rpgrd worldid <world>")
public void onGetWorldId(CommandSender sender, @Argument("world") World world) {
sender.sendMessage(ChatColor.GREEN + String.valueOf(world.getUID()));
}
}

View File

@@ -10,7 +10,7 @@ libraries:
- "org.xerial:sqlite-jdbc:3.30.1"
- "org.flywaydb:flyway-core:9.16.2" # db migration
- "org.flywaydb:flyway-mysql:9.16.3"
softdepend: [Hyperverse, Multiverse, UltraRegions, WorldGuard, PlaceholderAPI, HeadDatabase, Residence, Plan, GriefPrevention, GriefDefender, Vault, MythicMobs, AlonsoLevels, dynmap, ProtocolLib, Quests, BetonQuest, Lands, MMOCore, CustomStructures]
softdepend: [Hyperverse, Multiverse-Core, UltraRegions, WorldGuard, PlaceholderAPI, HeadDatabase, Residence, Plan, GriefPrevention, GriefDefender, Vault, MythicMobs, AlonsoLevels, dynmap, ProtocolLib, Quests, BetonQuest, Lands, MMOCore, CustomStructures]
authors: [SamB440]
description: Discoverable regions
website: https://fortitude.islandearth.net