Update v1.1
PoketDimension now Loads Worlds on Load automatically and does not need a world managing plugin to function after a server restart. Additionally some Names were renamed.
This commit is contained in:
@@ -30,7 +30,7 @@ public class pdgamerule implements CommandExecutor, TabCompleter {
|
||||
return true;
|
||||
} else {
|
||||
OfflinePlayer targetPlayer = Bukkit.getOfflinePlayer(args[0]);
|
||||
String worldName = "pocketdimension-" + targetPlayer.getUniqueId().toString();
|
||||
String worldName = "poketdimensions/pocketdimension-" + targetPlayer.getUniqueId().toString();
|
||||
File worldFolder = new File(Bukkit.getWorldContainer(), worldName);
|
||||
if (worldFolder.exists() && worldFolder.isDirectory()) {
|
||||
World targetWorld = Bukkit.getWorld(worldName);
|
||||
@@ -97,7 +97,7 @@ public class pdgamerule implements CommandExecutor, TabCompleter {
|
||||
List<String> suggestions = new ArrayList();
|
||||
if (args.length == 2) {
|
||||
OfflinePlayer targetPlayer = Bukkit.getOfflinePlayer(args[0]);
|
||||
String worldName = "pocketdimension-" + targetPlayer.getUniqueId().toString();
|
||||
String worldName = "poketdimensions/pocketdimension-" + targetPlayer.getUniqueId().toString();
|
||||
World targetWorld = Bukkit.getWorld(worldName);
|
||||
if (targetWorld != null) {
|
||||
for(String gameRule : targetWorld.getGameRules()) {
|
||||
|
||||
Reference in New Issue
Block a user