mirror of
https://github.com/darksaid98/AlathranWars.git
synced 2026-12-03 06:28:51 +00:00
style: apply .editorconfig
This commit is contained in:
4 files changed
+68
-52
No files matched your search
+10
-5
@@ -8,7 +8,7 @@ indent_style = space
|
|||||||
insert_final_newline = false
|
insert_final_newline = false
|
||||||
max_line_length = 120
|
max_line_length = 120
|
||||||
tab_width = 4
|
tab_width = 4
|
||||||
ij_continuation_indent_size = 8
|
ij_continuation_indent_size = 4
|
||||||
ij_formatter_off_tag = @formatter:off
|
ij_formatter_off_tag = @formatter:off
|
||||||
ij_formatter_on_tag = @formatter:on
|
ij_formatter_on_tag = @formatter:on
|
||||||
ij_formatter_tags_enabled = true
|
ij_formatter_tags_enabled = true
|
||||||
@@ -17,6 +17,7 @@ ij_visual_guides =
|
|||||||
ij_wrap_on_typing = false
|
ij_wrap_on_typing = false
|
||||||
|
|
||||||
[*.java]
|
[*.java]
|
||||||
|
ij_continuation_indent_size = 4
|
||||||
ij_java_align_consecutive_assignments = false
|
ij_java_align_consecutive_assignments = false
|
||||||
ij_java_align_consecutive_variable_declarations = false
|
ij_java_align_consecutive_variable_declarations = false
|
||||||
ij_java_align_group_field_declarations = false
|
ij_java_align_group_field_declarations = false
|
||||||
@@ -114,7 +115,7 @@ ij_java_for_statement_wrap = off
|
|||||||
ij_java_generate_final_locals = false
|
ij_java_generate_final_locals = false
|
||||||
ij_java_generate_final_parameters = false
|
ij_java_generate_final_parameters = false
|
||||||
ij_java_if_brace_force = never
|
ij_java_if_brace_force = never
|
||||||
ij_java_imports_layout = *,|,javax.**,java.**,|,$*
|
ij_java_imports_layout = *, |, javax.**, java.**, |, $*
|
||||||
ij_java_indent_case_from_switch = true
|
ij_java_indent_case_from_switch = true
|
||||||
ij_java_insert_inner_class_imports = false
|
ij_java_insert_inner_class_imports = false
|
||||||
ij_java_insert_override_annotation = true
|
ij_java_insert_override_annotation = true
|
||||||
@@ -153,7 +154,7 @@ ij_java_names_count_to_use_import_on_demand = 3
|
|||||||
ij_java_new_line_after_lparen_in_annotation = false
|
ij_java_new_line_after_lparen_in_annotation = false
|
||||||
ij_java_new_line_after_lparen_in_deconstruction_pattern = true
|
ij_java_new_line_after_lparen_in_deconstruction_pattern = true
|
||||||
ij_java_new_line_after_lparen_in_record_header = false
|
ij_java_new_line_after_lparen_in_record_header = false
|
||||||
ij_java_packages_to_use_import_on_demand = java.awt.*,javax.swing.*
|
ij_java_packages_to_use_import_on_demand = java.awt.*, javax.swing.*
|
||||||
ij_java_parameter_annotation_wrap = off
|
ij_java_parameter_annotation_wrap = off
|
||||||
ij_java_parameter_name_prefix =
|
ij_java_parameter_name_prefix =
|
||||||
ij_java_parameter_name_suffix =
|
ij_java_parameter_name_suffix =
|
||||||
@@ -276,6 +277,7 @@ ij_java_wrap_first_method_in_call_chain = false
|
|||||||
ij_java_wrap_long_lines = false
|
ij_java_wrap_long_lines = false
|
||||||
|
|
||||||
[{*.ant,*.fxml,*.jhm,*.jnlp,*.jrxml,*.jspx,*.pom,*.rng,*.tagx,*.tld,*.wsdl,*.xml,*.xsd,*.xsl,*.xslt,*.xul}]
|
[{*.ant,*.fxml,*.jhm,*.jnlp,*.jrxml,*.jspx,*.pom,*.rng,*.tagx,*.tld,*.wsdl,*.xml,*.xsd,*.xsl,*.xslt,*.xul}]
|
||||||
|
ij_continuation_indent_size = 4
|
||||||
ij_xml_align_attributes = true
|
ij_xml_align_attributes = true
|
||||||
ij_xml_align_text = false
|
ij_xml_align_text = false
|
||||||
ij_xml_attribute_wrap = normal
|
ij_xml_attribute_wrap = normal
|
||||||
@@ -295,6 +297,7 @@ ij_xml_space_inside_empty_tag = false
|
|||||||
ij_xml_text_wrap = normal
|
ij_xml_text_wrap = normal
|
||||||
|
|
||||||
[{*.gradle.kts,*.kt,*.kts,*.main.kts,*.space.kts}]
|
[{*.gradle.kts,*.kt,*.kts,*.main.kts,*.space.kts}]
|
||||||
|
ij_continuation_indent_size = 4
|
||||||
ij_kotlin_align_in_columns_case_branch = false
|
ij_kotlin_align_in_columns_case_branch = false
|
||||||
ij_kotlin_align_multiline_binary_operation = false
|
ij_kotlin_align_multiline_binary_operation = false
|
||||||
ij_kotlin_align_multiline_extends_list = false
|
ij_kotlin_align_multiline_extends_list = false
|
||||||
@@ -328,7 +331,7 @@ ij_kotlin_field_annotation_wrap = split_into_lines
|
|||||||
ij_kotlin_finally_on_new_line = false
|
ij_kotlin_finally_on_new_line = false
|
||||||
ij_kotlin_if_rparen_on_new_line = false
|
ij_kotlin_if_rparen_on_new_line = false
|
||||||
ij_kotlin_import_nested_classes = false
|
ij_kotlin_import_nested_classes = false
|
||||||
ij_kotlin_imports_layout = *,java.**,javax.**,kotlin.**,^
|
ij_kotlin_imports_layout = *, java.**, javax.**, kotlin.**, ^
|
||||||
ij_kotlin_insert_whitespaces_in_simple_one_line_method = true
|
ij_kotlin_insert_whitespaces_in_simple_one_line_method = true
|
||||||
ij_kotlin_keep_blank_lines_before_right_brace = 2
|
ij_kotlin_keep_blank_lines_before_right_brace = 2
|
||||||
ij_kotlin_keep_blank_lines_in_code = 2
|
ij_kotlin_keep_blank_lines_in_code = 2
|
||||||
@@ -348,7 +351,7 @@ ij_kotlin_method_parameters_right_paren_on_new_line = false
|
|||||||
ij_kotlin_method_parameters_wrap = off
|
ij_kotlin_method_parameters_wrap = off
|
||||||
ij_kotlin_name_count_to_use_star_import = 5
|
ij_kotlin_name_count_to_use_star_import = 5
|
||||||
ij_kotlin_name_count_to_use_star_import_for_members = 3
|
ij_kotlin_name_count_to_use_star_import_for_members = 3
|
||||||
ij_kotlin_packages_to_use_import_on_demand = java.util.*,kotlinx.android.synthetic.**,io.ktor.**
|
ij_kotlin_packages_to_use_import_on_demand = java.util.*, kotlinx.android.synthetic.**, io.ktor.**
|
||||||
ij_kotlin_parameter_annotation_wrap = off
|
ij_kotlin_parameter_annotation_wrap = off
|
||||||
ij_kotlin_space_after_comma = true
|
ij_kotlin_space_after_comma = true
|
||||||
ij_kotlin_space_after_extend_colon = true
|
ij_kotlin_space_after_extend_colon = true
|
||||||
@@ -380,6 +383,7 @@ ij_kotlin_wrap_first_method_in_call_chain = false
|
|||||||
|
|
||||||
[{*.har,*.json,*.png.mcmeta,mcmod.info,pack.mcmeta}]
|
[{*.har,*.json,*.png.mcmeta,mcmod.info,pack.mcmeta}]
|
||||||
indent_size = 2
|
indent_size = 2
|
||||||
|
ij_continuation_indent_size = 4
|
||||||
ij_json_array_wrapping = split_into_lines
|
ij_json_array_wrapping = split_into_lines
|
||||||
ij_json_keep_blank_lines_in_code = 0
|
ij_json_keep_blank_lines_in_code = 0
|
||||||
ij_json_keep_indents_on_empty_lines = false
|
ij_json_keep_indents_on_empty_lines = false
|
||||||
@@ -414,6 +418,7 @@ ij_markdown_wrap_text_if_long = true
|
|||||||
ij_markdown_wrap_text_inside_blockquotes = true
|
ij_markdown_wrap_text_inside_blockquotes = true
|
||||||
|
|
||||||
[{*.toml,Cargo.lock,Cargo.toml.orig,Gopkg.lock,Pipfile,poetry.lock}]
|
[{*.toml,Cargo.lock,Cargo.toml.orig,Gopkg.lock,Pipfile,poetry.lock}]
|
||||||
|
ij_continuation_indent_size = 4
|
||||||
ij_toml_keep_indents_on_empty_lines = false
|
ij_toml_keep_indents_on_empty_lines = false
|
||||||
|
|
||||||
[{*.yaml,*.yml}]
|
[{*.yaml,*.yml}]
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ name: Upload release assets
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
release:
|
release:
|
||||||
types: [published]
|
types: [ published ]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
upload_asset:
|
upload_asset:
|
||||||
|
|||||||
@@ -1,17 +1,26 @@
|
|||||||
# AlathraWar Version: 1.3.1
|
# AlathraWar Version: 1.3.1
|
||||||
|
|
||||||
## A unique Towny war system for the AlathraMC server
|
## A unique Towny war system for the AlathraMC server
|
||||||
|
|
||||||
### Dependencies: Vault, Towny, SiegeWar, TAB
|
### Dependencies: Vault, Towny, SiegeWar, TAB
|
||||||
|
|
||||||
### Commands
|
### Commands
|
||||||
|
|
||||||
+ /war - war commands
|
+ /war - war commands
|
||||||
+ /siege - siege commands
|
+ /siege - siege commands
|
||||||
|
|
||||||
## Siege Point system
|
## Siege Point system
|
||||||
+1 point for every second the homeblock is controlled. Defenders retain control if no one is occupying the homeblock. A contested homeblock yeilds no points. The timer fires every 10 seconds so it's really +10 points every 10 seconds. Kills are worth 20 points each.
|
|
||||||
|
+1 point for every second the homeblock is controlled. Defenders retain control if no one is occupying the homeblock. A
|
||||||
|
contested homeblock yeilds no points. The timer fires every 10 seconds so it's really +10 points every 10 seconds. Kills
|
||||||
|
are worth 20 points each.
|
||||||
|
|
||||||
## Siege Time Limit
|
## Siege Time Limit
|
||||||
|
|
||||||
Sieges last 90 minutes. After this time is up the side with the most points wins. A tie goes to the defenders.
|
Sieges last 90 minutes. After this time is up the side with the most points wins. A tie goes to the defenders.
|
||||||
|
|
||||||
## Siege Cost
|
## Siege Cost
|
||||||
The attackers must put down $20,000 to start a siege. If they win they get this $20,000 back as well as 1/4th the bank of the town OR $20,000, whichever is higher. If the defenders win they sieze the $20,000 initially put down on the siege by the attackers
|
|
||||||
|
The attackers must put down $20,000 to start a siege. If they win they get this $20,000 back as well as 1/4th the bank
|
||||||
|
of the town OR $20,000, whichever is higher. If the defenders win they sieze the $20,000 initially put down on the siege
|
||||||
|
by the attackers
|
||||||
@@ -69,21 +69,21 @@ app_path=$0
|
|||||||
|
|
||||||
# Need this for daisy-chained symlinks.
|
# Need this for daisy-chained symlinks.
|
||||||
while
|
while
|
||||||
APP_HOME=${app_path%"${app_path##*/}"} # leaves a trailing /; empty if no leading path
|
APP_HOME=${app_path%"${app_path##*/}"} # leaves a trailing /; empty if no leading path
|
||||||
[ -h "$app_path" ]
|
[ -h "$app_path" ]
|
||||||
do
|
do
|
||||||
ls=$( ls -ld "$app_path" )
|
ls=$(ls -ld "$app_path")
|
||||||
link=${ls#*' -> '}
|
link=${ls#*' -> '}
|
||||||
case $link in #(
|
case $link in #(
|
||||||
/*) app_path=$link ;; #(
|
/*) app_path=$link ;; #(
|
||||||
*) app_path=$APP_HOME$link ;;
|
*) app_path=$APP_HOME$link ;;
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
|
||||||
# This is normally unused
|
# This is normally unused
|
||||||
# shellcheck disable=SC2034
|
# shellcheck disable=SC2034
|
||||||
APP_BASE_NAME=${0##*/}
|
APP_BASE_NAME=${0##*/}
|
||||||
APP_HOME=$( cd "${APP_HOME:-./}" && pwd -P ) || exit
|
APP_HOME=$(cd "${APP_HOME:-./}" && pwd -P) || exit
|
||||||
|
|
||||||
# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
|
# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
|
||||||
DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
|
DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
|
||||||
@@ -91,11 +91,11 @@ DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
|
|||||||
# Use the maximum available, or set MAX_FD != -1 to use that value.
|
# Use the maximum available, or set MAX_FD != -1 to use that value.
|
||||||
MAX_FD=maximum
|
MAX_FD=maximum
|
||||||
|
|
||||||
warn () {
|
warn() {
|
||||||
echo "$*"
|
echo "$*"
|
||||||
} >&2
|
} >&2
|
||||||
|
|
||||||
die () {
|
die() {
|
||||||
echo
|
echo
|
||||||
echo "$*"
|
echo "$*"
|
||||||
echo
|
echo
|
||||||
@@ -107,25 +107,24 @@ cygwin=false
|
|||||||
msys=false
|
msys=false
|
||||||
darwin=false
|
darwin=false
|
||||||
nonstop=false
|
nonstop=false
|
||||||
case "$( uname )" in #(
|
case "$(uname)" in #(
|
||||||
CYGWIN* ) cygwin=true ;; #(
|
CYGWIN*) cygwin=true ;; #(
|
||||||
Darwin* ) darwin=true ;; #(
|
Darwin*) darwin=true ;; #(
|
||||||
MSYS* | MINGW* ) msys=true ;; #(
|
MSYS* | MINGW*) msys=true ;; #(
|
||||||
NONSTOP* ) nonstop=true ;;
|
NONSTOP*) nonstop=true ;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
|
CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
|
||||||
|
|
||||||
|
|
||||||
# Determine the Java command to use to start the JVM.
|
# Determine the Java command to use to start the JVM.
|
||||||
if [ -n "$JAVA_HOME" ] ; then
|
if [ -n "$JAVA_HOME" ]; then
|
||||||
if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
|
if [ -x "$JAVA_HOME/jre/sh/java" ]; then
|
||||||
# IBM's JDK on AIX uses strange locations for the executables
|
# IBM's JDK on AIX uses strange locations for the executables
|
||||||
JAVACMD=$JAVA_HOME/jre/sh/java
|
JAVACMD=$JAVA_HOME/jre/sh/java
|
||||||
else
|
else
|
||||||
JAVACMD=$JAVA_HOME/bin/java
|
JAVACMD=$JAVA_HOME/bin/java
|
||||||
fi
|
fi
|
||||||
if [ ! -x "$JAVACMD" ] ; then
|
if [ ! -x "$JAVACMD" ]; then
|
||||||
die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
|
die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
|
||||||
|
|
||||||
Please set the JAVA_HOME variable in your environment to match the
|
Please set the JAVA_HOME variable in your environment to match the
|
||||||
@@ -140,21 +139,23 @@ location of your Java installation."
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Increase the maximum file descriptors if we can.
|
# Increase the maximum file descriptors if we can.
|
||||||
if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then
|
if ! "$cygwin" && ! "$darwin" && ! "$nonstop"; then
|
||||||
case $MAX_FD in #(
|
case $MAX_FD in #(
|
||||||
max*)
|
max*)
|
||||||
# In POSIX sh, ulimit -H is undefined. That's why the result is checked to see if it worked.
|
# In POSIX sh, ulimit -H is undefined. That's why the result is checked to see if it worked.
|
||||||
# shellcheck disable=SC3045
|
# shellcheck disable=SC3045
|
||||||
MAX_FD=$( ulimit -H -n ) ||
|
MAX_FD=$(ulimit -H -n) ||
|
||||||
warn "Could not query maximum file descriptor limit"
|
warn "Could not query maximum file descriptor limit"
|
||||||
|
;;
|
||||||
esac
|
esac
|
||||||
case $MAX_FD in #(
|
case $MAX_FD in #(
|
||||||
'' | soft) :;; #(
|
'' | soft) : ;; #(
|
||||||
*)
|
*)
|
||||||
# In POSIX sh, ulimit -n is undefined. That's why the result is checked to see if it worked.
|
# In POSIX sh, ulimit -n is undefined. That's why the result is checked to see if it worked.
|
||||||
# shellcheck disable=SC3045
|
# shellcheck disable=SC3045
|
||||||
ulimit -n "$MAX_FD" ||
|
ulimit -n "$MAX_FD" ||
|
||||||
warn "Could not set maximum file descriptor limit to $MAX_FD"
|
warn "Could not set maximum file descriptor limit to $MAX_FD"
|
||||||
|
;;
|
||||||
esac
|
esac
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@@ -167,23 +168,25 @@ fi
|
|||||||
# * DEFAULT_JVM_OPTS, JAVA_OPTS, and GRADLE_OPTS environment variables.
|
# * DEFAULT_JVM_OPTS, JAVA_OPTS, and GRADLE_OPTS environment variables.
|
||||||
|
|
||||||
# For Cygwin or MSYS, switch paths to Windows format before running java
|
# For Cygwin or MSYS, switch paths to Windows format before running java
|
||||||
if "$cygwin" || "$msys" ; then
|
if "$cygwin" || "$msys"; then
|
||||||
APP_HOME=$( cygpath --path --mixed "$APP_HOME" )
|
APP_HOME=$(cygpath --path --mixed "$APP_HOME")
|
||||||
CLASSPATH=$( cygpath --path --mixed "$CLASSPATH" )
|
CLASSPATH=$(cygpath --path --mixed "$CLASSPATH")
|
||||||
|
|
||||||
JAVACMD=$( cygpath --unix "$JAVACMD" )
|
JAVACMD=$(cygpath --unix "$JAVACMD")
|
||||||
|
|
||||||
# Now convert the arguments - kludge to limit ourselves to /bin/sh
|
# Now convert the arguments - kludge to limit ourselves to /bin/sh
|
||||||
for arg do
|
for arg; do
|
||||||
if
|
if
|
||||||
case $arg in #(
|
case $arg in #(
|
||||||
-*) false ;; # don't mess with options #(
|
-*) false ;; # don't mess with options #(
|
||||||
/?*) t=${arg#/} t=/${t%%/*} # looks like a POSIX filepath
|
/?*)
|
||||||
[ -e "$t" ] ;; #(
|
t=${arg#/} t=/${t%%/*} # looks like a POSIX filepath
|
||||||
*) false ;;
|
[ -e "$t" ]
|
||||||
|
;; #(
|
||||||
|
*) false ;;
|
||||||
esac
|
esac
|
||||||
then
|
then
|
||||||
arg=$( cygpath --path --ignore --mixed "$arg" )
|
arg=$(cygpath --path --ignore --mixed "$arg")
|
||||||
fi
|
fi
|
||||||
# Roll the args list around exactly as many times as the number of
|
# Roll the args list around exactly as many times as the number of
|
||||||
# args, so each arg winds up back in the position where it started, but
|
# args, so each arg winds up back in the position where it started, but
|
||||||
@@ -192,8 +195,8 @@ if "$cygwin" || "$msys" ; then
|
|||||||
# NB: a `for` loop captures its iteration list before it begins, so
|
# NB: a `for` loop captures its iteration list before it begins, so
|
||||||
# changing the positional parameters here affects neither the number of
|
# changing the positional parameters here affects neither the number of
|
||||||
# iterations, nor the values presented in `arg`.
|
# iterations, nor the values presented in `arg`.
|
||||||
shift # remove old arg
|
shift # remove old arg
|
||||||
set -- "$@" "$arg" # push replacement arg
|
set -- "$@" "$arg" # push replacement arg
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@@ -204,14 +207,13 @@ fi
|
|||||||
# * put everything else in single quotes, so that it's not re-expanded.
|
# * put everything else in single quotes, so that it's not re-expanded.
|
||||||
|
|
||||||
set -- \
|
set -- \
|
||||||
"-Dorg.gradle.appname=$APP_BASE_NAME" \
|
"-Dorg.gradle.appname=$APP_BASE_NAME" \
|
||||||
-classpath "$CLASSPATH" \
|
-classpath "$CLASSPATH" \
|
||||||
org.gradle.wrapper.GradleWrapperMain \
|
org.gradle.wrapper.GradleWrapperMain \
|
||||||
"$@"
|
"$@"
|
||||||
|
|
||||||
# Stop when "xargs" is not available.
|
# Stop when "xargs" is not available.
|
||||||
if ! command -v xargs >/dev/null 2>&1
|
if ! command -v xargs >/dev/null 2>&1; then
|
||||||
then
|
|
||||||
die "xargs is not available"
|
die "xargs is not available"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@@ -235,10 +237,10 @@ fi
|
|||||||
#
|
#
|
||||||
|
|
||||||
eval "set -- $(
|
eval "set -- $(
|
||||||
printf '%s\n' "$DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS" |
|
printf '%s\n' "$DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS" |
|
||||||
xargs -n1 |
|
xargs -n1 |
|
||||||
sed ' s~[^-[:alnum:]+,./:=@_]~\\&~g; ' |
|
sed ' s~[^-[:alnum:]+,./:=@_]~\\&~g; ' |
|
||||||
tr '\n' ' '
|
tr '\n' ' '
|
||||||
)" '"$@"'
|
)" '"$@"'
|
||||||
|
|
||||||
exec "$JAVACMD" "$@"
|
exec "$JAVACMD" "$@"
|
||||||
Reference in new issue
Block a user