From 06e0fdf983edcb340a2dc276baf8cae8c777a7a6 Mon Sep 17 00:00:00 2001 From: "Pavel Erokhin (MairwunNx)" Date: 2020年5月20日 19:04:54 +0300 Subject: [PATCH 01/17] .gitignore file added. Signed-off-by: Pavel Erokhin (MairwunNx) --- .gitignore | 152 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 152 insertions(+) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..9c47a5e --- /dev/null +++ b/.gitignore @@ -0,0 +1,152 @@ +# eclipse +bin +*.launch +.settings +.metadata +.classpath +.project + +# idea +out +*.ipr +*.iws +*.iml +.idea + +# gradle +build +.gradle + +# other +eclipse +run + +# Files from Forge MDK +forge*changelog.txt + +# Compiled class file +*.class + +# Log file +*.log + +# BlueJ files +*.ctxt + +# Mobile Tools for Java (J2ME) +.mtj.tmp/ + +# Package Files # +*.jar +*.war +*.nar +*.ear +*.zip +*.tar.gz +*.rar + +# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml +hs_err_pid* + +### Gradle ### +build/ + +# Ignore Gradle GUI config +gradle-app.setting + +# Cache of project +.gradletasknamecache + +# # Work around https://youtrack.jetbrains.com/issue/IDEA-116898 +# gradle/wrapper/gradle-wrapper.properties + +### Gradle Patch ### +**/build/ + +# End of https://www.gitignore.io/api/gradle + +# # Work around https://youtrack.jetbrains.com/issue/IDEA-116898 +# gradle/wrapper/gradle-wrapper.properties + +# Created by https://www.gitignore.io/api/intellij +# Edit at https://www.gitignore.io/?templates=intellij + +### Intellij ### +# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio and WebStorm +# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839 + +# User-specific stuff +.idea/**/workspace.xml +.idea/**/tasks.xml +.idea/**/usage.statistics.xml +.idea/**/dictionaries +.idea/**/shelf + +# Generated files +.idea/**/contentModel.xml + +# Sensitive or high-churn files +.idea/**/dataSources/ +.idea/**/dataSources.ids +.idea/**/dataSources.local.xml +.idea/**/sqlDataSources.xml +.idea/**/dynamic.xml +.idea/**/uiDesigner.xml +.idea/**/dbnavigator.xml + +# Gradle +.idea/**/gradle.xml +.idea/**/libraries + +# Gradle and Maven with auto-import +# When using Gradle or Maven with auto-import, you should exclude module files, +# since they will be recreated, and may cause churn. Uncomment if using +# auto-import. +# .idea/modules.xml +# .idea/*.iml +# .idea/modules + +# CMake +cmake-build-*/ + +# Mongo Explorer plugin +.idea/**/mongoSettings.xml + +# IntelliJ +out/ +run/ +run-client/ +run-server/ + +# mpeltonen/sbt-idea plugin +.idea_modules/ + +# JIRA plugin +atlassian-ide-plugin.xml + +# Cursive Clojure plugin +.idea/replstate.xml + +# Crashlytics plugin (for Android Studio and IntelliJ) +com_crashlytics_export_strings.xml +crashlytics.properties +crashlytics-build.properties +fabric.properties + +# Editor-based Rest Client +.idea/httpRequests + +# Android studio 3.1+ serialized cache file +.idea/caches/build_file_checksums.ser + +### Intellij Patch ### +# Comment Reason: https://github.com/joeblau/gitignore.io/issues/186#issuecomment-215987721 + +# *.iml +# modules.xml +# .idea/misc.xml +# *.ipr + +# Sonarlint plugin +.idea/sonarlint +!/gradle/wrapper/gradle-wrapper.jar From daae40216dfc2b3a8816084161dd264a83e396b8 Mon Sep 17 00:00:00 2001 From: "Pavel Erokhin (MairwunNx)" Date: 2020年5月20日 19:05:02 +0300 Subject: [PATCH 02/17] .editorconfig file added. Signed-off-by: Pavel Erokhin (MairwunNx) --- .editorconfig | 518 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 518 insertions(+) create mode 100644 .editorconfig diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..34f778b --- /dev/null +++ b/.editorconfig @@ -0,0 +1,518 @@ +root = true + +[*] +# charset = utf-8 +# end_of_line = crlf +# indent_size = 4 +# indent_style = space +# insert_final_newline = true +# max_line_length = 100 +# tab_width = 4 +# ij_continuation_indent_size = 8 +# ij_formatter_off_tag = @formatter:off +# ij_formatter_on_tag = @formatter:on +# ij_formatter_tags_enabled = false +# ij_smart_tabs = false +# ij_wrap_on_typing = false + +[*.java] +# ij_java_align_consecutive_assignments = false +# ij_java_align_consecutive_variable_declarations = false +# ij_java_align_group_field_declarations = false +# ij_java_align_multiline_annotation_parameters = false +# ij_java_align_multiline_array_initializer_expression = false +# ij_java_align_multiline_assignment = false +# ij_java_align_multiline_binary_operation = false +# ij_java_align_multiline_chained_methods = false +# ij_java_align_multiline_extends_list = false +# ij_java_align_multiline_for = true +# ij_java_align_multiline_method_parentheses = false +# ij_java_align_multiline_parameters = true +# ij_java_align_multiline_parameters_in_calls = false +# ij_java_align_multiline_parenthesized_expression = false +# ij_java_align_multiline_resources = true +# ij_java_align_multiline_ternary_operation = false +# ij_java_align_multiline_throws_list = false +# ij_java_align_subsequent_simple_methods = false +# ij_java_align_throws_keyword = false +# ij_java_annotation_parameter_wrap = off +# ij_java_array_initializer_new_line_after_left_brace = false +# ij_java_array_initializer_right_brace_on_new_line = false +# ij_java_array_initializer_wrap = off +# ij_java_assert_statement_colon_on_next_line = false +# ij_java_assert_statement_wrap = off +# ij_java_assignment_wrap = off +# ij_java_binary_operation_sign_on_next_line = false +# ij_java_binary_operation_wrap = off +# ij_java_blank_lines_after_anonymous_class_header = 0 +# ij_java_blank_lines_after_class_header = 0 +# ij_java_blank_lines_after_imports = 1 +# ij_java_blank_lines_after_package = 1 +# ij_java_blank_lines_around_class = 1 +# ij_java_blank_lines_around_field = 0 +# ij_java_blank_lines_around_field_in_interface = 0 +# ij_java_blank_lines_around_initializer = 1 +# ij_java_blank_lines_around_method = 1 +# ij_java_blank_lines_around_method_in_interface = 1 +# ij_java_blank_lines_before_class_end = 0 +# ij_java_blank_lines_before_imports = 1 +# ij_java_blank_lines_before_method_body = 0 +# ij_java_blank_lines_before_package = 0 +# ij_java_block_brace_style = end_of_line +# ij_java_block_comment_at_first_column = true +# ij_java_call_parameters_new_line_after_left_paren = false +# ij_java_call_parameters_right_paren_on_new_line = false +# ij_java_call_parameters_wrap = off +# ij_java_case_statement_on_separate_line = true +# ij_java_catch_on_new_line = false +# ij_java_class_annotation_wrap = split_into_lines +# ij_java_class_brace_style = end_of_line +# ij_java_class_count_to_use_import_on_demand = 5 +# ij_java_class_names_in_javadoc = 1 +# ij_java_do_not_indent_top_level_class_members = false +# ij_java_do_not_wrap_after_single_annotation = false +# ij_java_do_while_brace_force = never +# ij_java_doc_add_blank_line_after_description = true +# ij_java_doc_add_blank_line_after_param_comments = false +# ij_java_doc_add_blank_line_after_return = false +# ij_java_doc_add_p_tag_on_empty_lines = true +# ij_java_doc_align_exception_comments = true +# ij_java_doc_align_param_comments = true +# ij_java_doc_do_not_wrap_if_one_line = false +# ij_java_doc_enable_formatting = true +# ij_java_doc_enable_leading_asterisks = true +# ij_java_doc_indent_on_continuation = false +# ij_java_doc_keep_empty_lines = true +# ij_java_doc_keep_empty_parameter_tag = true +# ij_java_doc_keep_empty_return_tag = true +# ij_java_doc_keep_empty_throws_tag = true +# ij_java_doc_keep_invalid_tags = true +# ij_java_doc_param_description_on_new_line = false +# ij_java_doc_preserve_line_breaks = false +# ij_java_doc_use_throws_not_exception_tag = true +# ij_java_else_on_new_line = false +# ij_java_entity_dd_suffix = EJB +# ij_java_entity_eb_suffix = Bean +# ij_java_entity_hi_suffix = Home +# ij_java_entity_lhi_prefix = Local +# ij_java_entity_lhi_suffix = Home +# ij_java_entity_li_prefix = Local +# ij_java_entity_pk_class = java.lang.String +# ij_java_entity_vo_suffix = VO +# ij_java_enum_constants_wrap = off +# ij_java_extends_keyword_wrap = off +# ij_java_extends_list_wrap = off +# ij_java_field_annotation_wrap = split_into_lines +# ij_java_finally_on_new_line = false +# ij_java_for_brace_force = never +# ij_java_for_statement_new_line_after_left_paren = false +# ij_java_for_statement_right_paren_on_new_line = false +# ij_java_for_statement_wrap = off +# ij_java_generate_final_locals = false +# ij_java_generate_final_parameters = false +# ij_java_if_brace_force = never +# ij_java_imports_layout = *,|,javax.**,java.**,|,$* +# ij_java_indent_case_from_switch = true +# ij_java_insert_inner_class_imports = false +# ij_java_insert_override_annotation = true +# ij_java_keep_blank_lines_before_right_brace = 2 +# ij_java_keep_blank_lines_between_package_declaration_and_header = 2 +# ij_java_keep_blank_lines_in_code = 2 +# ij_java_keep_blank_lines_in_declarations = 2 +# ij_java_keep_control_statement_in_one_line = true +# ij_java_keep_first_column_comment = true +# ij_java_keep_indents_on_empty_lines = false +# ij_java_keep_line_breaks = true +# ij_java_keep_multiple_expressions_in_one_line = false +# ij_java_keep_simple_blocks_in_one_line = false +# ij_java_keep_simple_classes_in_one_line = false +# ij_java_keep_simple_lambdas_in_one_line = false +# ij_java_keep_simple_methods_in_one_line = false +# ij_java_lambda_brace_style = end_of_line +# ij_java_layout_static_imports_separately = true +# ij_java_line_comment_add_space = false +# ij_java_line_comment_at_first_column = true +# ij_java_message_dd_suffix = EJB +# ij_java_message_eb_suffix = Bean +# ij_java_method_annotation_wrap = split_into_lines +# ij_java_method_brace_style = end_of_line +# ij_java_method_call_chain_wrap = off +# ij_java_method_parameters_new_line_after_left_paren = false +# ij_java_method_parameters_right_paren_on_new_line = false +# ij_java_method_parameters_wrap = off +# ij_java_modifier_list_wrap = false +# ij_java_names_count_to_use_import_on_demand = 3 +# ij_java_packages_to_use_import_on_demand = java.awt.*,javax.swing.* +# ij_java_parameter_annotation_wrap = off +# ij_java_parentheses_expression_new_line_after_left_paren = false +# ij_java_parentheses_expression_right_paren_on_new_line = false +# ij_java_place_assignment_sign_on_next_line = false +# ij_java_prefer_longer_names = true +# ij_java_prefer_parameters_wrap = false +# ij_java_repeat_synchronized = true +# ij_java_replace_instanceof_and_cast = false +# ij_java_replace_null_check = true +# ij_java_replace_sum_lambda_with_method_ref = true +# ij_java_resource_list_new_line_after_left_paren = false +# ij_java_resource_list_right_paren_on_new_line = false +# ij_java_resource_list_wrap = off +# ij_java_session_dd_suffix = EJB +# ij_java_session_eb_suffix = Bean +# ij_java_session_hi_suffix = Home +# ij_java_session_lhi_prefix = Local +# ij_java_session_lhi_suffix = Home +# ij_java_session_li_prefix = Local +# ij_java_session_si_suffix = Service +# ij_java_space_after_closing_angle_bracket_in_type_argument = false +# ij_java_space_after_colon = true +# ij_java_space_after_comma = true +# ij_java_space_after_comma_in_type_arguments = true +# ij_java_space_after_for_semicolon = true +# ij_java_space_after_quest = true +# ij_java_space_after_type_cast = true +# ij_java_space_before_annotation_array_initializer_left_brace = false +# ij_java_space_before_annotation_parameter_list = false +# ij_java_space_before_array_initializer_left_brace = false +# ij_java_space_before_catch_keyword = true +# ij_java_space_before_catch_left_brace = true +# ij_java_space_before_catch_parentheses = true +# ij_java_space_before_class_left_brace = true +# ij_java_space_before_colon = true +# ij_java_space_before_colon_in_foreach = true +# ij_java_space_before_comma = false +# ij_java_space_before_do_left_brace = true +# ij_java_space_before_else_keyword = true +# ij_java_space_before_else_left_brace = true +# ij_java_space_before_finally_keyword = true +# ij_java_space_before_finally_left_brace = true +# ij_java_space_before_for_left_brace = true +# ij_java_space_before_for_parentheses = true +# ij_java_space_before_for_semicolon = false +# ij_java_space_before_if_left_brace = true +# ij_java_space_before_if_parentheses = true +# ij_java_space_before_method_call_parentheses = false +# ij_java_space_before_method_left_brace = true +# ij_java_space_before_method_parentheses = false +# ij_java_space_before_opening_angle_bracket_in_type_parameter = false +# ij_java_space_before_quest = true +# ij_java_space_before_switch_left_brace = true +# ij_java_space_before_switch_parentheses = true +# ij_java_space_before_synchronized_left_brace = true +# ij_java_space_before_synchronized_parentheses = true +# ij_java_space_before_try_left_brace = true +# ij_java_space_before_try_parentheses = true +# ij_java_space_before_type_parameter_list = false +# ij_java_space_before_while_keyword = true +# ij_java_space_before_while_left_brace = true +# ij_java_space_before_while_parentheses = true +# ij_java_space_inside_one_line_enum_braces = false +# ij_java_space_within_empty_array_initializer_braces = false +# ij_java_space_within_empty_method_call_parentheses = false +# ij_java_space_within_empty_method_parentheses = false +# ij_java_spaces_around_additive_operators = true +# ij_java_spaces_around_assignment_operators = true +# ij_java_spaces_around_bitwise_operators = true +# ij_java_spaces_around_equality_operators = true +# ij_java_spaces_around_lambda_arrow = true +# ij_java_spaces_around_logical_operators = true +# ij_java_spaces_around_method_ref_dbl_colon = false +# ij_java_spaces_around_multiplicative_operators = true +# ij_java_spaces_around_relational_operators = true +# ij_java_spaces_around_shift_operators = true +# ij_java_spaces_around_type_bounds_in_type_parameters = true +# ij_java_spaces_around_unary_operator = false +# ij_java_spaces_within_angle_brackets = false +# ij_java_spaces_within_annotation_parentheses = false +# ij_java_spaces_within_array_initializer_braces = false +# ij_java_spaces_within_braces = false +# ij_java_spaces_within_brackets = false +# ij_java_spaces_within_cast_parentheses = false +# ij_java_spaces_within_catch_parentheses = false +# ij_java_spaces_within_for_parentheses = false +# ij_java_spaces_within_if_parentheses = false +# ij_java_spaces_within_method_call_parentheses = false +# ij_java_spaces_within_method_parentheses = false +# ij_java_spaces_within_parentheses = false +# ij_java_spaces_within_switch_parentheses = false +# ij_java_spaces_within_synchronized_parentheses = false +# ij_java_spaces_within_try_parentheses = false +# ij_java_spaces_within_while_parentheses = false +# ij_java_special_else_if_treatment = true +# ij_java_subclass_name_suffix = Impl +# ij_java_ternary_operation_signs_on_next_line = false +# ij_java_ternary_operation_wrap = off +# ij_java_test_name_suffix = Test +# ij_java_throws_keyword_wrap = off +# ij_java_throws_list_wrap = off +# ij_java_use_external_annotations = false +# ij_java_use_fq_class_names = false +# ij_java_use_single_class_imports = true +# ij_java_variable_annotation_wrap = off +# ij_java_visibility = public +# ij_java_while_brace_force = never +# ij_java_while_on_new_line = false +# ij_java_wrap_comments = false +# ij_java_wrap_first_method_in_call_chain = false +# ij_java_wrap_long_lines = false + +[.editorconfig] +# ij_editorconfig_align_group_field_declarations = false +# ij_editorconfig_space_after_colon = false +# ij_editorconfig_space_after_comma = true +# ij_editorconfig_space_before_colon = false +# ij_editorconfig_space_before_comma = false +# ij_editorconfig_spaces_around_assignment_operators = true + +[{*.gradle, *.groovy, *.gant, *.gdsl, *.gy, *.gson}] +# ij_continuation_indent_size = 4 +# ij_groovy_align_group_field_declarations = false +# ij_groovy_align_multiline_array_initializer_expression = false +# ij_groovy_align_multiline_assignment = false +# ij_groovy_align_multiline_binary_operation = false +# ij_groovy_align_multiline_chained_methods = false +# ij_groovy_align_multiline_extends_list = false +# ij_groovy_align_multiline_for = true +# ij_groovy_align_multiline_method_parentheses = false +# ij_groovy_align_multiline_parameters = true +# ij_groovy_align_multiline_parameters_in_calls = false +# ij_groovy_align_multiline_resources = true +# ij_groovy_align_multiline_ternary_operation = false +# ij_groovy_align_multiline_throws_list = false +# ij_groovy_align_throws_keyword = false +# ij_groovy_array_initializer_new_line_after_left_brace = false +# ij_groovy_array_initializer_right_brace_on_new_line = false +# ij_groovy_array_initializer_wrap = off +# ij_groovy_assert_statement_wrap = off +# ij_groovy_assignment_wrap = off +# ij_groovy_binary_operation_wrap = off +# ij_groovy_blank_lines_after_class_header = 0 +# ij_groovy_blank_lines_after_imports = 1 +# ij_groovy_blank_lines_after_package = 1 +# ij_groovy_blank_lines_around_class = 1 +# ij_groovy_blank_lines_around_field = 0 +# ij_groovy_blank_lines_around_field_in_interface = 0 +# ij_groovy_blank_lines_around_method = 1 +# ij_groovy_blank_lines_around_method_in_interface = 1 +# ij_groovy_blank_lines_before_imports = 1 +# ij_groovy_blank_lines_before_method_body = 0 +# ij_groovy_blank_lines_before_package = 0 +# ij_groovy_block_brace_style = end_of_line +# ij_groovy_block_comment_at_first_column = true +# ij_groovy_call_parameters_new_line_after_left_paren = false +# ij_groovy_call_parameters_right_paren_on_new_line = false +# ij_groovy_call_parameters_wrap = off +# ij_groovy_catch_on_new_line = false +# ij_groovy_class_annotation_wrap = split_into_lines +# ij_groovy_class_brace_style = end_of_line +# ij_groovy_do_while_brace_force = never +# ij_groovy_else_on_new_line = false +# ij_groovy_enum_constants_wrap = off +# ij_groovy_extends_keyword_wrap = off +# ij_groovy_extends_list_wrap = off +# ij_groovy_field_annotation_wrap = split_into_lines +# ij_groovy_finally_on_new_line = false +# ij_groovy_for_brace_force = never +# ij_groovy_for_statement_new_line_after_left_paren = false +# ij_groovy_for_statement_right_paren_on_new_line = false +# ij_groovy_for_statement_wrap = off +# ij_groovy_if_brace_force = never +# ij_groovy_indent_case_from_switch = true +# ij_groovy_keep_blank_lines_before_right_brace = 2 +# ij_groovy_keep_blank_lines_in_code = 2 +# ij_groovy_keep_blank_lines_in_declarations = 2 +# ij_groovy_keep_control_statement_in_one_line = true +# ij_groovy_keep_first_column_comment = true +# ij_groovy_keep_indents_on_empty_lines = false +# ij_groovy_keep_line_breaks = true +# ij_groovy_keep_multiple_expressions_in_one_line = false +# ij_groovy_keep_simple_blocks_in_one_line = false +# ij_groovy_keep_simple_classes_in_one_line = true +# ij_groovy_keep_simple_lambdas_in_one_line = true +# ij_groovy_keep_simple_methods_in_one_line = true +# ij_groovy_lambda_brace_style = end_of_line +# ij_groovy_line_comment_add_space = false +# ij_groovy_line_comment_at_first_column = true +# ij_groovy_method_annotation_wrap = split_into_lines +# ij_groovy_method_brace_style = end_of_line +# ij_groovy_method_call_chain_wrap = off +# ij_groovy_method_parameters_new_line_after_left_paren = false +# ij_groovy_method_parameters_right_paren_on_new_line = false +# ij_groovy_method_parameters_wrap = off +# ij_groovy_modifier_list_wrap = false +# ij_groovy_parameter_annotation_wrap = off +# ij_groovy_parentheses_expression_new_line_after_left_paren = false +# ij_groovy_parentheses_expression_right_paren_on_new_line = false +# ij_groovy_prefer_parameters_wrap = false +# ij_groovy_resource_list_new_line_after_left_paren = false +# ij_groovy_resource_list_right_paren_on_new_line = false +# ij_groovy_resource_list_wrap = off +# ij_groovy_space_after_colon = true +# ij_groovy_space_after_comma = true +# ij_groovy_space_after_comma_in_type_arguments = true +# ij_groovy_space_after_for_semicolon = true +# ij_groovy_space_after_quest = true +# ij_groovy_space_after_type_cast = true +# ij_groovy_space_before_annotation_parameter_list = false +# ij_groovy_space_before_array_initializer_left_brace = false +# ij_groovy_space_before_catch_keyword = true +# ij_groovy_space_before_catch_left_brace = true +# ij_groovy_space_before_catch_parentheses = true +# ij_groovy_space_before_class_left_brace = true +# ij_groovy_space_before_colon = true +# ij_groovy_space_before_comma = false +# ij_groovy_space_before_do_left_brace = true +# ij_groovy_space_before_else_keyword = true +# ij_groovy_space_before_else_left_brace = true +# ij_groovy_space_before_finally_keyword = true +# ij_groovy_space_before_finally_left_brace = true +# ij_groovy_space_before_for_left_brace = true +# ij_groovy_space_before_for_parentheses = true +# ij_groovy_space_before_for_semicolon = false +# ij_groovy_space_before_if_left_brace = true +# ij_groovy_space_before_if_parentheses = true +# ij_groovy_space_before_method_call_parentheses = false +# ij_groovy_space_before_method_left_brace = true +# ij_groovy_space_before_method_parentheses = false +# ij_groovy_space_before_quest = true +# ij_groovy_space_before_switch_left_brace = true +# ij_groovy_space_before_switch_parentheses = true +# ij_groovy_space_before_synchronized_left_brace = true +# ij_groovy_space_before_synchronized_parentheses = true +# ij_groovy_space_before_try_left_brace = true +# ij_groovy_space_before_try_parentheses = true +# ij_groovy_space_before_while_keyword = true +# ij_groovy_space_before_while_left_brace = true +# ij_groovy_space_before_while_parentheses = true +# ij_groovy_space_within_empty_array_initializer_braces = false +# ij_groovy_space_within_empty_method_call_parentheses = false +# ij_groovy_spaces_around_additive_operators = true +# ij_groovy_spaces_around_assignment_operators = true +# ij_groovy_spaces_around_bitwise_operators = true +# ij_groovy_spaces_around_equality_operators = true +# ij_groovy_spaces_around_lambda_arrow = true +# ij_groovy_spaces_around_logical_operators = true +# ij_groovy_spaces_around_multiplicative_operators = true +# ij_groovy_spaces_around_relational_operators = true +# ij_groovy_spaces_around_shift_operators = true +# ij_groovy_spaces_within_annotation_parentheses = false +# ij_groovy_spaces_within_array_initializer_braces = false +# ij_groovy_spaces_within_braces = true +# ij_groovy_spaces_within_brackets = false +# ij_groovy_spaces_within_cast_parentheses = false +# ij_groovy_spaces_within_catch_parentheses = false +# ij_groovy_spaces_within_for_parentheses = false +# ij_groovy_spaces_within_if_parentheses = false +# ij_groovy_spaces_within_method_call_parentheses = false +# ij_groovy_spaces_within_method_parentheses = false +# ij_groovy_spaces_within_parentheses = false +# ij_groovy_spaces_within_switch_parentheses = false +# ij_groovy_spaces_within_synchronized_parentheses = false +# ij_groovy_spaces_within_try_parentheses = false +# ij_groovy_spaces_within_while_parentheses = false +# ij_groovy_special_else_if_treatment = true +# ij_groovy_ternary_operation_wrap = off +# ij_groovy_throws_keyword_wrap = off +# ij_groovy_throws_list_wrap = off +# ij_groovy_variable_annotation_wrap = off +# ij_groovy_while_brace_force = never +# ij_groovy_while_on_new_line = false +# ij_groovy_wrap_long_lines = false + +[{*.gradle.kts, *.kts, *.kt}] +# ij_kotlin_align_in_columns_case_branch = false +# ij_kotlin_align_multiline_binary_operation = false +# ij_kotlin_align_multiline_extends_list = false +# ij_kotlin_align_multiline_method_parentheses = false +# ij_kotlin_align_multiline_parameters = true +# ij_kotlin_align_multiline_parameters_in_calls = false +# ij_kotlin_assignment_wrap = normal +# ij_kotlin_blank_lines_after_class_header = 0 +# ij_kotlin_blank_lines_around_block_when_branches = 0 +# ij_kotlin_block_comment_at_first_column = true +# ij_kotlin_call_parameters_new_line_after_left_paren = true +# ij_kotlin_call_parameters_right_paren_on_new_line = true +# ij_kotlin_call_parameters_wrap = on_every_item +# ij_kotlin_catch_on_new_line = false +# ij_kotlin_class_annotation_wrap = split_into_lines +# ij_kotlin_code_style_defaults = KOTLIN_OFFICIAL +# ij_kotlin_continuation_indent_for_chained_calls = false +# ij_kotlin_continuation_indent_for_expression_bodies = false +# ij_kotlin_continuation_indent_in_argument_lists = false +# ij_kotlin_continuation_indent_in_elvis = false +# ij_kotlin_continuation_indent_in_if_conditions = false +# ij_kotlin_continuation_indent_in_parameter_lists = false +# ij_kotlin_continuation_indent_in_supertype_lists = false +# ij_kotlin_else_on_new_line = false +# ij_kotlin_enum_constants_wrap = off +# ij_kotlin_extends_list_wrap = normal +# ij_kotlin_field_annotation_wrap = split_into_lines +# ij_kotlin_finally_on_new_line = false +# ij_kotlin_if_rparen_on_new_line = true +# ij_kotlin_import_nested_classes = false +# ij_kotlin_insert_whitespaces_in_simple_one_line_method = true +# ij_kotlin_keep_blank_lines_before_right_brace = 2 +# ij_kotlin_keep_blank_lines_in_code = 2 +# ij_kotlin_keep_blank_lines_in_declarations = 2 +# ij_kotlin_keep_first_column_comment = true +# ij_kotlin_keep_indents_on_empty_lines = false +# ij_kotlin_keep_line_breaks = true +# ij_kotlin_lbrace_on_next_line = false +# ij_kotlin_line_comment_add_space = false +# ij_kotlin_line_comment_at_first_column = true +# ij_kotlin_method_annotation_wrap = split_into_lines +# ij_kotlin_method_call_chain_wrap = normal +# ij_kotlin_method_parameters_new_line_after_left_paren = true +# ij_kotlin_method_parameters_right_paren_on_new_line = true +# ij_kotlin_method_parameters_wrap = on_every_item +# ij_kotlin_name_count_to_use_star_import = 5 +# ij_kotlin_name_count_to_use_star_import_for_members = 3 +# ij_kotlin_parameter_annotation_wrap = off +# ij_kotlin_space_after_comma = true +# ij_kotlin_space_after_extend_colon = true +# ij_kotlin_space_after_type_colon = true +# ij_kotlin_space_before_catch_parentheses = true +# ij_kotlin_space_before_comma = false +# ij_kotlin_space_before_extend_colon = true +# ij_kotlin_space_before_for_parentheses = true +# ij_kotlin_space_before_if_parentheses = true +# ij_kotlin_space_before_lambda_arrow = true +# ij_kotlin_space_before_type_colon = false +# ij_kotlin_space_before_when_parentheses = true +# ij_kotlin_space_before_while_parentheses = true +# ij_kotlin_spaces_around_additive_operators = true +# ij_kotlin_spaces_around_assignment_operators = true +# ij_kotlin_spaces_around_equality_operators = true +# ij_kotlin_spaces_around_function_type_arrow = true +# ij_kotlin_spaces_around_logical_operators = true +# ij_kotlin_spaces_around_multiplicative_operators = true +# ij_kotlin_spaces_around_range = false +# ij_kotlin_spaces_around_relational_operators = true +# ij_kotlin_spaces_around_unary_operator = false +# ij_kotlin_spaces_around_when_arrow = true +# ij_kotlin_variable_annotation_wrap = off +# ij_kotlin_while_on_new_line = false +# ij_kotlin_wrap_elvis_expressions = 1 +# ij_kotlin_wrap_expression_body_functions = 1 +# ij_kotlin_wrap_first_method_in_call_chain = false + +[{*.yml, *.yaml}] +# indent_size = 2 +# ij_continuation_indent_size = 2 +# ij_yaml_keep_indents_on_empty_lines = false +# ij_yaml_keep_line_breaks = true + +[{.babelrc, .stylelintrc, .eslintrc, jest.config, *.bowerrc, *.jsb3, *.jsb2, *.json}] +# indent_size = 2 +# ij_json_keep_blank_lines_in_code = 0 +# ij_json_keep_indents_on_empty_lines = false +# ij_json_keep_line_breaks = true +# ij_json_space_after_colon = true +# ij_json_space_after_comma = true +# ij_json_space_before_colon = true +# ij_json_space_before_comma = false +# ij_json_spaces_within_braces = false +# ij_json_spaces_within_brackets = false +# ij_json_wrap_long_lines = false + +[{messages.*, messages, spring.schemas, spring.handlers, *.properties}] +# ij_properties_align_group_field_declarations = false From 76e8a544b715246a8313f6f61b76aa9e33179986 Mon Sep 17 00:00:00 2001 From: "Pavel Erokhin (MairwunNx)" Date: 2020年5月20日 19:05:13 +0300 Subject: [PATCH 03/17] changelog.md file added. Signed-off-by: Pavel Erokhin (MairwunNx) --- changelog.md | 229 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 229 insertions(+) create mode 100644 changelog.md diff --git a/changelog.md b/changelog.md new file mode 100644 index 0000000..7995f71 --- /dev/null +++ b/changelog.md @@ -0,0 +1,229 @@ +# Changelog +All notable changes to this project will be documented in this file. + +The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), +and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). + +Since 2.0.0 versions change log same for all supported minecraft versions. + +⚠ - Breaking backward compatibility with dependants. + +## [Unreleased] + +## [2.0.0-RC.1] - 2020年05月20日 + +### Added +- Chinese simplified translation added by @KuroNoSeiHai. +- Compatibility with WorldEdit added. #25. +- `ModuleObject` implemented. +- Extended permissions checking for world events added. +- Permissions configuration added. +- `useSimplifiedWorldPermissions` setting added. +- `replaceWorldEditPermissionsHandler` setting added. +- Wrappers for forge and world edit added. +- Prefix configuration added. +- Command node for controlling group prefix added. +- `setGroupPrefix` method added to `PermissionsAPI`. +- Sub-commands for permissions node `save` and `reload` added. +- `debugMode` setting added. +- User removing command action implemented. +- User add permission command action implemented. +- User remove permission command action implemented. +- User listing permission command action implemented. +- User group set command action implemented. +- `getGroupPrefix` method added to `PermissionsAPI.kt`. +- `/perm user info ` implemented. +- `/perm group list [page]` implemented. +- `/perm group set-default ` implemented. +- `/perm group create ` implemented. +- `/perm group remove ` implemented. +- `/perm group permissions add ` implemented. +- `/perm group permissions remove ` implemented. +- `/perm group permissions list [[] []]` implemented. +- `/perm group inherit add ` implemented. +- `/perm group inherit remove ` implemented. +- `/perm group inherit list` implemented. +- Settings: `handle`: `BlockBreaking`, `BlockPlacing`, `FarmlandTrampling`, `ItemUsing` added. +- `setUserGroup`: group exist checking added. +- Documentation for `PermissionsAPI.kt` added. +- `groupPrefixTake` implemented. +- `enablePermissionsCommand` setting added. +- `/perm group prefix ` implemented. +- `/configure-permissions` command implemented. +- Inverting permission with `^` at node start added. + +### Changed +- Permissions module fully rewritten for new CoreV2. +- `mods.toml` version property value changed to `${file.jarVersion}`. +- Permissions API fully re-written. +- build.gradle cleanup. +- Configuration model changed. +- Kotlin version updated to `1.3.72`. +- Kotlin serialization gradle plugin updated. +- `.gitignore` synced with core module `.gitignore`. +- Gradle wrapper distribution type changed to `bin`. +- `description` property in `pack` object in `pack.mcmeta` changed. +- Updater end-point file changed to `updatev2.json`. +- `credits` property value changed in `mods.toml`. +- `description` property value changed in `mods.toml`. +- `project_essentials_core` dependency `versionRange` changed to `[2,)`. +- By default now owner group does not inherit any permissions. +- Default permissions was converted to new. +- `bug_report.md` synced with core repository. +- `PULL_REQUEST_TEMPLATE.md` synced with core repository. +- License now is `MIT` instead `LGPLv3`. + +### Fixed +- `setUserGroup` fixed incorrect behavior when user not exist. +- `kapt` removed from plugins. +- Removed `cooldown` dependency. +- `https://jitpack.io` maven repository removed. +- description from `dokkaJar` task removed. +- Incorrect result after adding group fixed. +- Incorrect result after adding user fixed. +- Incorrect behavior in `removeUserPermission` fixed. +- Some confusing with getting user by name fixed. + +### Removed +- Local assets removed. +- Links to not existing assets removed from `readme.md`. +- Directory paths for debugging removed. +- `klaxon_version` property removed from `gradle.properties`. + +## [1.15.2-1.0.2] - 2020年03月21日 + +### Fixed +- `java.lang.NoSuchMethodError` exception while server starting. + +## [1.14.4-1.2.2] - 2020年03月21日 + +### Fixed +- `java.lang.NoSuchMethodError` exception while server starting. + +## [1.15.2-1.0.1] - 2020年03月13日 + +### Added +- Server-side only safe localization. +- Default user `#server` with all permissions. + +### Changed +- Improved internal code. +- Dependencies: Kotlin, KotlinxSerialization updated. +- Dokka and Forge API updated. + +## [1.14.4-1.2.1] - 2020年03月13日 + +### Added +- Server-side only safe localization. +- Default user `#server` with all permissions. + +### Changed +- Improved internal code. +- Dependencies: Kotlin, KotlinxSerialization updated. +- Dokka and Forge API updated. + +## [1.14.4-1.2.0] - 2020年02月08日 + +### Changed +- Uses `cooldownAPIClassPath` from CoreAPI. +- modVersion in EntryPoint.kt updated. + +### Fixed +- Inconsistent version number format with semver. + +## [1.15.2-1.0.0] - 2020年02月07日 + +### Added +- Initial release. + +## [1.14.4-1.1.0.0] - 2020年01月18日 + +### Added +- Resolved #20. (Improve default permission configuration.) +- Resolved #19. (Implement permissions for block break and block place events.) + +### Changed +- Updated core module version. + +### Fixed +- Not working permissions in group with inheritance. + +## [1.14.4-1.0.1.0] - 2020年01月15日 + +### Added +- Added compatibility with core module `1.0.3.2`. +- Added compatibility with cooldown module `1.0.2.0`. + +### Changed +- Simplified code for creating directory. +- Usings optimal `JsonConfiguration` from core module. +- Updated gradle wrapper version to `5.6.4`. +- CHANGELOG.md renamed to changelog.md. +- Updated core module and cooldown module. +- Updated version number to `1.0.1.0`. + +### Removed +- Comments from [gradle.properties](gradle.properties). +- Redundant information logging. + +## [1.14.4-1.0.0.0] - 2020年01月12日 + +### Added +- CurseForge link for `/perm about` command. +- Compatibility with future versions of `Cooldowns` module. +- Detecting opped players (now all opped players have all permissions). +- `ess_core_version` and `ess_cooldown_version` variables to [gradle.properties](./gradle.properties). +- German translation by [@BixelPitch](https://github.com/BixelPitch). +- Serbian translation by [@vr1e](https://github.com/vr1e). +- Pull request temple to this repository by [@huangyz0918](https://github.com/huangyz0918). +- Ability to use shorten permission nodes. +- Implemented permission groups inheritance permissions. +- This [CHANGELOG.md](./changelog.md) file. + +### Changed +- [readme.md](./readme.md) changed information for developers. +- Simplified permissions command to `/permissions` or `/perm`. +- Simplified `JsonConfiguration` in [PermissionBase.kt](./src/main/kotlin/com/mairwunnx/projectessentials/permissions/permissions/PermissionBase.kt). +- Updated kotlin runtime version. +- Updated forge version, bumped kotlinx serialization. +- [build.gradle](./build.gradle) little file refactoring. +- PermissionData renamed to [PermissionModel.kt](./src/main/kotlin/com/mairwunnx/projectessentials/permissions/permissions/PermissionModel.kt). + +### Fixed +- Grammatical mistakes by [@Aircoookie](https://github.com/Aircoookie). +- Grammatical mistakes by [@abhiroopwastaken](https://github.com/abhiroopwastaken). +- Incorrect permission node for /permission reload command. + +### Removed +- Redundant logger messages. + +## [1.14.4-0.2.0.0] - 2019年10月12日 + +### Changed +- Improved configuration logging after loading. +- Fixed incorrect permission removing from user. +- Fixed mod crash on loading permission data for users. +- Fixed incorrect command aliases registering. + +## [1.14.4-0.1.1.0] - 2019年10月08日 + +### Added +- Added core module as dependency. + +### Changed +- Code cleanup + +## [1.14.4-0.1.0.2] - 2019年10月06日 + +### Changed +- Fixed some wrong meta information for mod. + +## [1.14.4-0.1.0.1] - 2019年10月04日 + +### Added +- Included gradle wrapper (Basically for API). + +## [1.14.4-0.1.0.0] - 2019年10月04日 + +### Added +- Initial release of PermissionsAPI as Project Essentials part. From 2a665882a06634408bb8121cfd625521161a3214 Mon Sep 17 00:00:00 2001 From: "Pavel Erokhin (MairwunNx)" Date: 2020年5月20日 19:05:22 +0300 Subject: [PATCH 04/17] readme.md file added. Signed-off-by: Pavel Erokhin (MairwunNx) --- readme.md | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 readme.md diff --git a/readme.md b/readme.md new file mode 100644 index 0000000..b028eec --- /dev/null +++ b/readme.md @@ -0,0 +1,29 @@ +### What is it + +Base module for all Project Essentials modules, API for creating modules of Project Essentials and reduce code duplication, also core module contains kotlin runtime and libraries. Also contains some settings for vanilla commands and events. + +### Explore + +#### [1.14.4 Download mod](https://github.com/ProjectEssentials/ProjectEssentials-Permissions/releases/download/v1.14.4-1.2.2/Project.Essentials.Permissions-1.14.4-1.2.2.jar) · [1.15.2 Download mod](https://github.com/ProjectEssentials/ProjectEssentials-Permissions/releases/download/v1.15.2-1.0.2/Project.Essentials.Permissions-1.15.2-1.0.2.jar) · [User guide](https://mairwunnx.gitbook.io/project-essentials/project-essentials-permissions#how-to-install) · [Developer documentation](https://mairwunnx.gitbook.io/project-essentials/project-essentials-permissions#api-in-using) · [Troubleshooting](https://github.com/ProjectEssentials/ProjectEssentials-Permissions/issues/new/choose) · [Telegram](https://t.me/minecraftforge) · [Discord](https://discord.gg/VU9XZAt) · [Change log](changelog.md) + +[![](https://github.com/ProjectEssentials/ProjectEssentials-Assets/raw/ASSETS-20-Q2/assets/common/support.png)](https://gist.github.com/MairwunNx/fda95062618db6880ef8ee06e1bba54f) + +### Support + +At now, I'm support minecraft versions: [1.14.4](https://github.com/ProjectEssentials/ProjectEssentials-Permissions/tree/MC-1.14.X) and [1.15.2](https://github.com/ProjectEssentials/ProjectEssentials-Permissions/tree/MC-1.15.2). + +### Credits + +- `hujle` for testing this mod and almost all modules in production +- [JetBrains](https://www.jetbrains.com/) for product licenses +- [KuroNoSeiHai](https://github.com/KuroNoSeiHai) for Chinese simplified translation +- [BixelPitch](https://github.com/BixelPitch) for German translation +- [abhiroopwastaken (Abhiroop Agarwal)](https://github.com/abhiroopwastaken) for grammatical mistakes correction +- [drigio (Gaurav Kondhare)](https://github.com/drigio) for best changelog.md +- [huangyz0918 (Yizheng Huang)](https://github.com/huangyz0918) for pretty pull request template +- [luckymurari (Santosh Lakshman M)](https://github.com/luckymurari) for bumping some mandatory dependencies +- [vr1e (Nikola)](https://github.com/vr1e) for Serbian translation +- [Aircoookie](https://github.com/Aircoookie) for improving wording in documentation +- [remikeophila (Rémi Keophila)](https://github.com/remikeophila) for cleaning up packages + +### Inspired by: [PermissionsEx](https://github.com/PEXPlugins/PermissionsEx) From 72c50282eef67bb7191ef404c6d8986adb48e570 Mon Sep 17 00:00:00 2001 From: "Pavel Erokhin (MairwunNx)" Date: 2020年5月20日 19:05:33 +0300 Subject: [PATCH 05/17] License was changed to MIT. Signed-off-by: Pavel Erokhin (MairwunNx) --- LICENSE | 165 -------------------------------------------------------- license | 21 ++++++++ 2 files changed, 21 insertions(+), 165 deletions(-) delete mode 100644 LICENSE create mode 100644 license diff --git a/LICENSE b/LICENSE deleted file mode 100644 index 0a04128..0000000 --- a/LICENSE +++ /dev/null @@ -1,165 +0,0 @@ - GNU LESSER GENERAL PUBLIC LICENSE - Version 3, 29 June 2007 - - Copyright (C) 2007 Free Software Foundation, Inc. - Everyone is permitted to copy and distribute verbatim copies - of this license document, but changing it is not allowed. - - - This version of the GNU Lesser General Public License incorporates -the terms and conditions of version 3 of the GNU General Public -License, supplemented by the additional permissions listed below. - - 0. Additional Definitions. - - As used herein, "this License" refers to version 3 of the GNU Lesser -General Public License, and the "GNU GPL" refers to version 3 of the GNU -General Public License. - - "The Library" refers to a covered work governed by this License, -other than an Application or a Combined Work as defined below. - - An "Application" is any work that makes use of an interface provided -by the Library, but which is not otherwise based on the Library. -Defining a subclass of a class defined by the Library is deemed a mode -of using an interface provided by the Library. - - A "Combined Work" is a work produced by combining or linking an -Application with the Library. The particular version of the Library -with which the Combined Work was made is also called the "Linked -Version". - - The "Minimal Corresponding Source" for a Combined Work means the -Corresponding Source for the Combined Work, excluding any source code -for portions of the Combined Work that, considered in isolation, are -based on the Application, and not on the Linked Version. - - The "Corresponding Application Code" for a Combined Work means the -object code and/or source code for the Application, including any data -and utility programs needed for reproducing the Combined Work from the -Application, but excluding the System Libraries of the Combined Work. - - 1. Exception to Section 3 of the GNU GPL. - - You may convey a covered work under sections 3 and 4 of this License -without being bound by section 3 of the GNU GPL. - - 2. Conveying Modified Versions. - - If you modify a copy of the Library, and, in your modifications, a -facility refers to a function or data to be supplied by an Application -that uses the facility (other than as an argument passed when the -facility is invoked), then you may convey a copy of the modified -version: - - a) under this License, provided that you make a good faith effort to - ensure that, in the event an Application does not supply the - function or data, the facility still operates, and performs - whatever part of its purpose remains meaningful, or - - b) under the GNU GPL, with none of the additional permissions of - this License applicable to that copy. - - 3. Object Code Incorporating Material from Library Header Files. - - The object code form of an Application may incorporate material from -a header file that is part of the Library. You may convey such object -code under terms of your choice, provided that, if the incorporated -material is not limited to numerical parameters, data structure -layouts and accessors, or small macros, inline functions and templates -(ten or fewer lines in length), you do both of the following: - - a) Give prominent notice with each copy of the object code that the - Library is used in it and that the Library and its use are - covered by this License. - - b) Accompany the object code with a copy of the GNU GPL and this license - document. - - 4. Combined Works. - - You may convey a Combined Work under terms of your choice that, -taken together, effectively do not restrict modification of the -portions of the Library contained in the Combined Work and reverse -engineering for debugging such modifications, if you also do each of -the following: - - a) Give prominent notice with each copy of the Combined Work that - the Library is used in it and that the Library and its use are - covered by this License. - - b) Accompany the Combined Work with a copy of the GNU GPL and this license - document. - - c) For a Combined Work that displays copyright notices during - execution, include the copyright notice for the Library among - these notices, as well as a reference directing the user to the - copies of the GNU GPL and this license document. - - d) Do one of the following: - - 0) Convey the Minimal Corresponding Source under the terms of this - License, and the Corresponding Application Code in a form - suitable for, and under terms that permit, the user to - recombine or relink the Application with a modified version of - the Linked Version to produce a modified Combined Work, in the - manner specified by section 6 of the GNU GPL for conveying - Corresponding Source. - - 1) Use a suitable shared library mechanism for linking with the - Library. A suitable mechanism is one that (a) uses at run time - a copy of the Library already present on the user's computer - system, and (b) will operate properly with a modified version - of the Library that is interface-compatible with the Linked - Version. - - e) Provide Installation Information, but only if you would otherwise - be required to provide such information under section 6 of the - GNU GPL, and only to the extent that such information is - necessary to install and execute a modified version of the - Combined Work produced by recombining or relinking the - Application with a modified version of the Linked Version. (If - you use option 4d0, the Installation Information must accompany - the Minimal Corresponding Source and Corresponding Application - Code. If you use option 4d1, you must provide the Installation - Information in the manner specified by section 6 of the GNU GPL - for conveying Corresponding Source.) - - 5. Combined Libraries. - - You may place library facilities that are a work based on the -Library side by side in a single library together with other library -facilities that are not Applications and are not covered by this -License, and convey such a combined library under terms of your -choice, if you do both of the following: - - a) Accompany the combined library with a copy of the same work based - on the Library, uncombined with any other library facilities, - conveyed under the terms of this License. - - b) Give prominent notice with the combined library that part of it - is a work based on the Library, and explaining where to find the - accompanying uncombined form of the same work. - - 6. Revised Versions of the GNU Lesser General Public License. - - The Free Software Foundation may publish revised and/or new versions -of the GNU Lesser General Public License from time to time. Such new -versions will be similar in spirit to the present version, but may -differ in detail to address new problems or concerns. - - Each version is given a distinguishing version number. If the -Library as you received it specifies that a certain numbered version -of the GNU Lesser General Public License "or any later version" -applies to it, you have the option of following the terms and -conditions either of that published version or of any later version -published by the Free Software Foundation. If the Library as you -received it does not specify a version number of the GNU Lesser -General Public License, you may choose any version of the GNU Lesser -General Public License ever published by the Free Software Foundation. - - If the Library as you received it specifies that a proxy can decide -whether future versions of the GNU Lesser General Public License shall -apply, that proxy's public statement of acceptance of any version is -permanent authorization for you to choose that version for the -Library. diff --git a/license b/license new file mode 100644 index 0000000..693ee2a --- /dev/null +++ b/license @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2020 Pavel Erokhin + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. From 3dc4aa39170d43408ed64b857d16a38afcd1b799 Mon Sep 17 00:00:00 2001 From: "Pavel Erokhin (MairwunNx)" Date: 2020年5月20日 19:08:14 +0300 Subject: [PATCH 06/17] changelog.md mistakes fixed. Signed-off-by: Pavel Erokhin (MairwunNx) --- changelog.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/changelog.md b/changelog.md index 7995f71..825a33a 100644 --- a/changelog.md +++ b/changelog.md @@ -75,16 +75,16 @@ Since 2.0.0 versions change log same for all supported minecraft versions. ### Fixed - `setUserGroup` fixed incorrect behavior when user not exist. -- `kapt` removed from plugins. -- Removed `cooldown` dependency. -- `https://jitpack.io` maven repository removed. -- description from `dokkaJar` task removed. - Incorrect result after adding group fixed. - Incorrect result after adding user fixed. - Incorrect behavior in `removeUserPermission` fixed. - Some confusing with getting user by name fixed. ### Removed +- `kapt` removed from plugins. +- Removed `cooldown` dependency. +- `https://jitpack.io` maven repository removed. +- description from `dokkaJar` task removed. - Local assets removed. - Links to not existing assets removed from `readme.md`. - Directory paths for debugging removed. From 7d536e33ab8c777135b130b20b13c611d8d25fdc Mon Sep 17 00:00:00 2001 From: "Pavel Erokhin (MairwunNx)" Date: 2020年5月20日 19:09:30 +0300 Subject: [PATCH 07/17] changelog.md warnings fixed. Signed-off-by: Pavel Erokhin (MairwunNx) --- changelog.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/changelog.md b/changelog.md index 825a33a..e356fcf 100644 --- a/changelog.md +++ b/changelog.md @@ -163,7 +163,7 @@ Since 2.0.0 versions change log same for all supported minecraft versions. - Updated version number to `1.0.1.0`. ### Removed -- Comments from [gradle.properties](gradle.properties). +- Comments from `gradle.properties`. - Redundant information logging. ## [1.14.4-1.0.0.0] - 2020年01月12日 @@ -172,7 +172,7 @@ Since 2.0.0 versions change log same for all supported minecraft versions. - CurseForge link for `/perm about` command. - Compatibility with future versions of `Cooldowns` module. - Detecting opped players (now all opped players have all permissions). -- `ess_core_version` and `ess_cooldown_version` variables to [gradle.properties](./gradle.properties). +- `ess_core_version` and `ess_cooldown_version` variables to `gradle.properties`. - German translation by [@BixelPitch](https://github.com/BixelPitch). - Serbian translation by [@vr1e](https://github.com/vr1e). - Pull request temple to this repository by [@huangyz0918](https://github.com/huangyz0918). @@ -181,13 +181,13 @@ Since 2.0.0 versions change log same for all supported minecraft versions. - This [CHANGELOG.md](./changelog.md) file. ### Changed -- [readme.md](./readme.md) changed information for developers. +- `readme.md` changed information for developers. - Simplified permissions command to `/permissions` or `/perm`. -- Simplified `JsonConfiguration` in [PermissionBase.kt](./src/main/kotlin/com/mairwunnx/projectessentials/permissions/permissions/PermissionBase.kt). +- Simplified `JsonConfiguration` in `PermissionBase.kt`. - Updated kotlin runtime version. - Updated forge version, bumped kotlinx serialization. -- [build.gradle](./build.gradle) little file refactoring. -- PermissionData renamed to [PermissionModel.kt](./src/main/kotlin/com/mairwunnx/projectessentials/permissions/permissions/PermissionModel.kt). +- `build.gradle` little file refactoring. +- PermissionData renamed to `PermissionModel.kt`. ### Fixed - Grammatical mistakes by [@Aircoookie](https://github.com/Aircoookie). From dfe310b6c037ea1cfd50453944af2a4f3e3f9a56 Mon Sep 17 00:00:00 2001 From: "Pavel Erokhin (MairwunNx)" Date: 2020年5月26日 13:51:00 +0300 Subject: [PATCH 08/17] changelog.md updated. Signed-off-by: Pavel Erokhin (MairwunNx) --- changelog.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/changelog.md b/changelog.md index e356fcf..d17f331 100644 --- a/changelog.md +++ b/changelog.md @@ -10,6 +10,10 @@ Since 2.0.0 versions change log same for all supported minecraft versions. ## [Unreleased] +### Changed +- Forge dependency version updated to `31.2.0`. *(For 1.15.2)* +- Forge mappings updated to `20200514-1.15.1`. *(For 1.15.2)* + ## [2.0.0-RC.1] - 2020年05月20日 ### Added From e83790a68959fbbd2fcc742020b69480cdf79531 Mon Sep 17 00:00:00 2001 From: Pavel Erokhin Date: Fri, 5 Jun 2020 15:37:25 +0300 Subject: [PATCH 09/17] Update changelog.md --- changelog.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/changelog.md b/changelog.md index d17f331..c0d490f 100644 --- a/changelog.md +++ b/changelog.md @@ -10,9 +10,25 @@ Since 2.0.0 versions change log same for all supported minecraft versions. ## [Unreleased] +## [2.0.0-RC.2] - 2020年06月05日 + ### Changed +- WE initializing now in module init. - Forge dependency version updated to `31.2.0`. *(For 1.15.2)* - Forge mappings updated to `20200514-1.15.1`. *(For 1.15.2)* +- gradle.properties core updated. + +### Fixed +- Incorrect module name getting fixed. +- PermissionsConfiguration.kt incorrect saving fixed. +- PermissionsSettingsConfiguration.kt incorrect saving fixed. + +### Removed +- Brigadier dependency removed. +- `enable-permissions-command` literal part removed. +- `enablePermissionsCommand` removed for handling. +- Removed `OnProcessorProcessing` event handling. +- `enablePermissionsCommand` removed from PermissionsSettingsConfigurationModel.kt. ## [2.0.0-RC.1] - 2020年05月20日 From dbc88fa2963db32e86a38a9df9b4dbf9c61b63da Mon Sep 17 00:00:00 2001 From: Pavel Erokhin Date: Fri, 5 Jun 2020 17:53:19 +0300 Subject: [PATCH 10/17] Update changelog.md --- changelog.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/changelog.md b/changelog.md index c0d490f..8cb2c1d 100644 --- a/changelog.md +++ b/changelog.md @@ -10,6 +10,11 @@ Since 2.0.0 versions change log same for all supported minecraft versions. ## [Unreleased] +## [2.0.0-RC.3] - 2020年06月05日 + +### Fixed +- WorldEdit compatibility fixed. + ## [2.0.0-RC.2] - 2020年06月05日 ### Changed From 4a1d360f8aa208dbfce78e1c77f35aa510194349 Mon Sep 17 00:00:00 2001 From: Pavel Erokhin Date: Mon, 8 Jun 2020 16:46:01 +0300 Subject: [PATCH 11/17] Update readme.md --- readme.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/readme.md b/readme.md index b028eec..0dfb695 100644 --- a/readme.md +++ b/readme.md @@ -4,7 +4,7 @@ Base module for all Project Essentials modules, API for creating modules of Proj ### Explore -#### [1.14.4 Download mod](https://github.com/ProjectEssentials/ProjectEssentials-Permissions/releases/download/v1.14.4-1.2.2/Project.Essentials.Permissions-1.14.4-1.2.2.jar) · [1.15.2 Download mod](https://github.com/ProjectEssentials/ProjectEssentials-Permissions/releases/download/v1.15.2-1.0.2/Project.Essentials.Permissions-1.15.2-1.0.2.jar) · [User guide](https://mairwunnx.gitbook.io/project-essentials/project-essentials-permissions#how-to-install) · [Developer documentation](https://mairwunnx.gitbook.io/project-essentials/project-essentials-permissions#api-in-using) · [Troubleshooting](https://github.com/ProjectEssentials/ProjectEssentials-Permissions/issues/new/choose) · [Telegram](https://t.me/minecraftforge) · [Discord](https://discord.gg/VU9XZAt) · [Change log](changelog.md) +#### [1.14.4 Download mod](https://github.com/ProjectEssentials/ProjectEssentials-Permissions/releases/download/2.0.0%2BMC-1.14.4/Project.Essentials.Permissions-2.0.0+MC-1.14.4.jar) · [1.15.2 Download mod](https://github.com/ProjectEssentials/ProjectEssentials-Permissions/releases/download/2.0.0%2BMC-1.15.2/Project.Essentials.Permissions-2.0.0+MC-1.15.2.jar) · [User guide](https://mairwunnx.gitbook.io/project-essentials/project-essentials-permissions#how-to-install) · [Developer documentation](https://mairwunnx.gitbook.io/project-essentials/project-essentials-permissions#api-in-using) · [Troubleshooting](https://github.com/ProjectEssentials/ProjectEssentials-Permissions/issues/new/choose) · [Telegram](https://t.me/minecraftforge) · [Discord](https://discord.gg/VU9XZAt) · [Change log](changelog.md) [![](https://github.com/ProjectEssentials/ProjectEssentials-Assets/raw/ASSETS-20-Q2/assets/common/support.png)](https://gist.github.com/MairwunNx/fda95062618db6880ef8ee06e1bba54f) From 5a7dc80754050c3d2ee10467a7bc3a042c8f32bd Mon Sep 17 00:00:00 2001 From: Pavel Erokhin Date: Mon, 8 Jun 2020 16:48:13 +0300 Subject: [PATCH 12/17] Update changelog.md --- changelog.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/changelog.md b/changelog.md index 8cb2c1d..93ac636 100644 --- a/changelog.md +++ b/changelog.md @@ -10,6 +10,22 @@ Since 2.0.0 versions change log same for all supported minecraft versions. ## [Unreleased] +## [2.0.0] - 2020年06月08日 + +### Added +- Added suggesting for permission command. + +### Changed +- Updated Chinese simplified localizations by @KuroNoSeiHai +- handleItemUsing and handleFarmlandTrampling by default is false. +- Default permissions updated. +- `core_version` dependency updated. +- `credits` updated in `mods.toml`. +- code dependency now is not transitive. + +### Fixed +- Incorrect item using checks fixed. + ## [2.0.0-RC.3] - 2020年06月05日 ### Fixed From f3f074fb67caa4a1b43166137f11e130a2ab5a45 Mon Sep 17 00:00:00 2001 From: Pavel Erokhin Date: 2020年6月20日 18:24:50 +0300 Subject: [PATCH 13/17] Update readme.md --- readme.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/readme.md b/readme.md index 0dfb695..b4facd8 100644 --- a/readme.md +++ b/readme.md @@ -1,10 +1,12 @@ +[![MIT License](https://img.shields.io/apm/l/atomic-design-ui.svg?)](https://github.com/ProjectEssentials/ProjectEssentials-Permissions/blob/master/LICENSEs) [![GitHub Release](https://img.shields.io/github/release/ProjectEssentials/ProjectEssentials-Permissions.svg?style=flat)]() [![Donate](https://img.shields.io/badge/$-support-ff69b4.svg?style=flat)](https://paypal.me/mairwunnx) [![Discord Chat](https://img.shields.io/discord/308323056592486420.svg)](https://discord.gg/VU9XZAt) + ### What is it Base module for all Project Essentials modules, API for creating modules of Project Essentials and reduce code duplication, also core module contains kotlin runtime and libraries. Also contains some settings for vanilla commands and events. ### Explore -#### [1.14.4 Download mod](https://github.com/ProjectEssentials/ProjectEssentials-Permissions/releases/download/2.0.0%2BMC-1.14.4/Project.Essentials.Permissions-2.0.0+MC-1.14.4.jar) · [1.15.2 Download mod](https://github.com/ProjectEssentials/ProjectEssentials-Permissions/releases/download/2.0.0%2BMC-1.15.2/Project.Essentials.Permissions-2.0.0+MC-1.15.2.jar) · [User guide](https://mairwunnx.gitbook.io/project-essentials/project-essentials-permissions#how-to-install) · [Developer documentation](https://mairwunnx.gitbook.io/project-essentials/project-essentials-permissions#api-in-using) · [Troubleshooting](https://github.com/ProjectEssentials/ProjectEssentials-Permissions/issues/new/choose) · [Telegram](https://t.me/minecraftforge) · [Discord](https://discord.gg/VU9XZAt) · [Change log](changelog.md) +#### [1.14.4 Download mod](https://github.com/ProjectEssentials/ProjectEssentials-Permissions/releases/download/2.0.0%2BMC-1.14.4/Project.Essentials.Permissions-2.0.0+MC-1.14.4.jar) · [1.15.2 Download mod](https://github.com/ProjectEssentials/ProjectEssentials-Permissions/releases/download/2.0.0%2BMC-1.15.2/Project.Essentials.Permissions-2.0.0+MC-1.15.2.jar) · [Documentation and Guides](https://projectessentials.github.io/manual) · [Troubleshooting](https://github.com/ProjectEssentials/ProjectEssentials-Permissions/issues/new/choose) · [Telegram](https://t.me/minecraftforge) · [Discord](https://discord.gg/VU9XZAt) · [CurseForge](https://www.curseforge.com/minecraft/mc-mods/project-essentials-permissions) · [Change log](changelog.md) [![](https://github.com/ProjectEssentials/ProjectEssentials-Assets/raw/ASSETS-20-Q2/assets/common/support.png)](https://gist.github.com/MairwunNx/fda95062618db6880ef8ee06e1bba54f) From 5e1b506993fa3a0b3162b52bd7191a2f4100d073 Mon Sep 17 00:00:00 2001 From: Pavel Erokhin Date: 2020年6月24日 10:40:47 +0300 Subject: [PATCH 14/17] Update readme.md --- readme.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/readme.md b/readme.md index b4facd8..55016b4 100644 --- a/readme.md +++ b/readme.md @@ -6,7 +6,7 @@ Base module for all Project Essentials modules, API for creating modules of Proj ### Explore -#### [1.14.4 Download mod](https://github.com/ProjectEssentials/ProjectEssentials-Permissions/releases/download/2.0.0%2BMC-1.14.4/Project.Essentials.Permissions-2.0.0+MC-1.14.4.jar) · [1.15.2 Download mod](https://github.com/ProjectEssentials/ProjectEssentials-Permissions/releases/download/2.0.0%2BMC-1.15.2/Project.Essentials.Permissions-2.0.0+MC-1.15.2.jar) · [Documentation and Guides](https://projectessentials.github.io/manual) · [Troubleshooting](https://github.com/ProjectEssentials/ProjectEssentials-Permissions/issues/new/choose) · [Telegram](https://t.me/minecraftforge) · [Discord](https://discord.gg/VU9XZAt) · [CurseForge](https://www.curseforge.com/minecraft/mc-mods/project-essentials-permissions) · [Change log](changelog.md) +#### [1.14.4 Download mod](https://github.com/ProjectEssentials/ProjectEssentials-Permissions/releases/download/2.0.1%2BMC-1.14.4/Project.Essentials.Permissions-2.0.1+MC-1.14.4.jar) · [1.15.2 Download mod](https://github.com/ProjectEssentials/ProjectEssentials-Permissions/releases/download/2.0.1%2BMC-1.15.2/Project.Essentials.Permissions-2.0.1+MC-1.15.2.jar) · [Documentation and Guides](https://projectessentials.github.io/manual) · [Troubleshooting](https://github.com/ProjectEssentials/ProjectEssentials-Permissions/issues/new/choose) · [Telegram](https://t.me/minecraftforge) · [Discord](https://discord.gg/VU9XZAt) · [CurseForge](https://www.curseforge.com/minecraft/mc-mods/project-essentials-permissions) · [Change log](changelog.md) [![](https://github.com/ProjectEssentials/ProjectEssentials-Assets/raw/ASSETS-20-Q2/assets/common/support.png)](https://gist.github.com/MairwunNx/fda95062618db6880ef8ee06e1bba54f) From ae7e399300af3d74abd79ed7d6955919666a48c7 Mon Sep 17 00:00:00 2001 From: Pavel Erokhin Date: 2020年6月24日 10:41:36 +0300 Subject: [PATCH 15/17] Update changelog.md --- changelog.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/changelog.md b/changelog.md index 93ac636..53b2fc6 100644 --- a/changelog.md +++ b/changelog.md @@ -10,6 +10,12 @@ Since 2.0.0 versions change log same for all supported minecraft versions. ## [Unreleased] +## [2.0.1] - 2020年06月24日 + +### Fixed +- Spacing in group prefix. +- Mistake in group setting for group. + ## [2.0.0] - 2020年06月08日 ### Added From 3021b6bc9b75c9d1d8b929ba2eceefbf8cdab060 Mon Sep 17 00:00:00 2001 From: Pavel Erokhin Date: 2020年6月24日 10:45:25 +0300 Subject: [PATCH 16/17] Update changelog.md --- changelog.md | 1 + 1 file changed, 1 insertion(+) diff --git a/changelog.md b/changelog.md index 53b2fc6..6213b6d 100644 --- a/changelog.md +++ b/changelog.md @@ -15,6 +15,7 @@ Since 2.0.0 versions change log same for all supported minecraft versions. ### Fixed - Spacing in group prefix. - Mistake in group setting for group. +- Unused suffix property added. ## [2.0.0] - 2020年06月08日 From bd54a6a1c562918213bb3eed72cec928c4ec7fa9 Mon Sep 17 00:00:00 2001 From: Pavel Erokhin Date: 2020年6月24日 10:45:37 +0300 Subject: [PATCH 17/17] Update changelog.md --- changelog.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/changelog.md b/changelog.md index 6213b6d..827ee81 100644 --- a/changelog.md +++ b/changelog.md @@ -12,10 +12,12 @@ Since 2.0.0 versions change log same for all supported minecraft versions. ## [2.0.1] - 2020年06月24日 +### Added +- Unused suffix property added. + ### Fixed - Spacing in group prefix. - Mistake in group setting for group. -- Unused suffix property added. ## [2.0.0] - 2020年06月08日

AltStyle によって変換されたページ (->オリジナル) /