Fixed exploit with command privileges

This commit is contained in:
Ceikry
2022-07-18 12:15:37 +00:00
committed by Ryan
parent 0f245670f8
commit 466d6207f7
2 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -41,7 +41,7 @@ interface Commands : ContentInterface {
* @param name the name of the command. Example: ::example would be just "example"
* @param privilege the rights level needed to execute the command. Options are [Privilege.STANDARD], [Privilege.MODERATOR], [Privilege.ADMIN]. Defaults to [Privilege.STANDARD]
*/
fun define(name: String, privilege: Privilege = Privilege.STANDARD, usage: String = "", description: String = "", handle: (Player, Array<String>) -> Unit){
fun define(name: String, privilege: Privilege = Privilege.ADMIN, usage: String = "", description: String = "", handle: (Player, Array<String>) -> Unit){
CommandMapping.register(Command(name, privilege, usage, description, handle))
}