You are viewing an older version of the site. Click here to view
the latest version of this page. (This may be a dead link, if so, try the root page of the docs
here.)
== remove_item_enchant ==
[[../objects/com.commandhelper.EnchantmentException|com.commandhelper.EnchantmentException]]
[[../objects/com.commandhelper.PlayerOfflineException|com.commandhelper.PlayerOfflineException]] |- ! scope="row" | Since | 3.3.3 |- ! scope="row" | Restricted |
Removes an enchantment from an item. The type may be a valid enchantment, or an array of enchantment names. It can also be null, and all enchantments will be removed. If an enchantment is specified, and the item is not enchanted with that, it is simply ignored.
=== Vital Info ===
{| style="width: 40%;" cellspacing="1" cellpadding="1" border="1" class="wikitable"
|-
! scope="col" width="20%" |
! scope="col" width="80%" |
|-
! scope="row" | Name
| remove_item_enchant
|-
! scope="row" | Returns
| void
|-
! scope="row" | Usages
| [player], slot, type
|-
! scope="row" | Throws
| [[../objects/ms.lang.CastException|ms.lang.CastException]][[../objects/com.commandhelper.EnchantmentException|com.commandhelper.EnchantmentException]]
[[../objects/com.commandhelper.PlayerOfflineException|com.commandhelper.PlayerOfflineException]] |- ! scope="row" | Since | 3.3.3 |- ! scope="row" | Restricted |
Yes
|-
! scope="row" | Optimizations
| None
|}
=== Usages ===
remove_item_enchant([player], slot, type)=== Examples === Sorry, there are no examples for this function! :(
Find a bug in this page? Edit this page yourself, then submit a pull request. (Note this page is automatically generated from the documentation in the source code.)