Set permission for unwatching plugin the same as 'su watchplugin'
This commit is contained in:
parent
095cad4ed0
commit
f604eaeb4d
2 changed files with 2 additions and 2 deletions
|
|
@ -260,7 +260,7 @@ public class CommandServerUtils extends BaseCommand {
|
|||
*/
|
||||
@Subcommand("unwatchplugin")
|
||||
@CommandCompletion("@plugins")
|
||||
@CommandPermission("serverutils.unwatchplugin")
|
||||
@CommandPermission("serverutils.watchplugin")
|
||||
@Description("Stops watching the specified plugin for changes.")
|
||||
public void onUnwatchPlugin(CommandSender sender, String pluginName) {
|
||||
AbstractResult result = BukkitPluginManager.get().unwatchPlugin(pluginName);
|
||||
|
|
|
|||
|
|
@ -173,7 +173,7 @@ public class CommandServerUtils extends BaseCommand {
|
|||
*/
|
||||
@Subcommand("unwatchplugin")
|
||||
@CommandCompletion("@plugins")
|
||||
@CommandPermission("serverutils.unwatchplugin")
|
||||
@CommandPermission("serverutils.watchplugin")
|
||||
@Description("Stops watching the specified plugin for changes.")
|
||||
public void onUnwatchPlugin(CommandSender sender, String pluginName) {
|
||||
AbstractResult result = BungeePluginManager.get().unwatchPlugin(pluginName);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue