This repository has been archived by the owner on Oct 12, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a5a6f8f
commit e9036bd
Showing
6 changed files
with
89 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
plugins { | ||
id 'xyz.jpenilla.run-paper' version '2.2.3' | ||
} | ||
|
||
dependencies { | ||
implementation project(':bukkit') | ||
compileOnly project(':common') | ||
|
||
compileOnly 'io.papermc.paper:paper-api:1.19.4-R0.1-SNAPSHOT' | ||
compileOnly 'org.bstats:bstats-bukkit:3.0.2' | ||
compileOnly 'org.jetbrains:annotations:24.1.0' | ||
} | ||
|
||
shadowJar { | ||
relocate 'net.william278.profanitycheckerapi', 'net.william278.huskchat.libraries.profanitycheckerapi' | ||
relocate 'net.william278.desertwell', 'net.william278.huskchat.libraries.desertwell' | ||
relocate 'de.themoep', 'net.william278.huskchat.libraries' | ||
relocate 'dev.vankka', 'net.william278.huskchat.libraries' | ||
relocate 'de.exlll', 'net.william278.huskchat.libraries' | ||
relocate 'org.snakeyaml.engine', 'net.william278.huskchat.libraries.snakeyaml.engine' | ||
relocate 'org.json', 'net.william278.huskchat.libraries.json' | ||
|
||
relocate 'org.apache', 'net.william278.huskchat.libraries' | ||
relocate 'org.jetbrains', 'net.william278.huskchat.libraries' | ||
relocate 'org.intellij', 'net.william278.huskchat.libraries' | ||
relocate 'org.bstats', 'net.william278.huskchat.libraries.bstats' | ||
relocate 'space.arim', 'net.william278.huskchat.libraries.morepaperlib' | ||
|
||
minimize() | ||
} | ||
|
||
tasks { | ||
runServer { | ||
minecraftVersion('1.20.4') | ||
|
||
downloadPlugins { | ||
url("https://download.luckperms.net/1526/bukkit/loader/LuckPerms-Bukkit-5.4.113.jar") | ||
url("https://ci.lucko.me/job/spark/399/artifact/spark-bukkit/build/libs/spark-1.10.58-bukkit.jar") | ||
} | ||
} | ||
} |
24 changes: 24 additions & 0 deletions
24
paper/src/main/java/net/william278/huskchat/PaperHuskChat.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
package net.william278.huskchat; | ||
|
||
import net.kyori.adventure.audience.Audience; | ||
import org.bukkit.entity.Player; | ||
import org.jetbrains.annotations.NotNull; | ||
|
||
import java.util.UUID; | ||
|
||
public class PaperHuskChat extends BukkitHuskChat { | ||
|
||
@NotNull | ||
@Override | ||
public Audience getAudience(@NotNull UUID user) { | ||
final Player player = getServer().getPlayer(user); | ||
return player == null || !player.isOnline() ? Audience.empty() : player; | ||
} | ||
|
||
@Override | ||
@NotNull | ||
public Audience getConsole() { | ||
return getServer().getConsoleSender(); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
name: 'HuskChat' | ||
description: '${description}' | ||
author: 'William278' | ||
website: 'https://william278.net/' | ||
main: 'net.william278.huskchat.PaperHuskChat' | ||
version: '${version}' | ||
api-version: '1.19' | ||
folia-supported: true | ||
dependencies: | ||
server: | ||
LuckPerms: | ||
load: BEFORE | ||
join-classpath: true | ||
required: false | ||
PlaceholderAPI: | ||
load: BEFORE | ||
join-classpath: true | ||
required: false | ||
Spicord: | ||
load: BEFORE | ||
join-classpath: true | ||
required: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,5 +11,6 @@ include( | |
'bungee', | ||
'velocity', | ||
'bukkit', | ||
'paper', | ||
'plugin' | ||
) |