Skip to content

Commit

Permalink
flags
Browse files Browse the repository at this point in the history
  • Loading branch information
Angeschossen committed Jan 7, 2025
1 parent 3aba267 commit baa9edb
Show file tree
Hide file tree
Showing 8 changed files with 30 additions and 12 deletions.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
group = "com.github.angeschossen"
version = "1.1.2"
version = "1.1.3"
description = "PluginFrameworkAPI"

plugins {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.github.angeschossen.pluginframework.api.flags.roles;
package com.github.angeschossen.pluginframework.api.flags;

import org.bukkit.plugin.Plugin;
import org.jetbrains.annotations.NotNull;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.github.angeschossen.pluginframework.api.flags.roles;
package com.github.angeschossen.pluginframework.api.flags;

import com.github.angeschossen.pluginframework.api.player.PlayerData;
import com.github.angeschossen.pluginframework.api.utils.Checks;
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
package com.github.angeschossen.pluginframework.api.flags;

import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

import java.util.Collection;

public interface FlagRegistry<A extends ActionFlag, B extends ManagementFlag> {

@NotNull Collection<A> getActionFlags();

@NotNull Collection<B> getManagementFlags();

@Nullable Flag getFlagByName(@NotNull String name);

@NotNull
<T extends Flag> T registerFlag(@NotNull T flag) throws IllegalArgumentException;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
package com.github.angeschossen.pluginframework.api.flags;

public enum FlagType {
ACTION, MANAGEMENT
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.github.angeschossen.pluginframework.api.flags.roles;
package com.github.angeschossen.pluginframework.api.flags;

import org.bukkit.plugin.Plugin;
import org.jetbrains.annotations.NotNull;
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package com.github.angeschossen.pluginframework.api.trusted;

import com.github.angeschossen.pluginframework.api.flags.roles.ManagementFlag;
import com.github.angeschossen.pluginframework.api.flags.roles.ActionFlag;
import com.github.angeschossen.pluginframework.api.flags.roles.Flag;
import com.github.angeschossen.pluginframework.api.flags.ManagementFlag;
import com.github.angeschossen.pluginframework.api.flags.ActionFlag;
import com.github.angeschossen.pluginframework.api.flags.Flag;
import net.md_5.bungee.api.ChatColor;
import org.bukkit.entity.Player;

Expand Down

0 comments on commit baa9edb

Please sign in to comment.