generated from sya-ri/KotlinSpigotPluginTemplate
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
96e12a1
commit 9407f20
Showing
6 changed files
with
80 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
# Minecraft Version | ||
pluginVersion=1.18.1 | ||
pluginVersion=1.19.3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
@echo off | ||
|
||
REM ユーザーにコミットメッセージを入力させる | ||
set /p commit_message="Enter commit message: " | ||
|
||
REM git add, commit, push を実行 | ||
git add . | ||
git commit -m "%commit_message%" | ||
if errorlevel 1 ( | ||
echo Error | ||
) else ( | ||
git push | ||
if errorlevel 1 ( | ||
echo Error | ||
) else ( | ||
echo Success | ||
) | ||
) |
18 changes: 18 additions & 0 deletions
18
src/main/kotlin/com/github/Ringoame196/Commands/itemName.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package com.github.Ringoame196.Commands | ||
|
||
import org.bukkit.command.Command | ||
import org.bukkit.command.CommandExecutor | ||
import org.bukkit.command.CommandSender | ||
import org.bukkit.command.TabCompleter | ||
|
||
class itemName : CommandExecutor,TabCompleter{ | ||
override fun onCommand(sender: CommandSender, command: Command, label: String, args: Array<out String>): Boolean { | ||
return true | ||
} | ||
|
||
override fun onTabComplete(sender: CommandSender, command: Command, label: String, args: Array<out String>): MutableList<String>? { | ||
val subCommand = mutableListOf<String>() | ||
|
||
return subCommand | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
package com.github.Ringoame196 | ||
|
||
import com.github.Ringoame196.Commands.itemName | ||
import org.bukkit.plugin.java.JavaPlugin | ||
|
||
class Main : JavaPlugin() { | ||
override fun onEnable() { | ||
super.onEnable() | ||
getCommand("itemName")!!.setExecutor(itemName()) | ||
} | ||
|
||
override fun onDisable() { | ||
super.onDisable() | ||
} | ||
} |