mirror of
https://github.com/Multiverse/Multiverse-Core.git
synced 2025-01-10 10:17:41 +01:00
Fix some related checkstyles
This commit is contained in:
parent
980d6784df
commit
5db5b948cc
@ -40,6 +40,7 @@ public interface BlockSafety {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Finds a portal-block next to the specified {@link Location}.
|
* Finds a portal-block next to the specified {@link Location}.
|
||||||
|
*
|
||||||
* @param location The {@link Location}
|
* @param location The {@link Location}
|
||||||
* @return The next portal-block's {@link Location}.
|
* @return The next portal-block's {@link Location}.
|
||||||
*/
|
*/
|
||||||
|
@ -44,6 +44,5 @@ public interface Destination<T extends DestinationInstance> {
|
|||||||
*
|
*
|
||||||
* @return True if the SafeTeleporter will be used, false if not.
|
* @return True if the SafeTeleporter will be used, false if not.
|
||||||
*/
|
*/
|
||||||
// TODO: Check this in AsyncSafetyTeleporter
|
|
||||||
boolean checkTeleportSafety();
|
boolean checkTeleportSafety();
|
||||||
}
|
}
|
||||||
|
@ -74,8 +74,8 @@ class DeleteCommand extends MultiverseCommand {
|
|||||||
issuer.getIssuer(),
|
issuer.getIssuer(),
|
||||||
() -> {
|
() -> {
|
||||||
runDeleteCommand(issuer, world, parsedFlags);
|
runDeleteCommand(issuer, world, parsedFlags);
|
||||||
}, this.commandManager.formatMessage(
|
}, this.commandManager.formatMessage(issuer, MessageType.INFO, MVCorei18n.DELETE_PROMPT,
|
||||||
issuer, MessageType.INFO, MVCorei18n.DELETE_PROMPT, "{world}", world.getName())));
|
"{world}", world.getName())));
|
||||||
}
|
}
|
||||||
|
|
||||||
private void runDeleteCommand(MVCommandIssuer issuer, LoadedMultiverseWorld world, ParsedCommandFlags parsedFlags) {
|
private void runDeleteCommand(MVCommandIssuer issuer, LoadedMultiverseWorld world, ParsedCommandFlags parsedFlags) {
|
||||||
|
@ -1,9 +1,32 @@
|
|||||||
package org.mvplugins.multiverse.core.permissions;
|
package org.mvplugins.multiverse.core.permissions;
|
||||||
|
|
||||||
public class CorePermissions {
|
final class CorePermissions {
|
||||||
public static String WORLD_ACCESS = "multiverse.access";
|
/**
|
||||||
public static String WORLD_EXEMPT = "multiverse.exempt";
|
* Permission to access a world.
|
||||||
public static String GAMEMODE_BYPASS = "mv.bypass.gamemode";
|
*/
|
||||||
public static String PLAYERLIMIT_BYPASS = "mv.bypass.playerlimit";
|
static final String WORLD_ACCESS = "multiverse.access";
|
||||||
public static final String TELEPORT = "multiverse.teleport";
|
|
||||||
|
/**
|
||||||
|
* 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
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user