-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #112 from Nookure/dev
Release 1.2.2
- Loading branch information
Showing
32 changed files
with
2,343 additions
and
70 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
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
33 changes: 33 additions & 0 deletions
33
.../src/main/java/com/nookure/staff/api/config/bukkit/partials/StaffModeBlockedCommands.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,33 @@ | ||
package com.nookure.staff.api.config.bukkit.partials; | ||
|
||
import org.spongepowered.configurate.objectmapping.ConfigSerializable; | ||
import org.spongepowered.configurate.objectmapping.meta.Comment; | ||
import org.spongepowered.configurate.objectmapping.meta.Setting; | ||
|
||
import java.util.List; | ||
|
||
@ConfigSerializable | ||
public class StaffModeBlockedCommands { | ||
@Setting | ||
@Comment(""" | ||
The message that is sent to a player when they try to use a blocked command while in staff mode. | ||
This message is sent to the player when they try to use a command that is in the blockedCommands list. | ||
""") | ||
private String blockedCommandUsage = "You are not allowed to use this command while in staff mode."; | ||
|
||
@Setting | ||
@Comment(""" | ||
A list of commands that are blocked when a player is in staff mode. | ||
This is useful for preventing staff members from using commands that could give them an unfair advantage. | ||
You can bypass this by giving the player the permission 'nookure.staff.mode.commands.bypass'. | ||
""") | ||
private List<String> blockedCommands = List.of("yourcommand1", "yourcommand2", "yourcommand3"); | ||
|
||
public String getBlockedCommandUsage() { | ||
return blockedCommandUsage; | ||
} | ||
|
||
public List<String> getBlockedCommands() { | ||
return blockedCommands; | ||
} | ||
} |
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
Oops, something went wrong.