File tree Expand file tree Collapse file tree 5 files changed +10
-29
lines changed
src/main/java/fr/xpdustry/template Expand file tree Collapse file tree 5 files changed +10
-29
lines changed Original file line number Diff line number Diff line change 1
1
name : Release
2
2
3
- on :
4
- push :
5
- tags :
6
- - ' v*'
7
- workflow_dispatch :
3
+ on : workflow_dispatch
8
4
9
5
jobs :
10
6
build :
Original file line number Diff line number Diff line change 2
2
3
3
[ ![ Jitpack latest version] ( https://jitpack.io/v/fr.xpdustry/TemplatePlugin.svg )] ( https://jitpack.io/#fr.xpdustry/TemplatePlugin )
4
4
[ ![ Build status] ( https://github.com/Xpdustry/TemplatePlugin/actions/workflows/build.yml/badge.svg?branch=master&event=push )] ( https://github.com/Xpdustry/TemplatePlugin/actions/workflows/build.yml )
5
- [ ![ Mindustry 5.0 | 6.0] ( https://img.shields.io/badge/Mindustry-5.0%20%7C%206.0-ffd37f )] ( https://github.com/Anuken/Mindustry/releases )
5
+ [ ![ Mindustry 5.0 | 6.0 | 7.0 ] ( https://img.shields.io/badge/Mindustry-5.0%20%7C%206.0%20%7C%207 .0-ffd37f )] ( https://github.com/Anuken/Mindustry/releases )
6
6
7
7
## Description
8
8
@@ -22,23 +22,7 @@ This template features some cool stuff such as:
22
22
23
23
- When you use this template, make sure to edit ` plugin.json ` and ` gradle.properties ` .
24
24
25
- - The plugin compiles to java 8 for compatibility reasons ,
25
+ - The plugin compiles to java 8 for maximum compatibility ,
26
26
but nothing keeps you to change the compiler target or source to a higher jdk.
27
27
28
- - For faster testing, I recommend you to add an exit statement at the end of your server startup script such as:
29
-
30
- ` run_server.bat `
31
- ``` batch
32
- @echo off
33
- java -jar server.jar
34
- exit
35
- ```
36
-
37
- ` run_server.sh `
38
- ``` shell
39
- #! /usr/bin/env bash
40
- java -jar server.jar
41
- exit
42
- ```
43
-
44
28
Thank you for using this template !
Original file line number Diff line number Diff line change 1
1
import groovy.json.JsonSlurper
2
+ import java.nio.charset.StandardCharsets
2
3
3
4
4
5
buildscript {
@@ -58,15 +59,15 @@ java{
58
59
compileJava {
59
60
sourceCompatibility = JavaVersion . VERSION_1_8
60
61
targetCompatibility = JavaVersion . VERSION_1_8
61
- options. encoding = " UTF-8 "
62
+ options. encoding = StandardCharsets . UTF_8
62
63
}
63
64
64
65
test {
65
66
useJUnitPlatform()
66
67
}
67
68
68
69
compileTestJava {
69
- options. encoding = " UTF-8 "
70
+ options. encoding = StandardCharsets . UTF_8
70
71
}
71
72
72
73
Original file line number Diff line number Diff line change 1
1
{
2
- "name" : " template-plugin" ,
2
+ "name" : " xpdustry- template-plugin" ,
3
3
"displayName" : " Xpdustry TemplatePlugin" ,
4
4
"author" : " Phinner" ,
5
5
"description" : " A template plugin for easier development, enjoy." ,
6
- "version" : " 1.6.2 " ,
6
+ "version" : " 1.7 " ,
7
7
"minGameVersion" : " 105" ,
8
8
"hidden" : true ,
9
9
"java" : true ,
10
- "main" : " fr.xpdustry.templates .TemplatePlugin" ,
10
+ "main" : " fr.xpdustry.template .TemplatePlugin" ,
11
11
"repo" : " Xpdustry/TemplatePlugin" ,
12
12
"dependencies" : []
13
13
}
Original file line number Diff line number Diff line change 1
- package fr .xpdustry .templates ;
1
+ package fr .xpdustry .template ;
2
2
3
3
import arc .util .*;
4
4
import mindustry .mod .Plugin ;
You can’t perform that action at this time.
0 commit comments