Skip to content
Open
Show file tree
Hide file tree
Changes from 8 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions .gitattributes.ft
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#
# https://help.github.com/articles/dealing-with-line-endings/
#
# Linux start script should use lf
/gradlew text eol=lf

# These are Windows script files and should use crlf
*.bat text eol=crlf

# Binary files should be left untouched
*.jar binary
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.idea
123 changes: 10 additions & 113 deletions Gradle.gitignore.ft
Original file line number Diff line number Diff line change
@@ -1,124 +1,21 @@
# User-specific stuff
.idea/
# MacOS DS_Store files
.DS_Store

*.iml
*.ipr
*.iws
# Gradle cache folder
.gradle

# Gradle build folder
build

# IntelliJ
out/
.idea
*.iml
# mpeltonen/sbt-idea plugin
.idea_modules/

# JIRA plugin
atlassian-ide-plugin.xml

# Compiled class file
*.class

# Log file
*.log

# BlueJ files
*.ctxt

# 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*

### Linux ###
*~

# temporary files which can be created if a process still has a handle open of a deleted file
.fuse_hidden*

# KDE directory preferences
.directory

# Linux trash folder which might appear on any partition or disk
.Trash-*

# .nfs files are created when an open file is removed but is still being accessed
.nfs*

### macOS ###
# General
.DS_Store
.AppleDouble
.LSOverride

# Icon must end with two \r
Icon

# Thumbnails
._*

# Files that might appear in the root of a volume
.DocumentRevisions-V100
.fseventsd
.Spotlight-V100
.TemporaryItems
.Trashes
.VolumeIcon.icns
.com.apple.timemachine.donotpresent

# Directories potentially created on remote AFP share
.AppleDB
.AppleDesktop
Network Trash Folder
Temporary Items
.apdisk

### Windows ###
# Windows thumbnail cache files
Thumbs.db
Thumbs.db:encryptable
ehthumbs.db
ehthumbs_vista.db

# Dump file
*.stackdump

# Folder config file
[Dd]esktop.ini

# Recycle Bin used on file shares
$RECYCLE.BIN/

# Windows Installer files
*.cab
*.msi
*.msix
*.msm
*.msp

# Windows shortcuts
*.lnk

### Gradle ###
.gradle
build/

# Ignore Gradle GUI config
gradle-app.setting

# Cache of project
.gradletasknamecache

### Gradle Patch ###
**/build/

# Common working directory
run/
runs/

# Avoid ignoring Gradle wrapper jar file (.jar files are usually ignored)
!gradle-wrapper.jar
run
12 changes: 12 additions & 0 deletions bukkit/BootstrapClass.java.ft
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
package ${MAIN_CLASS.packageName};

import io.papermc.paper.plugin.bootstrap.BootstrapContext;
import io.papermc.paper.plugin.bootstrap.PluginBootstrap;

class ${MAIN_CLASS.className}Bootstrap implements PluginBootstrap {

@Override
public void bootstrap(final BootstrapContext context) {
// Plugin bootstrap logic
}
}
11 changes: 11 additions & 0 deletions bukkit/BootstrapClass.kt.ft
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
package ${MAIN_CLASS.packageName}6

import io.papermc.paper.plugin.bootstrap.BootstrapContext
import io.papermc.paper.plugin.bootstrap.PluginBootstrap

internal class ${MAIN_CLASS.className}Bootstrap : PluginBootstrap {

override fun bootstrap(context: BootstrapContext) {
// Plugin bootstrap logic
}
}
12 changes: 12 additions & 0 deletions bukkit/LoaderClass.java.ft
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
package ${MAIN_CLASS.packageName};

import io.papermc.paper.plugin.loader.PluginClasspathBuilder;
import io.papermc.paper.plugin.loader.PluginLoader;

class ${MAIN_CLASS.className}Loader implements PluginLoader {

@Override
public void classloader(final PluginClasspathBuilder builder) {
// Add dynamically loaded libraries here
}
}
11 changes: 11 additions & 0 deletions bukkit/LoaderClass.kt.ft
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
package ${MAIN_CLASS.packageName}6

import io.papermc.paper.plugin.loader.PluginClasspathBuilder
import io.papermc.paper.plugin.loader.PluginLoader

internal class ${MAIN_CLASS.className}Loader : PluginLoader {

override fun classloader(builder: PluginClasspathBuilder) {
// Add dynamically loaded libraries here
}
}
1 change: 0 additions & 1 deletion bukkit/MainClass.java.ft
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ public final class ${MAIN_CLASS.className} extends JavaPlugin {
@Override
public void onEnable() {
// Plugin startup logic

}

@Override
Expand Down
71 changes: 0 additions & 71 deletions bukkit/build.gradle.ft

This file was deleted.

Loading