Skip to content

Commit f80af49

Browse files
committed
package
1 parent a1898c9 commit f80af49

8 files changed

Lines changed: 9 additions & 13 deletions

File tree

Core/src/main/kotlin/io/github/grassproject/framework/core/command/GPCommand.kt renamed to Core/src/main/kotlin/io/github/grassproject/framework/command/GPCommand.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package io.github.grassproject.framework.core.command
1+
package io.github.grassproject.framework.command
22

33
import io.github.grassproject.framework.core.GPPlugin
44
import io.github.grassproject.framework.exepction.CommandAlreadyRegistered

Core/src/main/kotlin/io/github/grassproject/framework/core/command/GPbrigadier.kt renamed to Core/src/main/kotlin/io/github/grassproject/framework/command/GPbrigadier.kt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1-
package io.github.grassproject.framework.core.command
1+
package io.github.grassproject.framework.command
22

33
import com.mojang.brigadier.arguments.ArgumentType
44
import com.mojang.brigadier.builder.LiteralArgumentBuilder
5+
import com.mojang.brigadier.builder.RequiredArgumentBuilder
56
import com.mojang.brigadier.tree.LiteralCommandNode
67
import io.papermc.paper.command.brigadier.CommandSourceStack
78
import org.bukkit.plugin.java.JavaPlugin
@@ -27,7 +28,7 @@ abstract class GPBrigadier {
2728
}
2829

2930
fun <T> argument(name: String, type: ArgumentType<T>, executes: ((CommandSourceStack, ArgumentType<T>) -> Int)? = null) {
30-
val argBuilder = com.mojang.brigadier.builder.RequiredArgumentBuilder.argument<CommandSourceStack, T>(name, type)
31+
val argBuilder = RequiredArgumentBuilder.argument<CommandSourceStack, T>(name, type)
3132
if (executes != null) {
3233
argBuilder.executes { ctx ->
3334
val value = ctx.getArgument(name, type.javaClass)

Core/src/main/kotlin/io/github/grassproject/framework/core/config/GPConfig.kt renamed to Core/src/main/kotlin/io/github/grassproject/framework/config/GPConfig.kt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
package io.github.grassproject.framework.core.config
1+
package io.github.grassproject.framework.config
22

3-
import io.github.grassproject.framework.config.GPFile
43
import io.github.grassproject.framework.core.GPPlugin
54

65
abstract class GPConfig<T : GPPlugin>(val plugin: T) {

Core/src/main/kotlin/io/github/grassproject/framework/core/events/GPEvent.kt renamed to Core/src/main/kotlin/io/github/grassproject/framework/events/GPEvent.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package io.github.grassproject.framework.core.events
1+
package io.github.grassproject.framework.events
22

33
import org.bukkit.entity.Player
44
import org.bukkit.event.Cancellable

Core/src/main/kotlin/io/github/grassproject/framework/core/events/GPListener.kt renamed to Core/src/main/kotlin/io/github/grassproject/framework/events/GPListener.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package io.github.grassproject.framework.core.events
1+
package io.github.grassproject.framework.events
22

33
import io.github.grassproject.framework.core.GPPlugin
44
import org.bukkit.event.Listener

Core/src/main/kotlin/io/github/grassproject/framework/events/GPPluginEvent.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
package io.github.grassproject.framework.events
22

3-
import io.github.grassproject.framework.core.events.GPEvent
43
import org.bukkit.plugin.Plugin
54

65
class GPPluginRegisterEvent(

Core/src/main/kotlin/io/github/grassproject/framework/core/message/GTranslate.kt renamed to Core/src/main/kotlin/io/github/grassproject/framework/message/GTranslate.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package io.github.grassproject.framework.core.message
1+
package io.github.grassproject.framework.message
22

33
import com.google.gson.Gson
44
import com.google.gson.JsonObject

src/main/kotlin/io/github/grassproject/framework/commands/GPFCommand.kt

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,9 @@ package io.github.grassproject.framework.commands
22

33
import io.github.grassproject.framework.GPFrameworkPlugin
44
import io.github.grassproject.framework.core.GPFrameworkEngine
5-
import io.github.grassproject.framework.core.command.GPCommand
5+
import io.github.grassproject.framework.command.GPCommand
66
import io.github.grassproject.framework.util.component.toMiniMessage
77
import io.github.grassproject.framework.utils.translate
8-
import net.kyori.adventure.text.Component
9-
import net.kyori.adventure.text.format.NamedTextColor
10-
import net.kyori.adventure.text.serializer.legacy.LegacyComponentSerializer
118
import org.bukkit.command.CommandSender
129

1310
class GPFCommand: GPCommand<GPFrameworkPlugin>(

0 commit comments

Comments
 (0)