-
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
updates. override /reload (to disable it), fix command unregistering …
…in phases, make user prefix/suffix application adhere to the config value for the role system
- Loading branch information
Showing
4 changed files
with
34 additions
and
7 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
26 changes: 26 additions & 0 deletions
26
src/main/java/me/minidigger/voxelgameslib/commands/OverrideCommands.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,26 @@ | ||
package me.minidigger.voxelgameslib.commands; | ||
|
||
import javax.inject.Singleton; | ||
|
||
import org.bukkit.ChatColor; | ||
import org.bukkit.command.CommandSender; | ||
|
||
import co.aikar.commands.BaseCommand; | ||
import co.aikar.commands.annotation.CommandAlias; | ||
import co.aikar.commands.annotation.CommandPermission; | ||
import lombok.extern.java.Log; | ||
|
||
/** | ||
* This class overrides core Bukkit commands as necessary. | ||
*/ | ||
@Singleton | ||
@Log | ||
@SuppressWarnings("JavaDoc") // commands don't need javadoc, go read the command's descriptions | ||
public class OverrideCommands extends BaseCommand { | ||
|
||
@CommandAlias("reload") | ||
@CommandPermission("bukkit.command.reload") // don't change the access for this command | ||
public void reload(CommandSender sender) { | ||
sender.sendMessage(ChatColor.RED + "This command has been disabled by VoxelGamesLib, as it will break the framework from functioning."); | ||
} | ||
} |
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