-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
90 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
package xyz.refinedev.phoenix.utils; | ||
|
||
import lombok.experimental.UtilityClass; | ||
import org.bukkit.command.CommandSender; | ||
import org.bukkit.plugin.IllegalPluginAccessException; | ||
import xyz.refinedev.phoenix.profile.Profile; | ||
import xyz.refinedev.phoenix.profile.grant.Grant; | ||
import xyz.refinedev.phoenix.rank.Rank; | ||
import xyz.refinedev.phoenix.scope.Scope; | ||
|
||
import java.util.List; | ||
|
||
/** | ||
* @author Creaxx | ||
* Created At: 09/11/2023 | ||
*/ | ||
|
||
@UtilityClass | ||
public class GrantUtil { | ||
public boolean canEdit(CommandSender sender, Profile target) { | ||
throw new IllegalPluginAccessException("You need to install the plugin."); | ||
} | ||
|
||
public void giveRank(CommandSender sender, Profile target, long duration, boolean permanent, String reason, Rank rank, List<Scope> scopes) { | ||
throw new IllegalPluginAccessException("You need to install the plugin."); | ||
} | ||
|
||
public void takeRank(CommandSender sender, Profile target, Grant grant, String reason) { | ||
throw new IllegalPluginAccessException("You need to install the plugin."); | ||
} | ||
} |
59 changes: 59 additions & 0 deletions
59
src/main/java/xyz/refinedev/phoenix/utils/PunishmentUtil.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
package xyz.refinedev.phoenix.utils; | ||
|
||
import lombok.experimental.UtilityClass; | ||
import org.bukkit.command.CommandSender; | ||
import org.bukkit.plugin.IllegalPluginAccessException; | ||
import xyz.refinedev.phoenix.profile.Profile; | ||
import xyz.refinedev.phoenix.profile.punishment.Punishment; | ||
|
||
import java.util.UUID; | ||
import java.util.concurrent.atomic.AtomicBoolean; | ||
|
||
/** | ||
* @author Creaxx | ||
* Created At: 09/11/2023 | ||
*/ | ||
|
||
@UtilityClass | ||
public class PunishmentUtil { | ||
public boolean containsSilent(String reason) { | ||
throw new IllegalPluginAccessException("You need to install the plugin."); | ||
} | ||
|
||
public String sanitizeReason(String reason, String defaultReason) { | ||
throw new IllegalPluginAccessException("You need to install the plugin."); | ||
} | ||
|
||
public void execute(CommandSender sender, Punishment punishment) { | ||
throw new IllegalPluginAccessException("You need to install the plugin."); | ||
} | ||
|
||
public void executeAsync(CommandSender sender, Punishment punishment) { | ||
throw new IllegalPluginAccessException("You need to install the plugin."); | ||
} | ||
|
||
public void executeUnpunish(CommandSender sender, Punishment punishment) { | ||
throw new IllegalPluginAccessException("You need to install the plugin."); | ||
} | ||
|
||
public boolean canPunish(CommandSender sender, Profile target, AtomicBoolean vsilent) { | ||
throw new IllegalPluginAccessException("You need to install the plugin."); | ||
} | ||
|
||
public String replaceKickUnpunishMessage(String s, Punishment punishment) { | ||
throw new IllegalPluginAccessException("You need to install the plugin."); | ||
} | ||
|
||
public String getAltColor(UUID uuid) { | ||
throw new IllegalPluginAccessException("You need to install the plugin."); | ||
} | ||
|
||
public String getAltColor(Profile profile) { | ||
throw new IllegalPluginAccessException("You need to install the plugin."); | ||
} | ||
|
||
public String getAltStatus(Profile profile) { | ||
throw new IllegalPluginAccessException("You need to install the plugin."); | ||
} | ||
|
||
} |