summaryrefslogtreecommitdiffstats
path: root/MCServer/Plugins/APIDump/APIDesc.lua
diff options
context:
space:
mode:
authorr.ramazanov <r.ramazanov@servplus.ru>2014-04-24 08:32:26 +0200
committerr.ramazanov <r.ramazanov@servplus.ru>2014-04-24 08:32:26 +0200
commitd126adc124adb4f0a7bf5a28d43c263216f629b3 (patch)
tree52c4b374f58d6f7d61ab46828182f10bc50735e0 /MCServer/Plugins/APIDump/APIDesc.lua
parentMerge branch 'master' of https://github.com/mc-server/MCServer (diff)
parentUpdated docs for StringToEnchantmentID. (diff)
downloadcuberite-d126adc124adb4f0a7bf5a28d43c263216f629b3.tar
cuberite-d126adc124adb4f0a7bf5a28d43c263216f629b3.tar.gz
cuberite-d126adc124adb4f0a7bf5a28d43c263216f629b3.tar.bz2
cuberite-d126adc124adb4f0a7bf5a28d43c263216f629b3.tar.lz
cuberite-d126adc124adb4f0a7bf5a28d43c263216f629b3.tar.xz
cuberite-d126adc124adb4f0a7bf5a28d43c263216f629b3.tar.zst
cuberite-d126adc124adb4f0a7bf5a28d43c263216f629b3.zip
Diffstat (limited to 'MCServer/Plugins/APIDump/APIDesc.lua')
-rw-r--r--MCServer/Plugins/APIDump/APIDesc.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/MCServer/Plugins/APIDump/APIDesc.lua b/MCServer/Plugins/APIDump/APIDesc.lua
index 45e8d9677..1423d64bc 100644
--- a/MCServer/Plugins/APIDump/APIDesc.lua
+++ b/MCServer/Plugins/APIDump/APIDesc.lua
@@ -699,7 +699,7 @@ end</pre>
GetLevel = { Params = "EnchantmentNumID", Return = "number", Notes = "Returns the level of the specified enchantment stored in this object; 0 if not stored" },
IsEmpty = { Params = "", Return = "bool", Notes = "Returns true if the object stores no enchantments" },
SetLevel = { Params = "EnchantmentNumID, Level", Return = "", Notes = "Sets the level for the specified enchantment, adding it if not stored before or removing it if level < = 0" },
- StringToEnchantmentID = { Params = "EnchantmentTextID", Return = "number", Notes = "(static) Returns the enchantment numerical ID, -1 if not understood. Case insensitive" },
+ StringToEnchantmentID = { Params = "EnchantmentTextID", Return = "number", Notes = "(static) Returns the enchantment numerical ID, -1 if not understood. Case insensitive. Also understands plain numbers." },
ToString = { Params = "", Return = "string", Notes = "Returns the string description of all the enchantments stored in this object, in numerical-ID form" },
},
Constants =