Skip to content

Commit d7cdd4b

Browse files
committed
Release Candidate 1.
Signed-off-by: Pavel Erokhin (MairwunNx) <MairwunNx@gmail.com>
1 parent 51c0ed4 commit d7cdd4b

3 files changed

Lines changed: 31 additions & 11 deletions

File tree

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ kotlin_version=1.3.72
2020
kotlinx_serialization_version=0.20.0
2121
klaxon_version=5.0.1
2222
# Module informatation.
23-
module_version=2.0.0-SNAPSHOT.2+MC-1.14.4
23+
module_version=2.0.0-RC.1+MC-1.14.4
2424
module_name=Project Essentials Core
2525
module_id=project_essentials_core
2626
module_vendor=MairwunNx (Pavel Erokhin)

src/main/kotlin/com/mairwunnx/projectessentials/core/EntryPoint.kt

Lines changed: 29 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ import com.mairwunnx.projectessentials.core.impl.configurations.GeneralConfigura
2424
import com.mairwunnx.projectessentials.core.impl.configurations.NativeAliasesConfiguration
2525
import com.mairwunnx.projectessentials.core.impl.events.EventBridge
2626
import net.minecraft.entity.player.ServerPlayerEntity
27+
import net.minecraft.util.text.event.ClickEvent
2728
import net.minecraftforge.common.MinecraftForge.EVENT_BUS
2829
import net.minecraftforge.event.entity.player.PlayerEvent
2930
import net.minecraftforge.eventbus.api.SubscribeEvent
@@ -107,7 +108,25 @@ internal class EntryPoint {
107108
fun onServerStarting(event: FMLServerStartingEvent) {
108109
dudeFuckedOff = File(
109110
projectConfigDirectory + File.separator + "fuck-off-dude.txt"
110-
).exists()
111+
).exists().also {
112+
if (!it) {
113+
logger.warn(
114+
"""
115+
116+
Notification from Project Essentials
117+
118+
Project Essentials - the project is based on the enthusiasm of the author, the project is completely free to use and distribute. However, the author needs material support, that is, a donate.
119+
Project Essentials **is not a commercial project** and all its modules distributed free and not have any restrictions.
120+
121+
I will be very happy with your support, below is a link to the donation documentation and how to disable this annoying alert.
122+
For support project you can also put an star on the Project Essentials repository.
123+
124+
[ -> Support the project https://git.io/JfZ1V ]
125+
126+
"""
127+
)
128+
}
129+
}
111130
CommandAPI.assignDispatcherRoot(event.commandDispatcher)
112131
CommandAPI.assignDispatcher(event.commandDispatcher)
113132
ProcessorAPI.getProcessorByName("command").postProcess()
@@ -122,14 +141,15 @@ internal class EntryPoint {
122141
hasPermission(player, "ess.notification.support", 4) -> MessagingAPI.sendMessage(
123142
player,
124143
"""
125-
§6Notification from §7Project Essentials
126-
127-
§fProject Essentials - the project is based on the enthusiasm of the author, the project is completely free to use and distribute. However, the author needs material support, that is, a donate.
128-
Project Essentials §c§ois not a commercial project §fand all its modules distributed free of charge and not subject to any restrictions.
129-
130-
§7[ §c-> §support the project §6§nhttps://git.io/JfZ1V §7]
131-
""".trimIndent(),
132-
false
144+
§6Notification from §7Project Essentials
145+
146+
§fProject Essentials - the project is based on the enthusiasm of the author, the project is completely free to use and distribute. However, the author needs material support, that is, a donate.
147+
Project Essentials §c§ois not a commercial project §fand all its modules distributed free and not have any restrictions.
148+
149+
§7[ §c-> §7Support the project §6§nhttps://git.io/JfZ1V§7 ]
150+
""".trim(),
151+
false,
152+
clickEvent = ClickEvent(ClickEvent.Action.OPEN_URL, "https://git.io/JfZ1V")
133153
)
134154
}
135155
}

src/main/kotlin/com/mairwunnx/projectessentials/core/impl/ModuleObject.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import net.minecraftforge.fml.event.server.FMLServerStartingEvent
2323
import net.minecraftforge.fml.event.server.FMLServerStoppingEvent
2424

2525
@OptIn(ExperimentalUnsignedTypes::class)
26-
@Module("core", "2.0.0-SNAPSHOT.2+MC-1.14.4", 0u, "1.1.0")
26+
@Module("core", "2.0.0-RC.1+MC-1.14.4", 0u, "1.1.0")
2727
internal class ModuleObject : IModule {
2828
private var moduleDataCached: Module? = null
2929
private val generalConfiguration by lazy {

0 commit comments

Comments
 (0)