File tree Expand file tree Collapse file tree 5 files changed +7
-13
lines changed
src/main/kotlin/dev/slne/surf/moderation/tools Expand file tree Collapse file tree 5 files changed +7
-13
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ dependencies {
1414}
1515
1616surfPaperPluginApi {
17- mainClass(" dev.slne.surf.moderation.tools.BukkitMain " )
17+ mainClass(" dev.slne.surf.moderation.tools.PaperMain " )
1818 foliaSupported(true )
1919 generateLibraryLoader(false )
2020
Original file line number Diff line number Diff line change 11kotlin.code.style =official
22kotlin.stdlib.default.dependency =false
33org.gradle.parallel =true
4- version =1.21.11-1.3.3 -SNAPSHOT
4+ version =1.21.11-1.3.4 -SNAPSHOT
Original file line number Diff line number Diff line change @@ -5,7 +5,4 @@ pluginManagement {
55 gradlePluginPortal()
66 maven(" https://repo.slne.dev/repository/maven-public/" ) { name = " maven-public" }
77 }
8- dependencies {
9- classpath(" dev.slne.surf:surf-api-gradle-plugin:1.21.11+" )
10- }
118}
Original file line number Diff line number Diff line change @@ -7,9 +7,9 @@ import dev.slne.surf.moderation.tools.listener.PlayerActionListener
77import dev.slne.surf.surfapi.bukkit.api.event.register
88import org.bukkit.plugin.java.JavaPlugin
99
10- val plugin get() = JavaPlugin .getPlugin(BukkitMain ::class .java)
10+ val plugin get() = JavaPlugin .getPlugin(PaperMain ::class .java)
1111
12- class BukkitMain : SuspendingJavaPlugin () {
12+ class PaperMain : SuspendingJavaPlugin () {
1313 override suspend fun onLoadAsync () {
1414 SurfModerationToolConfig .init ()
1515 }
Original file line number Diff line number Diff line change @@ -56,17 +56,14 @@ object FaqService {
5656 launch(plugin.entityDispatcher(target)) {
5757 target.sendText {
5858 appendArtyPrefix()
59- append {
60- text(target.name)
61- decorate(TextDecoration .BOLD )
62- }
59+ variableValue(" @${target.name} " , TextDecoration .BOLD )
6360 appendSpace()
6461 append(faq.message)
6562 }
6663
6764 target.playSound(useSelfEmitter = true ) {
68- type(Sound .BLOCK_NOTE_BLOCK_BELL )
69- source(Source .PLAYER )
65+ type(Sound .ENTITY_CHICKEN_EGG )
66+ source(Source .MASTER )
7067 volume(1f )
7168 pitch(1f )
7269 }
You can’t perform that action at this time.
0 commit comments