Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Felitendo committed Mar 27, 2024
1 parent fc6bfb8 commit 9bbe898
Show file tree
Hide file tree
Showing 46 changed files with 3,270 additions and 0 deletions.
1,043 changes: 1,043 additions & 0 deletions .editorconfig

Large diffs are not rendered by default.

32 changes: 32 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: LabyAddon Build

on:
push:
branches: [ "master", "main" ]
pull_request:
branches: [ "master", "main" ]
workflow_dispatch:

env:
PUBLIC_RELEASE_BUILD: true
PUBLIC_RELEASE_BUILD_TOKEN: ${{ secrets.PUBLIC_RELEASE_BUILD_TOKEN }}

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
distribution: 'corretto'
java-version: '17'
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build with Gradle
run : ./gradlew build --full-stacktrace
- name: Upload Artifact
uses: actions/upload-artifact@v3
with:
name: Artifacts
path : build/libs/*-release.jar
136 changes: 136 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,136 @@
# Created by .ignore support plugin (hsz.mobi)
### Java template
# 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*

### JetBrains template
# 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
.idea/**/misc.xml
.idea/**/discord.xml
.idea/**/encodings.xml
.idea/codeStyles/
.idea/sonarlint/

# Generated files
.idea/**/contentModel.xml
.idea/**/jarRepositories.xml
.idea/**/uiDesigner.xml
.idea/**/inspectionProfiles
.idea/**/.name
.idea/**/vcs.xml
.idea/**/compiler.xml
.idea/**/libraries-with-intellij-classes.xml
run/**

# Sensitive or high-churn files
.idea/**/dataSources/
.idea/**/dataSources.ids
.idea/**/dataSources.local.xml
.idea/**/sqlDataSources.xml
.idea/**/dynamic.xml
.idea/**/dbnavigator.xml
.idea/kotlinScripting.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/artifacts
# .idea/compiler.xml
.idea/modules.xml
.idea/*.iml
# .idea/modules
# *.iml
# *.ipr

# CMake
cmake-build-*/

# Mongo Explorer plugin
.idea/**/mongoSettings.xml

# File-based project format
*.iws

# IntelliJ
out/

# 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

### Gradle template
.gradle
/**/build/

# Ignore Gradle GUI config
gradle-app.setting

# Avoid ignoring Gradle wrapper jar file (.jar files are usually ignored)
!gradle-wrapper.jar

# Cache of project
.gradletasknamecache

# # Work around https://youtrack.jetbrains.com/issue/IDEA-116898
# gradle/wrapper/gradle-wrapper.properties

.idea/modules/

.idea/intellij-javadocs-4.0.1.xml
docs/generated/

# Project
run/

# LabyGradle | Addon Plugin
build-data.txt
10 changes: 10 additions & 0 deletions .idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

170 changes: 170 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,170 @@
<h1 align="center">SendToServer <img src="https://em-content.zobj.net/thumbs/160/twitter/322/linked-paperclips_1f587-fe0f.png" width="30" alt="Link emoji"></h1>
<p align="center">Never again to the server list! <img src="https://em-content.zobj.net/thumbs/160/twitter/322/fire_1f525.png" width="15" alt="Fire emoji"></p>

<h3>🤖 How it works</h3>
<p>SendToServer is an addon developed for <a href="https://labymod.net/">LabyMod</a> that enables you to switch servers via a shortcut set in the addon settings.</p>

