@@ -54,7 +54,7 @@ object SABCommand: Command() {
5454 private val groupRemoveConfirmation = mutableMapOf<UUID , String >()
5555
5656 private fun Actor.sendHelp () {
57- send(" $PREFIX <green>SpicyAzisaBan commands" .translate())
57+ send(" ${ SABMessages . General .prefix} <green>SpicyAzisaBan commands" .translate())
5858 if (hasPermission(" sab.command.spicyazisaban.group" )) send(" ${ChatColor .RED } > ${ChatColor .AQUA } /sab group <group>" )
5959 if (hasPermission(" sab.command.spicyazisaban.info" )) send(" ${ChatColor .RED } > ${ChatColor .AQUA } /sab info" )
6060 if (hasPermission(" sab.command.spicyazisaban.creategroup" )) send(" ${ChatColor .RED } > ${ChatColor .AQUA } /sab creategroup <group>" )
@@ -131,7 +131,7 @@ object SABCommand: Command() {
131131 .addValue(" server" , server)
132132 .build()
133133 ).complete()
134- actor.send(" $PREFIX${ChatColor .GREEN } グループにサーバー ($server )を追加しました。 " )
134+ actor.send(" $PREFIX${ChatColor .GREEN } Added server ($server ) to group ( $groupName ). " )
135135 }
136136 " remove" -> {
137137 val server = args[3 ]
@@ -141,12 +141,12 @@ object SABCommand: Command() {
141141 .addWhere(" server" , server)
142142 .build()
143143 ).complete()
144- actor.send(" $PREFIX${ChatColor .GREEN } グループからサーバーを(そのグループに入っている場合は)除外しました。 " )
144+ actor.send(" $PREFIX${ChatColor .GREEN } Removed server ( $server ) from group ( $groupName ). " )
145145 }
146146 " info" -> {
147147 val servers = SpicyAzisaBan .instance.connection.getServersByGroup(args[1 ]).complete()
148- actor.send(" $PREFIX${ChatColor .AQUA } グループ : ${ChatColor .RESET }$groupName " )
149- actor.send(" $PREFIX - ${ChatColor .AQUA } サーバー :" )
148+ actor.send(" $PREFIX${ChatColor .AQUA } Group : ${ChatColor .RESET }$groupName " )
149+ actor.send(" $PREFIX - ${ChatColor .AQUA } Servers :" )
150150 servers.forEach { server ->
151151 actor.send(" $PREFIX - ${ChatColor .GREEN }$server " )
152152 }
@@ -215,7 +215,7 @@ object SABCommand: Command() {
215215 }
216216 " link" -> {
217217 if (actor !is PlayerActor ) {
218- return actor.send( " ${ ChatColor . RED } NO ${ ChatColor . AQUA } CONSOLE ${ ChatColor . GOLD } ZONE " )
218+ return
219219 }
220220 if (args.size <= 1 ) return
221221 SpicyAzisaBan .instance.connection
@@ -278,11 +278,11 @@ object SABCommand: Command() {
278278 (SpicyAzisaBan .instance.getPlatformType() != PlatformType .CLI && groupRemoveConfirmation[actor.uniqueId] != groupName)
279279 ) {
280280 println (" send" )
281- actor.send(" $PREFIX${ChatColor .GOLD } グループ「 ${ChatColor .YELLOW }$groupName${ChatColor .GOLD } 」を削除しますか?関連付けられているすべての処罰が解除されます。 " )
281+ actor.send(" $PREFIX${ChatColor .GOLD } Are you sure want to remove group ${ChatColor .YELLOW }$groupName${ChatColor .GOLD } ? All punishments associated with this group will be removed and this action cannot be undone. " )
282282 if (SpicyAzisaBan .instance.getPlatformType() == PlatformType .CLI ) {
283- actor.send(" $PREFIX${ChatColor .GOLD } 削除するには ${ChatColor .YELLOW } --confirm${ChatColor .GOLD } を入れて実行してください。 " )
283+ actor.send(" $PREFIX${ChatColor .GOLD } If you are sure, re-type the command with ${ChatColor .YELLOW } --confirm${ChatColor .GOLD } . " )
284284 } else {
285- actor.send(" $PREFIX${ChatColor .GOLD } 削除するには10秒以内に同じコマンドをもう一度実行してください。 " )
285+ actor.send(" $PREFIX${ChatColor .GOLD } If you are sure, re-enter the command within 10 seconds. " )
286286 }
287287 if (SpicyAzisaBan .instance.getPlatformType() != PlatformType .CLI ) {
288288 groupRemoveConfirmation[actor.uniqueId] = groupName
@@ -299,7 +299,7 @@ object SABCommand: Command() {
299299 .thenDo { SpicyAzisaBan .instance.connection.serverGroup.delete(FindOptions .Builder ().addWhere(" group" , groupName).build()).complete() }
300300 .thenDo {
301301 SpicyAzisaBan .instance.connection.cachedGroups.set(null )
302- actor.send(" $PREFIX${ChatColor .GREEN } グループに関連付けられた処罰を削除中 ..." )
302+ actor.send(" $PREFIX${ChatColor .GREEN } Removing all punishments associated with group ${ ChatColor . YELLOW }$groupName${ ChatColor . GREEN } ..." )
303303 SpicyAzisaBan .instance.connection.punishments
304304 .delete(FindOptions .Builder ().addWhere(" server" , groupName).build())
305305 .then { it.map { td -> Punishment .fromTableData(td) } }
@@ -321,11 +321,11 @@ object SABCommand: Command() {
321321 .catch { actor.sendErrorMessage(it) }
322322 .complete()
323323 groupRemoveConfirmation.remove(actor.uniqueId)
324- actor.send(" $PREFIX${ChatColor .GREEN } グループ「 ${ChatColor .GOLD }$groupName${ChatColor .GREEN } 」を削除しました。 " )
324+ actor.send(" $PREFIX${ChatColor .GREEN } Group ${ChatColor .GOLD }$groupName${ChatColor .GREEN } has been removed. " )
325325 }
326326 .catch {
327327 if (it::class .java == Exception ::class .java) return @catch
328- actor.send(" $PREFIX${ChatColor .RED } グループの削除に失敗しました。 " )
328+ actor.send(" $PREFIX${ChatColor .RED } Failed to delete group $groupName . " )
329329 SpicyAzisaBan .LOGGER .warning(" Failed to delete group $groupName " )
330330 it.printStackTrace()
331331 }
@@ -339,7 +339,7 @@ object SABCommand: Command() {
339339 return SpicyAzisaBan .instance.connection.getAllGroups()
340340 .then { list ->
341341 if (list.any { it.equals(groupName, true ) }) {
342- actor.send(" $PREFIX${ChatColor .RED } この名前はすでに使用されています。 " )
342+ actor.send(" $PREFIX${ChatColor .RED } Group ${ ChatColor . GOLD }$groupName${ ChatColor . RED } already exists. " )
343343 throw Exception ()
344344 }
345345 }
@@ -351,10 +351,10 @@ object SABCommand: Command() {
351351 }
352352 }
353353 .thenDo { SpicyAzisaBan .instance.connection.cachedGroups.set(null ) }
354- .then { actor.send(" ${ChatColor .GREEN } グループ「 ${ChatColor .GOLD }$groupName${ChatColor .GREEN } 」を作成しました。 " ) }
354+ .then { actor.send(" ${ChatColor .GREEN } Group ${ChatColor .GOLD }$groupName${ChatColor .GREEN } has been created. " ) }
355355 .catch {
356356 if (it::class .java == Exception ::class .java) return @catch
357- actor.send(" $PREFIX${ChatColor .RED } グループの作成に失敗しました。 " )
357+ actor.send(" $PREFIX${ChatColor .RED } Failed to create group $groupName . " )
358358 it.printStackTrace()
359359 }
360360 }
0 commit comments