mirror of
https://github.com/darksaid98/Builders-Utilities.git
synced 2026-12-03 14:38:48 +00:00
fix: Don't tab complete commands the actor has no permission to
This commit is contained in:
12 files changed
+120
-128
No files matched your search
+1
-1
@@ -1 +1 @@
|
|||||||
* @Brennian
|
* @Brennian
|
||||||
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
# These are supported funding model platforms
|
# These are supported funding model platforms
|
||||||
|
|
||||||
patreon: Arcaniax # Replace with a single Patreon username
|
patreon: Arcaniax # Replace with a single Patreon username
|
||||||
custom: https://www.paypal.me/LesleyDom # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
|
custom: https://www.paypal.me/LesleyDom # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
|
||||||
@@ -8,6 +8,8 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: "Checkout Repository"
|
- name: "Checkout Repository"
|
||||||
uses: "actions/[email protected]"
|
uses: "actions/[email protected]"
|
||||||
|
- name : "Validate Gradle Wrapper"
|
||||||
|
uses : "gradle/[email protected]"
|
||||||
- name : "Grab SHA"
|
- name : "Grab SHA"
|
||||||
uses : "benjlevesque/[email protected]"
|
uses : "benjlevesque/[email protected]"
|
||||||
id : "short-sha"
|
id : "short-sha"
|
||||||
|
|||||||
@@ -1,12 +0,0 @@
|
|||||||
name: "validate gradle wrapper"
|
|
||||||
|
|
||||||
on: ["pull_request", "push"]
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
build:
|
|
||||||
runs-on: "ubuntu-20.04"
|
|
||||||
steps:
|
|
||||||
- name: "Checkout Repository"
|
|
||||||
uses: "actions/[email protected]"
|
|
||||||
- name: "Validate Gradle Wrapper"
|
|
||||||
uses: "gradle/[email protected]"
|
|
||||||
+1
-1
@@ -19,4 +19,4 @@
|
|||||||
GNU General Public License for more details.
|
GNU General Public License for more details.
|
||||||
|
|
||||||
You should have received a copy of the GNU General Public License
|
You should have received a copy of the GNU General Public License
|
||||||
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
@@ -671,4 +671,4 @@ into proprietary programs. If your program is a subroutine library, you
|
|||||||
may consider it more useful to permit linking proprietary applications with
|
may consider it more useful to permit linking proprietary applications with
|
||||||
the library. If this is what you want to do, use the GNU Lesser General
|
the library. If this is what you want to do, use the GNU Lesser General
|
||||||
Public License instead of this License. But first, please read
|
Public License instead of this License. But first, please read
|
||||||
<https://www.gnu.org/philosophy/why-not-lgpl.html>.
|
<https://www.gnu.org/philosophy/why-not-lgpl.html>.
|
||||||
+3
-11
@@ -1,16 +1,13 @@
|
|||||||
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
|
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
|
||||||
import org.cadixdev.gradle.licenser.LicenseExtension
|
import org.cadixdev.gradle.licenser.LicenseExtension
|
||||||
import org.ajoberstar.grgit.Grgit
|
import org.ajoberstar.grgit.Grgit
|
||||||
import org.ec4j.gradle.EditorconfigExtension
|
|
||||||
|
|
||||||
plugins {
|
plugins {
|
||||||
java
|
java
|
||||||
`java-library`
|
|
||||||
|
|
||||||
id("org.cadixdev.licenser") version "0.6.1"
|
id("org.cadixdev.licenser") version "0.6.1"
|
||||||
id("com.github.johnrengelman.shadow") version "7.1.0"
|
id("com.github.johnrengelman.shadow") version "7.1.0"
|
||||||
id("org.ajoberstar.grgit") version "4.1.0"
|
id("org.ajoberstar.grgit") version "4.1.0"
|
||||||
id("org.ec4j.editorconfig") version "0.0.3"
|
|
||||||
|
|
||||||
idea
|
idea
|
||||||
eclipse
|
eclipse
|
||||||
@@ -41,14 +38,14 @@ repositories {
|
|||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
compileOnlyApi("io.papermc.paper:paper-api:1.17.1-R0.1-SNAPSHOT")
|
compileOnly("io.papermc.paper:paper-api:1.17.1-R0.1-SNAPSHOT")
|
||||||
compileOnlyApi("com.mojang:authlib:1.5.25")
|
compileOnly("com.mojang:authlib:1.5.25")
|
||||||
implementation("org.bstats:bstats-bukkit:2.2.1")
|
implementation("org.bstats:bstats-bukkit:2.2.1")
|
||||||
implementation("org.bstats:bstats-base:2.2.1")
|
implementation("org.bstats:bstats-base:2.2.1")
|
||||||
implementation("com.github.cryptomorin:XSeries:8.4.0")
|
implementation("com.github.cryptomorin:XSeries:8.4.0")
|
||||||
implementation("dev.notmyfault.serverlib:ServerLib:2.3.1")
|
implementation("dev.notmyfault.serverlib:ServerLib:2.3.1")
|
||||||
implementation("io.papermc:paperlib:1.0.6")
|
implementation("io.papermc:paperlib:1.0.6")
|
||||||
compileOnlyApi("org.apache.logging.log4j:log4j-api:2.14.1")
|
compileOnly("org.apache.logging.log4j:log4j-api:2.14.1")
|
||||||
}
|
}
|
||||||
|
|
||||||
var buildNumber by extra("")
|
var buildNumber by extra("")
|
||||||
@@ -92,10 +89,6 @@ configure<LicenseExtension> {
|
|||||||
include("**/*.java")
|
include("**/*.java")
|
||||||
}
|
}
|
||||||
|
|
||||||
configure<EditorconfigExtension> {
|
|
||||||
includes = listOf("**/*.java")
|
|
||||||
}
|
|
||||||
|
|
||||||
tasks.named<Copy>("processResources") {
|
tasks.named<Copy>("processResources") {
|
||||||
filesMatching("plugin.yml") {
|
filesMatching("plugin.yml") {
|
||||||
expand("version" to project.version)
|
expand("version" to project.version)
|
||||||
@@ -104,5 +97,4 @@ tasks.named<Copy>("processResources") {
|
|||||||
|
|
||||||
tasks.named("build").configure {
|
tasks.named("build").configure {
|
||||||
dependsOn("shadowJar")
|
dependsOn("shadowJar")
|
||||||
dependsOn("editorconfigCheck")
|
|
||||||
}
|
}
|
||||||
Vendored
+89
-89
@@ -1,89 +1,89 @@
|
|||||||
@rem
|
@rem
|
||||||
@rem Copyright 2015 the original author or authors.
|
@rem Copyright 2015 the original author or authors.
|
||||||
@rem
|
@rem
|
||||||
@rem Licensed under the Apache License, Version 2.0 (the "License");
|
@rem Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
@rem you may not use this file except in compliance with the License.
|
@rem you may not use this file except in compliance with the License.
|
||||||
@rem You may obtain a copy of the License at
|
@rem You may obtain a copy of the License at
|
||||||
@rem
|
@rem
|
||||||
@rem https://www.apache.org/licenses/LICENSE-2.0
|
@rem https://www.apache.org/licenses/LICENSE-2.0
|
||||||
@rem
|
@rem
|
||||||
@rem Unless required by applicable law or agreed to in writing, software
|
@rem Unless required by applicable law or agreed to in writing, software
|
||||||
@rem distributed under the License is distributed on an "AS IS" BASIS,
|
@rem distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
@rem See the License for the specific language governing permissions and
|
@rem See the License for the specific language governing permissions and
|
||||||
@rem limitations under the License.
|
@rem limitations under the License.
|
||||||
@rem
|
@rem
|
||||||
|
|
||||||
@if "%DEBUG%" == "" @echo off
|
@if "%DEBUG%" == "" @echo off
|
||||||
@rem ##########################################################################
|
@rem ##########################################################################
|
||||||
@rem
|
@rem
|
||||||
@rem Gradle startup script for Windows
|
@rem Gradle startup script for Windows
|
||||||
@rem
|
@rem
|
||||||
@rem ##########################################################################
|
@rem ##########################################################################
|
||||||
|
|
||||||
@rem Set local scope for the variables with windows NT shell
|
@rem Set local scope for the variables with windows NT shell
|
||||||
if "%OS%"=="Windows_NT" setlocal
|
if "%OS%"=="Windows_NT" setlocal
|
||||||
|
|
||||||
set DIRNAME=%~dp0
|
set DIRNAME=%~dp0
|
||||||
if "%DIRNAME%" == "" set DIRNAME=.
|
if "%DIRNAME%" == "" set DIRNAME=.
|
||||||
set APP_BASE_NAME=%~n0
|
set APP_BASE_NAME=%~n0
|
||||||
set APP_HOME=%DIRNAME%
|
set APP_HOME=%DIRNAME%
|
||||||
|
|
||||||
@rem Resolve any "." and ".." in APP_HOME to make it shorter.
|
@rem Resolve any "." and ".." in APP_HOME to make it shorter.
|
||||||
for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi
|
for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi
|
||||||
|
|
||||||
@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
|
@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
|
||||||
set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m"
|
set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m"
|
||||||
|
|
||||||
@rem Find java.exe
|
@rem Find java.exe
|
||||||
if defined JAVA_HOME goto findJavaFromJavaHome
|
if defined JAVA_HOME goto findJavaFromJavaHome
|
||||||
|
|
||||||
set JAVA_EXE=java.exe
|
set JAVA_EXE=java.exe
|
||||||
%JAVA_EXE% -version >NUL 2>&1
|
%JAVA_EXE% -version >NUL 2>&1
|
||||||
if "%ERRORLEVEL%" == "0" goto execute
|
if "%ERRORLEVEL%" == "0" goto execute
|
||||||
|
|
||||||
echo.
|
echo.
|
||||||
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
|
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
|
||||||
echo.
|
echo.
|
||||||
echo Please set the JAVA_HOME variable in your environment to match the
|
echo Please set the JAVA_HOME variable in your environment to match the
|
||||||
echo location of your Java installation.
|
echo location of your Java installation.
|
||||||
|
|
||||||
goto fail
|
goto fail
|
||||||
|
|
||||||
:findJavaFromJavaHome
|
:findJavaFromJavaHome
|
||||||
set JAVA_HOME=%JAVA_HOME:"=%
|
set JAVA_HOME=%JAVA_HOME:"=%
|
||||||
set JAVA_EXE=%JAVA_HOME%/bin/java.exe
|
set JAVA_EXE=%JAVA_HOME%/bin/java.exe
|
||||||
|
|
||||||
if exist "%JAVA_EXE%" goto execute
|
if exist "%JAVA_EXE%" goto execute
|
||||||
|
|
||||||
echo.
|
echo.
|
||||||
echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
|
echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
|
||||||
echo.
|
echo.
|
||||||
echo Please set the JAVA_HOME variable in your environment to match the
|
echo Please set the JAVA_HOME variable in your environment to match the
|
||||||
echo location of your Java installation.
|
echo location of your Java installation.
|
||||||
|
|
||||||
goto fail
|
goto fail
|
||||||
|
|
||||||
:execute
|
:execute
|
||||||
@rem Setup the command line
|
@rem Setup the command line
|
||||||
|
|
||||||
set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
|
set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
|
||||||
|
|
||||||
|
|
||||||
@rem Execute Gradle
|
@rem Execute Gradle
|
||||||
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %*
|
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %*
|
||||||
|
|
||||||
:end
|
:end
|
||||||
@rem End local scope for the variables with windows NT shell
|
@rem End local scope for the variables with windows NT shell
|
||||||
if "%ERRORLEVEL%"=="0" goto mainEnd
|
if "%ERRORLEVEL%"=="0" goto mainEnd
|
||||||
|
|
||||||
:fail
|
:fail
|
||||||
rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
|
rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
|
||||||
rem the _cmd.exe /c_ return code!
|
rem the _cmd.exe /c_ return code!
|
||||||
if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
|
if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
|
||||||
exit /b 1
|
exit /b 1
|
||||||
|
|
||||||
:mainEnd
|
:mainEnd
|
||||||
if "%OS%"=="Windows_NT" endlocal
|
if "%OS%"=="Windows_NT" endlocal
|
||||||
|
|
||||||
:omega
|
:omega
|
||||||
@@ -126,8 +126,6 @@ public final class BuildersUtilities extends JavaPlugin {
|
|||||||
getCommand("blocks").setExecutor(commandExecutor);
|
getCommand("blocks").setExecutor(commandExecutor);
|
||||||
getCommand("n").setExecutor(commandExecutor);
|
getCommand("n").setExecutor(commandExecutor);
|
||||||
getCommand("nc").setExecutor(commandExecutor);
|
getCommand("nc").setExecutor(commandExecutor);
|
||||||
getCommand("/1").setExecutor(commandExecutor);
|
|
||||||
getCommand("/2").setExecutor(commandExecutor);
|
|
||||||
getCommand("/cuboid").setExecutor(commandExecutor);
|
getCommand("/cuboid").setExecutor(commandExecutor);
|
||||||
getCommand("/convex").setExecutor(commandExecutor);
|
getCommand("/convex").setExecutor(commandExecutor);
|
||||||
getCommand("/s").setExecutor(commandExecutor);
|
getCommand("/s").setExecutor(commandExecutor);
|
||||||
|
|||||||
@@ -671,4 +671,4 @@ into proprietary programs. If your program is a subroutine library, you
|
|||||||
may consider it more useful to permit linking proprietary applications with
|
may consider it more useful to permit linking proprietary applications with
|
||||||
the library. If this is what you want to do, use the GNU Lesser General
|
the library. If this is what you want to do, use the GNU Lesser General
|
||||||
Public License instead of this License. But first, please read
|
Public License instead of this License. But first, please read
|
||||||
<https://www.gnu.org/philosophy/why-not-lgpl.html>.
|
<https://www.gnu.org/philosophy/why-not-lgpl.html>.
|
||||||
@@ -43,4 +43,4 @@ send-error-messages: true
|
|||||||
|
|
||||||
# Whether or not Builders-Utilities should send debug messages
|
# Whether or not Builders-Utilities should send debug messages
|
||||||
# Leave it on "false" unless you are debugging Builders-Utilities' events.
|
# Leave it on "false" unless you are debugging Builders-Utilities' events.
|
||||||
send-debug-messages: false
|
send-debug-messages: false
|
||||||
@@ -8,60 +8,72 @@ commands:
|
|||||||
butil:
|
butil:
|
||||||
aliases: bu
|
aliases: bu
|
||||||
description: opens toggle menu
|
description: opens toggle menu
|
||||||
|
permission: builders.util.gui
|
||||||
banner:
|
banner:
|
||||||
description: opens banner creator
|
description: opens banner creator
|
||||||
aliases: bm
|
aliases: bm
|
||||||
|
permission: builders.util.banner
|
||||||
armorcolor:
|
armorcolor:
|
||||||
description: opens armor color creator
|
description: opens armor color creator
|
||||||
aliases: color
|
aliases: color
|
||||||
|
permission: builders.util.color
|
||||||
nc:
|
nc:
|
||||||
aliases: noclip
|
aliases: noclip
|
||||||
description: Toggles NoClip.
|
description: Toggles NoClip.
|
||||||
|
permission: builders.util.noclip
|
||||||
af:
|
af:
|
||||||
aliases: advfly
|
aliases: advfly
|
||||||
description: Toggles Advanced fly.
|
description: Toggles Advanced fly.
|
||||||
|
permission: builders.util.advancedfly
|
||||||
n:
|
n:
|
||||||
aliases: nv
|
aliases: nv
|
||||||
description: Toggles Nightvision.
|
description: Toggles Nightvision.
|
||||||
/1:
|
permission: builders.util.nightvision
|
||||||
description: alias
|
|
||||||
/2:
|
|
||||||
description: alias
|
|
||||||
/r:
|
/r:
|
||||||
description: alias
|
description: alias
|
||||||
|
permission: builders.util.aliases
|
||||||
/s:
|
/s:
|
||||||
description: alias
|
description: alias
|
||||||
|
permission: builders.util.aliases
|
||||||
/c:
|
/c:
|
||||||
description: alias
|
description: alias
|
||||||
|
permission: builders.util.aliases
|
||||||
/f:
|
/f:
|
||||||
description: alias
|
description: alias
|
||||||
|
permission: builders.util.aliases
|
||||||
/pa:
|
/pa:
|
||||||
description: alias
|
description: alias
|
||||||
|
permission: builders.util.aliases
|
||||||
/derot:
|
/derot:
|
||||||
description: alias
|
description: alias
|
||||||
|
permission: builders.util.aliases
|
||||||
/twist:
|
/twist:
|
||||||
description: alias
|
description: alias
|
||||||
|
permission: builders.util.aliases
|
||||||
/scale:
|
/scale:
|
||||||
description: alias
|
description: alias
|
||||||
/copy:
|
permission: builders.util.aliases
|
||||||
description: alias
|
|
||||||
/cuboid:
|
/cuboid:
|
||||||
description: alias
|
description: alias
|
||||||
aliases: /cub
|
aliases: /cub
|
||||||
|
permission: builders.util.aliases
|
||||||
/flip:
|
/flip:
|
||||||
description: alias
|
description: alias
|
||||||
|
permission: builders.util.aliases
|
||||||
/convex:
|
/convex:
|
||||||
description: alias
|
description: alias
|
||||||
aliases: /con
|
aliases: /con
|
||||||
|
permission: builders.util.aliases
|
||||||
blocks:
|
blocks:
|
||||||
description: Opens secret blocks menu
|
description: Opens secret blocks menu
|
||||||
aliases: secretblocks
|
aliases: secretblocks
|
||||||
|
permission: builders.util.secretblocks
|
||||||
ws:
|
ws:
|
||||||
description: alias
|
description: alias
|
||||||
|
permission: builders.util.aliases
|
||||||
fs:
|
fs:
|
||||||
description: alias
|
description: alias
|
||||||
bu help:
|
permission: builders.util.aliases
|
||||||
description: Help command
|
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
builders.util.trapdoor:
|
builders.util.trapdoor:
|
||||||
|
|||||||
Reference in new issue
Block a user