Skip to content

Commit

Permalink
Add /sc as a command for command engine feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgeberrex committed Jul 22, 2024
1 parent 216bf88 commit 735765a
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,12 @@ import network.warzone.mars.player.PlayerManager
import network.warzone.mars.player.feature.PlayerFeature
import network.warzone.mars.utils.*
import network.warzone.mars.utils.strategy.multiLine
import org.bukkit.Bukkit
import org.bukkit.ChatColor
import org.bukkit.command.CommandSender
import org.bukkit.entity.Player
import tc.oc.pgm.api.PGM
import tc.oc.pgm.api.Permissions
import java.time.Duration
import javax.annotation.Nullable

Expand Down Expand Up @@ -151,4 +153,9 @@ class ModCommands {
}
}
}

@Command(aliases = ["sc", "s"], desc = "Send a message in staff chat", usage = "<message>", perms = [Permissions.ADMINCHAT] )
fun onStaffChat(@Sender sender: CommandSender, message: String) {
Bukkit.dispatchCommand(sender, "a $message")
}
}

0 comments on commit 735765a

Please sign in to comment.