Compare commits
14 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 28c388cce5 | |||
| 509e47b969 | |||
| 85e365e5f0 | |||
| 04788c027a | |||
| e68b54c2b8 | |||
| a207582985 | |||
| e89422cf17 | |||
| 7249cf1414 | |||
| cf77cbcdfe | |||
| 4bbfab1e92 | |||
| eddf2a7b35 | |||
| 3cb10d7f39 | |||
| 066af110f5 | |||
| 77ec240d06 |
@@ -19,6 +19,9 @@
|
|||||||
*.tar.gz
|
*.tar.gz
|
||||||
*.rar
|
*.rar
|
||||||
|
|
||||||
|
# Include gradle-wrapper.jar
|
||||||
|
!/gradle/wrapper/gradle-wrapper.jar
|
||||||
|
|
||||||
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
|
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
|
||||||
hs_err_pid*
|
hs_err_pid*
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,15 @@
|
|||||||
|
### What's the advantage of using separated dependencies?
|
||||||
|
|
||||||
|
The plugin's jar size is **way** smaller (1.8 MB → 12 KB)
|
||||||
|
|
||||||
|
### How to use this plugin with separated dependencies:
|
||||||
|
|
||||||
|
1. Copy plugin jar to `./plugins`
|
||||||
|
2. Copy dependency jars to `./libs`
|
||||||
|
3. Change your start script from `java -jar <server.jar> nogui` to...
|
||||||
|
* For CraftBukkit / Spigot: `java -cp "<server.jar>:./libs/*" org.bukkit.craftbukkit.Main nogui`
|
||||||
|
* For PaperMC / Purpur: `java -cp "<server.jar>:./libs/*" -javaagent:<server.jar> io.papermc.paperclip.Paperclip nogui`
|
||||||
|
|
||||||
|
* Note: You should replace the `:` with `;` in the start script if you are using Windows.
|
||||||
|
* Note: Replace `<server.jar>` with the name of your CraftBukkit or Spigot jar file.
|
||||||
|
|
||||||
@@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
1. Download the latest version `.jar` in (Releases)[https://github.com/hykilpikonna/ActiveList/releases]
|
1. Download the latest version `.jar` in [Releases](https://github.com/hykilpikonna/ActiveList/releases)
|
||||||
2. Load it
|
2. Load it
|
||||||
- Plugman: `plugman load <jar name>`
|
- Plugman: `plugman load <jar name>`
|
||||||
- Yum: `yum load ActiveList`
|
- Yum: `yum load ActiveList`
|
||||||
@@ -13,6 +13,14 @@
|
|||||||
- Eg. If you want to show a reversed list (the most inactive player would be on the top) `al -r`
|
- Eg. If you want to show a reversed list (the most inactive player would be on the top) `al -r`
|
||||||
4. Done
|
4. Done
|
||||||
|
|
||||||
|
## Building
|
||||||
|
|
||||||
|
Linux `./gradlew shadowJar`
|
||||||
|
|
||||||
|
Windows `gradlew.bat shadowJar`
|
||||||
|
|
||||||
|
The jar will be placed in `build/libs`
|
||||||
|
|
||||||
## Screenshots
|
## Screenshots
|
||||||
|
|
||||||

|

|
||||||
|
|||||||
+9
-4
@@ -5,7 +5,7 @@ plugins {
|
|||||||
}
|
}
|
||||||
|
|
||||||
group = 'org.hydev.kt'
|
group = 'org.hydev.kt'
|
||||||
version = '1.0-SNAPSHOT'
|
version = '1.1-SNAPSHOT'
|
||||||
|
|
||||||
repositories {
|
repositories {
|
||||||
mavenCentral()
|
mavenCentral()
|
||||||
@@ -16,13 +16,18 @@ repositories {
|
|||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
compileOnly 'org.spigotmc:spigot-api:1.12.2-R0.1-SNAPSHOT' // The Spigot API with no shadowing. Requires the OSS repo.
|
compileOnly 'org.spigotmc:spigot-api:1.17.1-R0.1-SNAPSHOT' // The Spigot API with no shadowing. Requires the OSS repo.
|
||||||
}
|
}
|
||||||
|
|
||||||
compileKotlin {
|
compileKotlin {
|
||||||
kotlinOptions.jvmTarget = '11'
|
kotlinOptions.jvmTarget = '1.8'
|
||||||
}
|
}
|
||||||
|
|
||||||
compileTestKotlin {
|
compileTestKotlin {
|
||||||
kotlinOptions.jvmTarget = '11'
|
kotlinOptions.jvmTarget = '1.8'
|
||||||
|
}
|
||||||
|
|
||||||
|
task copyDependencies(type: Copy) {
|
||||||
|
from configurations.default
|
||||||
|
into 'build/dependencies'
|
||||||
}
|
}
|
||||||
|
|||||||
Vendored
BIN
Binary file not shown.
@@ -25,7 +25,7 @@ class ActiveList : JavaPlugin(), CommandExecutor
|
|||||||
{
|
{
|
||||||
super.onEnable()
|
super.onEnable()
|
||||||
|
|
||||||
getCommand("activelist").executor = this
|
getCommand("activelist")!!.setExecutor(this)
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun onCommand(sender: CommandSender, command: Command, label: String, _args: Array<out String>): Boolean
|
override fun onCommand(sender: CommandSender, command: Command, label: String, _args: Array<out String>): Boolean
|
||||||
@@ -54,7 +54,7 @@ class ActiveList : JavaPlugin(), CommandExecutor
|
|||||||
try
|
try
|
||||||
{
|
{
|
||||||
val yml = YamlConfiguration.loadConfiguration(it)
|
val yml = YamlConfiguration.loadConfiguration(it)
|
||||||
val name = yml.getString("lastAccountName")
|
val name = yml.getString("last-account-name") ?: yml.getString("lastAccountName") ?: ""
|
||||||
val logoutDate = yml.getLong("timestamps.logout")
|
val logoutDate = yml.getLong("timestamps.logout")
|
||||||
val money = yml.getString("money") ?: ""
|
val money = yml.getString("money") ?: ""
|
||||||
|
|
||||||
|
|||||||
@@ -3,8 +3,8 @@ description: A plugin to see active players and last login dates
|
|||||||
author: Hykilpikonna
|
author: Hykilpikonna
|
||||||
|
|
||||||
main: org.hydev.mc.ActiveList
|
main: org.hydev.mc.ActiveList
|
||||||
version: 1.0
|
version: 1.1
|
||||||
api-version: 1.14
|
api-version: 1.17
|
||||||
|
|
||||||
load: POSTWORLD
|
load: POSTWORLD
|
||||||
depend: [Essentials]
|
depend: [Essentials]
|
||||||
|
|||||||
Reference in New Issue
Block a user