Class Groups

java.lang.Object
ua.mcchickenstudio.opencreative.settings.groups.Groups

public final class Groups extends Object

Groups

This class represents a set of groups, it's used when getting player's or world's owner group to get some limits or modifiers.
  • Constructor Details

    • Groups

      public Groups()
  • Method Details

    • load

      public void load()
    • getDefaultGroup

      @NotNull public @NotNull Group getDefaultGroup()
    • getGroup

      @NotNull public @NotNull Group getGroup(String name)
    • getGroupOrNull

      @Nullable public @Nullable Group getGroupOrNull(String name)
    • getGroup

      @NotNull public @NotNull Group getGroup(org.bukkit.entity.Player player)
    • registerGroup

      public void registerGroup(Group group)
    • getNames

      @NotNull public @NotNull Set<String> getNames()
    • deleteGroup

      public boolean deleteGroup(@NotNull @NotNull String groupName)
    • setLimit

      public boolean setLimit(@NotNull @NotNull String groupName, @NotNull @NotNull LimitType type, int value)
    • setLimitModifier

      public boolean setLimitModifier(@NotNull @NotNull String groupName, @NotNull @NotNull LimitType type, int value)