mirror of
https://github.com/Crazy-Crew/CrazyAuctions.git
synced 2024-11-13 10:33:55 +01:00
add empty plugin
This commit is contained in:
parent
f41da7ab69
commit
c8e370a1f2
71
build.gradle
Normal file
71
build.gradle
Normal file
@ -0,0 +1,71 @@
|
|||||||
|
plugins {
|
||||||
|
id 'java-library'
|
||||||
|
}
|
||||||
|
|
||||||
|
defaultTasks 'build'
|
||||||
|
|
||||||
|
def combineJars = tasks.register("combineJars", org.gradle.jvm.tasks.Jar) {
|
||||||
|
mustRunAfter build
|
||||||
|
|
||||||
|
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
|
||||||
|
|
||||||
|
from(files(subprojects.findAll { it.name != 'webmap' }.collect {
|
||||||
|
it.layout.buildDirectory.file("libs/${rootProject.name}-${it.name}-${it.version}.jar").get()
|
||||||
|
}).filter { it.name != 'MANIFEST.MF' }.collect { if (it.isDirectory()) it else zipTree(it) })
|
||||||
|
|
||||||
|
doLast {
|
||||||
|
File dir = new File(rootDir, "jars")
|
||||||
|
|
||||||
|
if (dir.exists()) dir.delete()
|
||||||
|
|
||||||
|
dir.mkdirs()
|
||||||
|
|
||||||
|
copy {
|
||||||
|
from(layout.buildDirectory.file("libs/${rootProject.name}-${rootProject.version}.jar"))
|
||||||
|
into(dir)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
assemble {
|
||||||
|
subprojects.forEach { project -> dependsOn ":${project.name}:build" }
|
||||||
|
|
||||||
|
finalizedBy combineJars
|
||||||
|
}
|
||||||
|
|
||||||
|
subprojects {
|
||||||
|
apply plugin: 'java-library'
|
||||||
|
|
||||||
|
repositories {
|
||||||
|
maven { url = 'https://repo.crazycrew.us/releases' }
|
||||||
|
|
||||||
|
maven { url = 'https://jitpack.io' }
|
||||||
|
|
||||||
|
mavenCentral()
|
||||||
|
}
|
||||||
|
|
||||||
|
if (name == "paper") {
|
||||||
|
repositories {
|
||||||
|
maven { url = 'https://repo.extendedclip.com/content/repositories/placeholderapi/' }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
compileJava {
|
||||||
|
options.encoding = 'UTF-8'
|
||||||
|
options.release.set(17)
|
||||||
|
}
|
||||||
|
|
||||||
|
java {
|
||||||
|
toolchain {
|
||||||
|
languageVersion = JavaLanguageVersion.of(17)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
javadoc {
|
||||||
|
options.encoding = 'UTF-8'
|
||||||
|
}
|
||||||
|
|
||||||
|
processResources {
|
||||||
|
filteringCharset = 'UTF-8'
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,7 @@
|
|||||||
|
package com.badbones69.crazyauctions.common.config;
|
||||||
|
|
||||||
|
public class ConfigFactory {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,7 @@
|
|||||||
|
package com.badbones69.crazyauctions.common.storage;
|
||||||
|
|
||||||
|
public class StorageFactory {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
@ -1,8 +1,15 @@
|
|||||||
org.gradle.jvmargs=-Xmx3G
|
org.gradle.jvmargs = '-Xmx3G'
|
||||||
org.gradle.parallel=false
|
org.gradle.parallel = false
|
||||||
org.gradle.warning.mode = all
|
org.gradle.warning.mode = all
|
||||||
|
|
||||||
authors = ["Ryderbelserion, Badbones69"]
|
authors = ["Ryderbelserion, Badbones69"]
|
||||||
website = https://modrinth.com/plugin/crazyauctions
|
website = https://modrinth.com/plugin/crazyauctions
|
||||||
sources = https://github.com/Crazy-Crew/CrazyAuctions
|
sources = https://github.com/Crazy-Crew/CrazyAuctions
|
||||||
issues = https://github.com/Crazy-Crew/CrazyAuctions/issues
|
issues = https://github.com/Crazy-Crew/CrazyAuctions/issues
|
||||||
|
|
||||||
|
group = com.badbones69.crazyauctions
|
||||||
|
description = Auction off items in style.
|
||||||
|
version = 1.3
|
||||||
|
apiVersion = 1.20
|
||||||
|
|
||||||
|
minecraftVersion = 1.20.2
|
35
gradle/libs.versions.toml
Normal file
35
gradle/libs.versions.toml
Normal file
@ -0,0 +1,35 @@
|
|||||||
|
[versions]
|
||||||
|
kyori_version = "4.14.0"
|
||||||
|
|
||||||
|
cluster_version = "3.1"
|
||||||
|
|
||||||
|
[plugins]
|
||||||
|
hangar = { id = "io.papermc.hangar-publish-plugin", version = "0.1.0" }
|
||||||
|
modrinth = { id = "com.modrinth.minotaur", version = "2.8.4" }
|
||||||
|
|
||||||
|
paperweight = { id = "io.papermc.paperweight.userdev", version = "1.5.9" }
|
||||||
|
runpaper = { id = "xyz.jpenilla.run-paper", version = "2.2.2" }
|
||||||
|
shadowjar = { id = "com.github.johnrengelman.shadow", version = "8.1.1" }
|
||||||
|
|
||||||
|
[libraries]
|
||||||
|
adventure = { module = "net.kyori:adventure-api", version.ref = "kyori_version" }
|
||||||
|
minimessage = { module = "net.kyori:adventure-text-minimessage", version.ref = "kyori_version" }
|
||||||
|
|
||||||
|
cluster_paper = { module = "com.ryderbelserion.cluster.paper:cluster-paper", version.ref = "cluster_version" }
|
||||||
|
cluster_api = { module = "com.ryderbelserion.cluster.api:cluster-api", version.ref = "cluster_version" }
|
||||||
|
|
||||||
|
nbtapi = { module = "de.tr7zw:item-nbt-api", version = "2.12.0" }
|
||||||
|
|
||||||
|
triumph_cmds = { module = "dev.triumphteam:triumph-cmd-bukkit", version = "2.0.0-SNAPSHOT" }
|
||||||
|
|
||||||
|
config_me = { module = "ch.jalu:configme", version = "1.4.1" }
|
||||||
|
|
||||||
|
metrics = { module = "org.bstats:bstats-bukkit", version = "3.0.2" }
|
||||||
|
|
||||||
|
itemsadder = { module = "com.github.LoneDev6:api-itemsadder", version = "3.6.1" }
|
||||||
|
oraxen = { module = "io.th0rgal:oraxen", version = "1.164.0" }
|
||||||
|
|
||||||
|
holographicdisplays = { module = "me.filoghost.holographicdisplays:holographicdisplays-api", version = "3.0.0" }
|
||||||
|
decentholograms = { module = "com.github.decentsoftware-eu:decentholograms", version = "2.8.4" }
|
||||||
|
|
||||||
|
placeholderapi = { module = "me.clip:placeholderapi", version = "2.11.4" }
|
54
paper/build.gradle
Normal file
54
paper/build.gradle
Normal file
@ -0,0 +1,54 @@
|
|||||||
|
plugins {
|
||||||
|
alias(libs.plugins.paperweight)
|
||||||
|
alias(libs.plugins.shadowjar)
|
||||||
|
|
||||||
|
alias(libs.plugins.runpaper)
|
||||||
|
}
|
||||||
|
|
||||||
|
project.group = "${rootProject.group}.paper"
|
||||||
|
project.version = rootProject.version
|
||||||
|
|
||||||
|
base {
|
||||||
|
archivesName = "${rootProject.name}-${project.name}"
|
||||||
|
}
|
||||||
|
|
||||||
|
dependencies {
|
||||||
|
paperweightDevelopmentBundle("io.papermc.paper:dev-bundle:$minecraftVersion-R0.1-SNAPSHOT")
|
||||||
|
}
|
||||||
|
|
||||||
|
tasks {
|
||||||
|
runServer {
|
||||||
|
jvmArgs("-Dnet.kyori.ansi.colorLevel=truecolor")
|
||||||
|
|
||||||
|
minecraftVersion(minecraftVersion)
|
||||||
|
}
|
||||||
|
|
||||||
|
assemble {
|
||||||
|
dependsOn(reobfJar)
|
||||||
|
}
|
||||||
|
|
||||||
|
shadowJar {
|
||||||
|
mergeServiceFiles()
|
||||||
|
|
||||||
|
exclude("META-INF/**")
|
||||||
|
}
|
||||||
|
|
||||||
|
processResources {
|
||||||
|
Map<String, String> props = new HashMap<>()
|
||||||
|
|
||||||
|
props.put("name", rootProject.name)
|
||||||
|
props.put("version", "$rootProject.version")
|
||||||
|
props.put("group", "$project.group")
|
||||||
|
props.put("description", rootProject.description)
|
||||||
|
|
||||||
|
props.put("apiVersion", apiVersion)
|
||||||
|
props.put("authors", authors)
|
||||||
|
props.put("website", website)
|
||||||
|
|
||||||
|
inputs.properties(props)
|
||||||
|
|
||||||
|
filesMatching("paper-plugin.yml") {
|
||||||
|
expand(props)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,27 @@
|
|||||||
|
package com.badbones69.crazyauctions.paper;
|
||||||
|
|
||||||
|
import org.bukkit.plugin.java.JavaPlugin;
|
||||||
|
import org.jetbrains.annotations.NotNull;
|
||||||
|
import java.util.Timer;
|
||||||
|
|
||||||
|
public class CrazyAuctions extends JavaPlugin {
|
||||||
|
|
||||||
|
@NotNull
|
||||||
|
public static CrazyAuctions get() {
|
||||||
|
return JavaPlugin.getPlugin(CrazyAuctions.class);
|
||||||
|
}
|
||||||
|
|
||||||
|
private Timer timer;
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void onEnable() {
|
||||||
|
// Instantiate timer
|
||||||
|
this.timer = new Timer();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void onDisable() {
|
||||||
|
// Cancel all timers.
|
||||||
|
if (this.timer != null) this.timer.cancel();
|
||||||
|
}
|
||||||
|
}
|
@ -1,73 +0,0 @@
|
|||||||
misc:
|
|
||||||
unknown-command: '{prefix}&cThis command is not known.'
|
|
||||||
reload-plugin: '{prefix}&7You have reloaded CrazyAuctions.'
|
|
||||||
|
|
||||||
errors:
|
|
||||||
internal-error: '{prefix}&cAn internal error has occurred. Please check the console for the full error.'
|
|
||||||
|
|
||||||
player:
|
|
||||||
purchased-item: '{prefix}&7You have bought an item for &a${price}.'
|
|
||||||
won-bidding: '{prefix}&7You have won a bid for &a${price}. &7Use &c/ah collect &7to collect your winnings.'
|
|
||||||
item-sold: '{prefix}&7Thank you for purchasing this item.'
|
|
||||||
requirements:
|
|
||||||
not-a-number: '{prefix}&a{arg} &cis not a number.'
|
|
||||||
too-many-args: '{prefix}&cYou put more arguments then I can handle.'
|
|
||||||
not-enough-args: '{prefix}&cYou did not supply enough arguments.'
|
|
||||||
must-be-player: '{prefix}&cYou must be a player to use this command.'
|
|
||||||
must-be-console-sender: '{prefix}&cYou must be using console to use this command.'
|
|
||||||
must-have-item-in-hand: '{prefix}&cYou must have an item in your hand.'
|
|
||||||
target-not-online: '{prefix}&cThe player &6{player} &cis not online.'
|
|
||||||
target-same-player: '{prefix}&cYou cannot use this command on yourself.'
|
|
||||||
no-permission: '{prefix}&cYou do not have permission to use that command!'
|
|
||||||
inventory-not-empty: '{prefix}&cInventory is not empty, Please make room in your inventory before buying/retrieving items.'
|
|
||||||
|
|
||||||
admin:
|
|
||||||
force-cancelled: '{prefix}&7You have force-cancelled the sale belonging to &c{player}.'
|
|
||||||
force-cancelled-player: '{prefix}&cOne of the items you had was force cancelled by an admin.'
|
|
||||||
|
|
||||||
auctions:
|
|
||||||
other:
|
|
||||||
player-bought-item: '{prefix}&7{player} &chas bought your item for &a${price}.'
|
|
||||||
player-won-your-bid: '{prefix}&7{player} &chas won your item with a bid of &a${price}.'
|
|
||||||
|
|
||||||
fixes:
|
|
||||||
book-not-allowed: '{prefix}&cThat book is not able to be sold in the auctionhouse.'
|
|
||||||
|
|
||||||
items:
|
|
||||||
damaged-goods: '{prefix}&cThat item is considered damaged goods and cannot be sold.'
|
|
||||||
blacklisted: '{prefix}&cThat item is not allowed to be sold here.'
|
|
||||||
max-amount: '{prefix}&cYou can''t list any more items in the auctionhouse.'
|
|
||||||
invalid-item: '{prefix}&cThat item isn''t in the auctionhouse anymore.'
|
|
||||||
expired-item: '{prefix}&cAn item in your auctionhouse has expired.'
|
|
||||||
cancelled-item: '{prefix}&7You have cancelled an item that was in the auctionhouse, View &c/ah expired &7to view your items.'
|
|
||||||
returned-item: '{prefix}&7Item has been returned.'
|
|
||||||
|
|
||||||
added-item-to-auction: '{prefix}&7You have added an item to the auctionhouse for &a${price}.'
|
|
||||||
economy:
|
|
||||||
money-required: '{prefix}&cYou need &a${money_needed} &cto purchase this.'
|
|
||||||
invalid-currency: '{prefix}&cThat is not a currency, Valid Types: {currencies}'
|
|
||||||
bidding:
|
|
||||||
disabled: '{prefix}&cThe ability to bid for items is disabled.'
|
|
||||||
successful: '{prefix}&7You have bid &a${bid} &7on that item.'
|
|
||||||
price:
|
|
||||||
low: '{prefix}&cStarting bid price is too low, The minimum is &a$100.'
|
|
||||||
high: '{prefix}&cStarting bid price is too high, The maximum is &a$1000000.'
|
|
||||||
bid-lower-than-current-bid: '{prefix}&cThe bid you tried to place is lower than &a{current_bid}, &cPlease raise your bid!'
|
|
||||||
selling:
|
|
||||||
disabled: '{prefix}&cThe ability to sell for items is disabled.'
|
|
||||||
price:
|
|
||||||
low: '{prefix}&cSell price is too low, The minimum is &a$10.'
|
|
||||||
high: '{prefix}&cSell price is too high, The maximum is &a$1000000.'
|
|
||||||
world-disabled: '{prefix}&cAuctions are disabled in &a{world}.'
|
|
||||||
|
|
||||||
command:
|
|
||||||
#ah:
|
|
||||||
# msg: ''
|
|
||||||
#view:
|
|
||||||
# msg: ''
|
|
||||||
#sell:
|
|
||||||
# msg: ''
|
|
||||||
#expired:
|
|
||||||
# msg: ''
|
|
||||||
#listed:
|
|
||||||
# msg: ''
|
|
@ -5,23 +5,4 @@ version: '${version}'
|
|||||||
api-version: '${apiVersion}'
|
api-version: '${apiVersion}'
|
||||||
description: '${description}'
|
description: '${description}'
|
||||||
|
|
||||||
bootstrapper: '${group}.CrazyStarter'
|
bootstrapper: '${group}.CrazyStarter'
|
||||||
|
|
||||||
dependencies:
|
|
||||||
server:
|
|
||||||
CMI:
|
|
||||||
load: BEFORE
|
|
||||||
required: false
|
|
||||||
join-classpath: false
|
|
||||||
DecentHolograms:
|
|
||||||
load: BEFORE
|
|
||||||
required: false
|
|
||||||
join-classpath: false
|
|
||||||
PlaceholderAPI:
|
|
||||||
load: BEFORE
|
|
||||||
required: false
|
|
||||||
join-classpath: false
|
|
||||||
Vault:
|
|
||||||
load: BEFORE
|
|
||||||
required: false
|
|
||||||
join-classpath: false
|
|
Loading…
Reference in New Issue
Block a user