Skip to content

Commit ada9b3e

Browse files
committed
All native commands realization now with internal access modifier.
Signed-off-by: Pavel Erokhin (MairwunNx) <MairwunNx@gmail.com>
1 parent 1cdea4a commit ada9b3e

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

57 files changed

+64
-63
lines changed

src/main/kotlin/com/mairwunnx/projectessentials/core/vanilla/commands/BanCommand.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ import net.minecraft.util.text.TranslationTextComponent
2626
import org.apache.logging.log4j.LogManager
2727
import java.util.*
2828

29-
object BanCommand {
29+
internal object BanCommand {
3030
private val logger = LogManager.getLogger()
3131
private var aliases =
3232
CommandsConfigurationUtils.getConfig().aliases.ban + "ban"

src/main/kotlin/com/mairwunnx/projectessentials/core/vanilla/commands/BanIpCommand.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ import org.apache.logging.log4j.LogManager
2626
import java.util.*
2727
import java.util.regex.Pattern
2828

29-
object BanIpCommand {
29+
internal object BanIpCommand {
3030
val IP_PATTERN: Pattern =
3131
Pattern.compile("^([01]?\\d\\d?|2[0-4]\\d|25[0-5])\\.([01]?\\d\\d?|2[0-4]\\d|25[0-5])\\.([01]?\\d\\d?|2[0-4]\\d|25[0-5])\\.([01]?\\d\\d?|2[0-4]\\d|25[0-5])$")
3232
private val IP_INVALID = SimpleCommandExceptionType(

src/main/kotlin/com/mairwunnx/projectessentials/core/vanilla/commands/BanListCommand.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import net.minecraft.server.management.BanEntry
2121
import net.minecraft.util.text.TranslationTextComponent
2222
import org.apache.logging.log4j.LogManager
2323

24-
object BanListCommand {
24+
internal object BanListCommand {
2525
private val logger = LogManager.getLogger()
2626
private var aliases =
2727
CommandsConfigurationUtils.getConfig().aliases.banlist + "banlist"

src/main/kotlin/com/mairwunnx/projectessentials/core/vanilla/commands/BossBarCommand.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ import net.minecraft.world.BossInfo
3636
import org.apache.logging.log4j.LogManager
3737
import java.util.function.Function
3838

39-
object BossBarCommand {
39+
internal object BossBarCommand {
4040
private val BOSS_BAR_ID_TAKEN = DynamicCommandExceptionType(
4141
Function { p_208783_0_: Any? ->
4242
TranslationTextComponent(

src/main/kotlin/com/mairwunnx/projectessentials/core/vanilla/commands/ClearCommand.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ import org.apache.logging.log4j.LogManager
2626
import java.util.function.Function
2727
import java.util.function.Predicate
2828

29-
object ClearCommand {
29+
internal object ClearCommand {
3030
private val SINGLE_FAILED_EXCEPTION = DynamicCommandExceptionType(
3131
Function { p_208785_0_: Any? ->
3232
TranslationTextComponent(

src/main/kotlin/com/mairwunnx/projectessentials/core/vanilla/commands/CloneCommand.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ import java.util.*
3333
import java.util.function.Predicate
3434

3535
@Suppress("DEPRECATION")
36-
object CloneCommand {
36+
internal object CloneCommand {
3737
private val OVERLAP_EXCEPTION = SimpleCommandExceptionType(
3838
TranslationTextComponent("commands.clone.overlap")
3939
)

src/main/kotlin/com/mairwunnx/projectessentials/core/vanilla/commands/DataPackCommand.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ import org.apache.logging.log4j.LogManager
3131
import java.util.function.Consumer
3232
import java.util.function.Function
3333

34-
object DataPackCommand {
34+
internal object DataPackCommand {
3535
private val UNKNOWN_DATA_PACK_EXCEPTION =
3636
DynamicCommandExceptionType(
3737
Function { p_208808_0_: Any? ->

src/main/kotlin/com/mairwunnx/projectessentials/core/vanilla/commands/DeOpCommand.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import net.minecraft.command.arguments.GameProfileArgument
2424
import net.minecraft.util.text.TranslationTextComponent
2525
import org.apache.logging.log4j.LogManager
2626

27-
object DeOpCommand {
27+
internal object DeOpCommand {
2828
private val FAILED_EXCEPTION = SimpleCommandExceptionType(
2929
TranslationTextComponent("commands.deop.failed")
3030
)

src/main/kotlin/com/mairwunnx/projectessentials/core/vanilla/commands/DebugCommand.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ import java.nio.file.spi.FileSystemProvider
3030
import java.text.SimpleDateFormat
3131
import java.util.*
3232

33-
object DebugCommand {
33+
internal object DebugCommand {
3434
private val field_225390_a = LogManager.getLogger()
3535
private val NOT_RUNNING_EXCEPTION = SimpleCommandExceptionType(
3636
TranslationTextComponent("commands.debug.notRunning")

src/main/kotlin/com/mairwunnx/projectessentials/core/vanilla/commands/DefaultGameModeCommand.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import net.minecraft.util.text.TranslationTextComponent
2020
import net.minecraft.world.GameType
2121
import org.apache.logging.log4j.LogManager
2222

23-
object DefaultGameModeCommand {
23+
internal object DefaultGameModeCommand {
2424
private val logger = LogManager.getLogger()
2525
private var aliases =
2626
CommandsConfigurationUtils.getConfig().aliases.defaultgamemode + "defaultgamemode"

0 commit comments

Comments
 (0)