Skip to content

Commit 4ea9139

Browse files
committed
Super super minor fixes
1 parent 3555fbb commit 4ea9139

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

API/src/main/java/me/ifydev/dimensify/api/DimensifyConstants.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ public class DimensifyConstants {
6767
public static final String PORTAL_NAME_ALREADY_USED = DIMENSIFY_PREFIX + "&c&lPortal name '<NAME>' already used!";
6868
public static final String CANNOT_DELETE_MAIN_WORLD = DIMENSIFY_PREFIX + "&c&lCannot delete the main world!";
6969
public static final String COULD_NOT_CONNECT_TO_DATABASE = DIMENSIFY_PREFIX + "&c&lCannot connect to the database!";
70-
public static final String CANNOT_ENTER_THIS_DIMENSION = DIMENSIFY_PREFIX + "&c&lYou don't have permission to enter this domain!";
70+
public static final String CANNOT_ENTER_THIS_DIMENSION = DIMENSIFY_PREFIX + "&c&lYou don't have permission to enter this dimension!";
7171
public static final String THIS_DIMENSION_DOES_NOT_EXIST_ANYMORE = DIMENSIFY_PREFIX + "&c&lThis dimension does not exist anymore!";
7272
public static final String COULD_NOT_SET_DEFAULT_WORLD = DIMENSIFY_PREFIX + "&2&lCould not set default world.";
7373
public static final String COULD_NOT_UNLOAD_DIMENSION = DIMENSIFY_PREFIX + "&2&lCould not unload dimension!";

DimensifySpigot/src/main/java/me/ifydev/dimensifyspigot/commands/DimensifyCommand.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,6 @@ public boolean onCommand(CommandSender sender, Command command, String s, String
202202
String response = ColorUtil.makeReadable(PortalHandler.linkPortal(portal, destination));
203203
sender.sendMessage(response);
204204
});
205-
206205
} else if (args[1].equalsIgnoreCase("list")) {
207206
if (!sender.hasPermission(DimensifyConstants.DIMENSIFY_LIST_PORTALS)) {
208207
sender.sendMessage(ColorUtil.makeReadable(DimensifyConstants.YOU_DONT_HAVE_PERMISSION));
@@ -267,7 +266,7 @@ public boolean onCommand(CommandSender sender, Command command, String s, String
267266
String result = ColorUtil.makeReadable(BasicHandler.unloadDimension(dimension, save));
268267
sender.sendMessage(result);
269268
});
270-
}
269+
} else sendHelp(sender);
271270
});
272271

273272
return false;

DimensifySpigot/src/main/java/me/ifydev/dimensifyspigot/world/WorldController.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ public static void enterDimension(Player player, World dimension) {
112112
DimensifyMain plugin = DimensifyMain.get();
113113

114114
if (plugin.isPermissionRestrictDimensions()) {
115-
boolean playerIsAllowedToEnterDimension = player.hasPermission("dimension." + dimension + ".allow") || plugin.isAllowEntryByDefault();
115+
boolean playerIsAllowedToEnterDimension = (player.hasPermission("dimension." + dimension.getName() + ".allow") && !player.hasPermission("dimension." + dimension.getName() + ".deny")) || plugin.isAllowEntryByDefault();
116116
if (!playerIsAllowedToEnterDimension) {
117117
player.sendMessage(ColorUtil.makeReadable(DimensifyConstants.CANNOT_ENTER_THIS_DIMENSION));
118118
return;

0 commit comments

Comments
 (0)