Skip to content

Commit

Permalink
add executeCommand extension for server
Browse files Browse the repository at this point in the history
  • Loading branch information
btwonion authored and jakobkmar committed Jun 24, 2022
1 parent c566a3e commit 8bdea8c
Showing 1 changed file with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
package net.axay.silk.core.server

import net.minecraft.server.MinecraftServer

/**
* Executes the given [command] for this server.
*/

fun MinecraftServer.executeCommand(command: String){
this.commands.performCommand(this.createCommandSourceStack(), command)
}

0 comments on commit 8bdea8c

Please sign in to comment.