![LM4-SendServer-ChatMSGs](https://user-images.githubusercontent.com/63593457/189342973-e7cc6672-7f31-44e2-81a6-b2a68078ae7d.png)


<p>All you need to do to start switching servers with a shortcut is adding shortcuts in the addon settings.</p>
<br>
<h3>⚙️ Configuration</h3>
<b>Step 1</b> › Download the addon from the LabyMod addon store. If you want to use an unofficial version, there are sometimes unreleased features <a href="https://github.com/DoJapHD/sendtoserver-addon/releases">here</a>. Please note, that you won't receive any support for using or installing unofficial versions.

![LM4-Addonstore](https://user-images.githubusercontent.com/63593457/217375974-e3ec2756-4573-4e3a-9f92-7206fecd3f00.png)


<br>
<b>Step 2</b> › If you're asked to restart your game, please do so in order to activate the addon correctly. Now head over to the configuration by clicking on the small <code>⚙️</code> icon to finish the setup of your addon.
<br>
<br>


<br>
<b>Step 3</b> › Now you can set up everything you need. Make sure that you also have <b>enabled</b> the addon!
<br>

![LM4-SendServer-AddonSettings](https://user-images.githubusercontent.com/63593457/189341884-70313e18-14bd-4609-9d0c-3c3ab9186d3b.png)
<br>


<p align="center"><b>Your addon is now ready to go! Have fun with it! 🐶</b></p>

<br>
<h3>🚧 Changelog</h3>
<table>
<thead>
<tr>
<td><b>📑 Status</b></td>
<td><b>🎉 Feature</b></td>
<td><b>🗓️ Version</b></td>
<td><b>🏁 Store</b></td>
</tr>
</thead>
<tbody>
<tr>
<td>Initial Release</td>
<td>Switch server with shortcut system</td>
<td align="center"><b>v1.0 (LM3)</b></td>
<td>💖 Released</td>
</tr>
<tr>
<td>➕ Added</td>
<td><code>-send</code>, <code>-help</code> and <code>-shortcut</code> commands</td>
<td align="center"><b>v1.0 (LM3)</b></td>
<td>💖 Released</td>
</tr>
<tr>
<td>➖ Removed</td>
<td><code>-send</code>, <code>-help</code> and <code>-shortcut</code> commands</td>
<td align="center"><b>v1.0</b></td>
<td>💖 Released</td>
</tr>
<tr>
<td>➕ Added</td>
<td><code>/ssasend</code> and <code>/ssahelp</code> commands</td>
<td align="center"><b>v1.0</b></td>
<td>💖 Released</td>
</tr>
<tr>
<td>➕ Added</td>
<td>Open shorcut editor via command <code>/ssashortcuts</code></td>
<td align="center"><b>v1.1</b></td>
<td>💖 Released</td>
</tr>
<tr>
<td>➕ Fixed</td>
<td>Various bugs have been fixed</td>
<td align="center"><b>v1.1.1 & v1.1.2</b></td>
<td>💖 Released</td>
</tr>
<tr>
<td>➕ Added</td>
<td>Input validation added</td>
<td align="center"><b>v1.2</b></td>
<td>💖 Released</td>
</tr>
<tr>
<td>➕ Fixed</td>
<td>Updated code & removed deprecated methods</td>
<td align="center"><b>v1.2.1 & v1.2.2</b></td>
<td>💖 Released</td>
</tr>
<tr>
<td>➕ Added</td>
<td>Ports can now be used; Public release LabyMod 4</td>
<td align="center"><b>v1.3</b></td>
<td>🎉 Ready for Release</td>
</tr>
<tr>
<td>💡 Planned</td>
<td><b>If you have any ideas, feel free to contact me! </b></td>
<td align="center"><b>—</b></td>
<td align="center"><b>—</b></td>
</tr>
</tbody>
</table>

<code><b>💡 Planned</b> = Not even started yet / <b>🕑 Pending</b> Currently working on it / <b>🎉
Ready for Release</b> = Feature implemented with an update but not online at the addon store yet /
💖 <b>Released</b> = Features are available at the latest version from the addon store / <b>🛑
Canceled</b> = Feature won't be implemented</code>
<br>
<br>
<h3>🤝 Contributing</h3>
Anything you want to improve or add? I always appreciate help, bug reports and constructive
criticism! :)
<br>Let me know about anything in a pull-request, an issue or a short discord message!
<br>
<br>
<table>
<thead>
<td>🦖 User</td>
<td>🐱‍💻 Type of contribution</td>
</thead>
<tbody>
<tr>
<td><a href="https://laby.net/@7d34b8db-5405-4a51-8ce7-877d56a6bdb9">unordentlich</a></td>
<td>Translating</td>
</tr>
<tr>
<td><a href="https://laby.net/@14e39278-0a87-49ea-908d-2b4ba83668fc">Rafaeeel</a></td>
<td>Translating</td>
</tr>
<tr>
<td><a href="https://laby.net/@73fed119-1912-4c72-bb39-4dbb109fce3e">D1manGamer</a></td>
<td>Translating</td>
</tr>
<tr>
<td><a href="https://laby.net/@2d5f3be8-6635-4c9a-a2ac-01db6ffd4344">MrMesseeks</a></td>
<td>Translating</td>
</tr>
<tr>
<td><a href="https://laby.net/@a3d27869-a942-4ffd-a2a2-0523426f59d2">WalriderTime</a></td>
<td>Translating</td>
</tr>
<tr>
<td><a href="https://laby.net/@26d45041-3742-41f5-85ca-24ec4387347c">CrazySchnetzler</a></td>
<td>Icon-Design</td>
</tr>
<tr>
<td><a href="https://laby.net/@26d45041-3742-41f5-85ca-24ec4387347c">CrazySchnetzler</a></td>
<td>Troubleshooting, Bugfixing</td>
</tr>
<tr>
<td><a href="https://laby.net/@7d34b8db-5405-4a51-8ce7-877d56a6bdb9">unordentlich</a></td>
<td>Troubleshooting, Bugfixing</td>
</tr>
<tr>
<td><a href="https://laby.net/@753edb9b-2483-475e-a4f2-3fb2496b9f28">ennioderfeini</a></td>
<td>Documentation</td>
</tr>
<tr>
<td><a href="https://laby.net/@7d34b8db-5405-4a51-8ce7-877d56a6bdb9">unordentlich</a></td>
<td>Documentation (ReadMe)</td>
</tr>
</table>
<br>
<h3>📬 Contact</h3>
If you have any questions, requests or problems feel free to contact me on <a href="https://discord.com/users/364066630721994753"><b>Discord</b></a>!
26 changes: 26 additions & 0 deletions api/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
version = "0.1.0"

plugins {
id("java-library")
}

dependencies {
labyApi("api")

// If you want to use external libraries, you can do that here.
// The dependencies that are specified here are loaded into your project but will also
// automatically be downloaded by labymod, but only if the repository is public.
// If it is private, you have to add and compile the dependency manually.
// You have to specify the repository, there are getters for maven central and sonatype, every
// other repository has to be specified with their url. Example:
// maven(mavenCentral(), "org.apache.httpcomponents:httpclient:4.5.13")
}

labyModProcessor {
referenceType = net.labymod.gradle.core.processor.ReferenceType.INTERFACE
}

java {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
Empty file.
Loading

0 comments on commit 9bbe898

Please sign in to comment.