Fix some related checkstyles

This commit is contained in:
Ben Woo 2023-09-21 11:47:20 +08:00
parent 980d6784df
commit 5db5b948cc
No known key found for this signature in database
GPG Key ID: FB2A3645536E12C8
4 changed files with 32 additions and 9 deletions

View File

@ -40,6 +40,7 @@ public interface BlockSafety {
/**
* Finds a portal-block next to the specified {@link Location}.
*
* @param location The {@link Location}
* @return The next portal-block's {@link Location}.
*/

View File

@ -44,6 +44,5 @@ public interface Destination<T extends DestinationInstance> {
*
* @return True if the SafeTeleporter will be used, false if not.
*/
// TODO: Check this in AsyncSafetyTeleporter
boolean checkTeleportSafety();
}

View File

@ -74,8 +74,8 @@ class DeleteCommand extends MultiverseCommand {
issuer.getIssuer(),
() -> {
runDeleteCommand(issuer, world, parsedFlags);
}, this.commandManager.formatMessage(
issuer, MessageType.INFO, MVCorei18n.DELETE_PROMPT, "{world}", world.getName())));
}, this.commandManager.formatMessage(issuer, MessageType.INFO, MVCorei18n.DELETE_PROMPT,
"{world}", world.getName())));
}
private void runDeleteCommand(MVCommandIssuer issuer, LoadedMultiverseWorld world, ParsedCommandFlags parsedFlags) {

View File

@ -1,9 +1,32 @@
package org.mvplugins.multiverse.core.permissions;
public class CorePermissions {
public static String WORLD_ACCESS = "multiverse.access";
public static String WORLD_EXEMPT = "multiverse.exempt";
public static String GAMEMODE_BYPASS = "mv.bypass.gamemode";
public static String PLAYERLIMIT_BYPASS = "mv.bypass.playerlimit";
public static final String TELEPORT = "multiverse.teleport";
final class CorePermissions {
/**
* Permission to access a world.
*/
static final String WORLD_ACCESS = "multiverse.access";
/**
* Permission to bypass the entry fee of a world.
*/
static final String WORLD_EXEMPT = "multiverse.exempt";
/**
* Permission to bypass the gamemode of a world.
*/
static final String GAMEMODE_BYPASS = "mv.bypass.gamemode";
/**
* Permission to bypass the player limit of a world.
*/
static final String PLAYERLIMIT_BYPASS = "mv.bypass.playerlimit";
/**
* Permission to teleport to a destination.
*/
static final String TELEPORT = "multiverse.teleport";
private CorePermissions() {
// Prevent instantiation as this is a static utility class
}
}