Skip to content

Commit 2fddae8

Browse files
committed
HomeAPI.kt class path changed.
Signed-off-by: Pavel Erokhin (MairwunNx) <MairwunNx@gmail.com>
1 parent e4ccfd5 commit 2fddae8

File tree

5 files changed

+9
-6
lines changed

5 files changed

+9
-6
lines changed

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ package com.mairwunnx.projectessentials.home
33
import com.mairwunnx.projectessentials.core.EssBase
44
import com.mairwunnx.projectessentials.core.configuration.localization.LocalizationConfigurationUtils
55
import com.mairwunnx.projectessentials.core.localization.processLocalizations
6-
import com.mairwunnx.projectessentials.home.api.HomeAPI
76
import com.mairwunnx.projectessentials.home.commands.DelHomeCommand
87
import com.mairwunnx.projectessentials.home.commands.HomeCommand
98
import com.mairwunnx.projectessentials.home.commands.SetHomeCommand

src/main/kotlin/com/mairwunnx/projectessentials/home/api/HomeAPI.kt renamed to src/main/kotlin/com/mairwunnx/projectessentials/home/HomeAPI.kt

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.mairwunnx.projectessentials.home.api
1+
package com.mairwunnx.projectessentials.home
22

33
import com.mairwunnx.projectessentials.home.models.HomeModel
44
import com.mairwunnx.projectessentials.home.storage.StorageBase
@@ -45,7 +45,11 @@ object HomeAPI {
4545
it.home == name
4646
}
4747
} else {
48-
if (contains(homes, name)) return false
48+
if (contains(
49+
homes,
50+
name
51+
)
52+
) return false
4953
}
5054

5155
homes.add(

src/main/kotlin/com/mairwunnx/projectessentials/home/commands/DelHomeCommand.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import com.mairwunnx.projectessentials.core.helpers.throwOnlyPlayerCan
66
import com.mairwunnx.projectessentials.core.helpers.throwPermissionLevel
77
import com.mairwunnx.projectessentials.home.EntryPoint
88
import com.mairwunnx.projectessentials.home.EntryPoint.Companion.hasPermission
9-
import com.mairwunnx.projectessentials.home.api.HomeAPI
9+
import com.mairwunnx.projectessentials.home.HomeAPI
1010
import com.mairwunnx.projectessentials.home.sendMessage
1111
import com.mojang.brigadier.CommandDispatcher
1212
import com.mojang.brigadier.arguments.StringArgumentType

src/main/kotlin/com/mairwunnx/projectessentials/home/commands/HomeCommand.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import com.mairwunnx.projectessentials.core.helpers.throwOnlyPlayerCan
77
import com.mairwunnx.projectessentials.core.helpers.throwPermissionLevel
88
import com.mairwunnx.projectessentials.home.EntryPoint
99
import com.mairwunnx.projectessentials.home.EntryPoint.Companion.hasPermission
10-
import com.mairwunnx.projectessentials.home.api.HomeAPI
10+
import com.mairwunnx.projectessentials.home.HomeAPI
1111
import com.mairwunnx.projectessentials.home.models.HomeModel
1212
import com.mairwunnx.projectessentials.home.sendMessage
1313
import com.mojang.brigadier.CommandDispatcher

src/main/kotlin/com/mairwunnx/projectessentials/home/commands/SetHomeCommand.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import com.mairwunnx.projectessentials.core.helpers.throwOnlyPlayerCan
77
import com.mairwunnx.projectessentials.core.helpers.throwPermissionLevel
88
import com.mairwunnx.projectessentials.home.EntryPoint
99
import com.mairwunnx.projectessentials.home.EntryPoint.Companion.hasPermission
10-
import com.mairwunnx.projectessentials.home.api.HomeAPI
10+
import com.mairwunnx.projectessentials.home.HomeAPI
1111
import com.mairwunnx.projectessentials.home.sendMessage
1212
import com.mojang.brigadier.CommandDispatcher
1313
import com.mojang.brigadier.arguments.BoolArgumentType

0 commit comments

Comments
 (0)