diff --git a/src/main/scala/li/cil/oc/server/component/DebugCard.scala b/src/main/scala/li/cil/oc/server/component/DebugCard.scala index bf2291b85..5b659ea64 100644 --- a/src/main/scala/li/cil/oc/server/component/DebugCard.scala +++ b/src/main/scala/li/cil/oc/server/component/DebugCard.scala @@ -86,15 +86,15 @@ object DebugCard { null }) - @Callback(doc = """function():number, number, number -- Get the player's position.""") + @Callback(doc = """function():number -- Get the player's health.""") def getHealth(context: Context, args: Arguments): Array[AnyRef] = withPlayer(player => Array(float2Float(player.getHealth))) - @Callback(doc = """function():number, number, number -- Get the player's position.""") + @Callback(doc = """function():number -- Get the player's max health.""") def getMaxHealth(context: Context, args: Arguments): Array[AnyRef] = withPlayer(player => Array(float2Float(player.getMaxHealth))) - @Callback(doc = """function():number, number, number -- Get the player's position.""") + @Callback(doc = """function(health:number) -- Set the player's health.""") def setHealth(context: Context, args: Arguments): Array[AnyRef] = withPlayer(player => { player.setHealth(args.checkDouble(0).toFloat) @@ -236,4 +236,4 @@ object DebugCard { } } -} \ No newline at end of file +}