mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2024-11-24 03:35:11 +01:00
Fixed indent and javadoc from previous commit
This commit is contained in:
parent
8ce47772c2
commit
b4fe70da0c
@ -1,22 +1,21 @@
|
||||
package world.bentobox.bentobox.managers;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Optional;
|
||||
|
||||
import org.bukkit.Bukkit;
|
||||
import org.bukkit.event.HandlerList;
|
||||
import org.bukkit.event.Listener;
|
||||
import org.eclipse.jdt.annotation.NonNull;
|
||||
import org.eclipse.jdt.annotation.Nullable;
|
||||
|
||||
import world.bentobox.bentobox.BentoBox;
|
||||
import world.bentobox.bentobox.api.addons.Addon;
|
||||
import world.bentobox.bentobox.api.flags.Flag;
|
||||
import world.bentobox.bentobox.lists.Flags;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
* @author Poslovitch
|
||||
* @author tastybento
|
||||
@ -42,17 +41,18 @@ public class FlagsManager {
|
||||
}
|
||||
|
||||
/**
|
||||
* Register a new flag.
|
||||
* Registers a new flag.
|
||||
* Consider using {@link #registerFlag(Addon, Flag)} instead if your flag declares a listener.
|
||||
* @param flag flag to be registered
|
||||
* @return true if successfully registered, false if not, e.g., because one with the same ID already exists
|
||||
* @see Consider using {@link #registerFlag(Addon, Flag)} instead if your flag declares a listener
|
||||
* @see #registerFlag(Addon, Flag)
|
||||
*/
|
||||
public boolean registerFlag(@NonNull Flag flag) {
|
||||
return registerFlag(null, flag);
|
||||
}
|
||||
|
||||
/**
|
||||
* Register a new flag.
|
||||
* Registers a new flag.
|
||||
* @param addon - addon that is registering this flag
|
||||
* @param flag flag to be registered
|
||||
* @return true if successfully registered, false if not, e.g., because one with the same ID already exists
|
||||
|
Loading…
Reference in New Issue
Block a user