<inputtype="search" name="search" id="searchbar" name="searchbar" placeholder="Search this book ..." aria-controls="searchresults-outer" aria-describedby="searchresults-header">
<p><imgsrc="./images/arguments/potion.png" alt="An image of a potion argument with a list of potion effect suggestions" /></p>
<p>The <code>PotionEffectArgument</code> class represents Minecraft potion effects. When used, this argument is casted to Bukkit's <code>PotionEffectType</code> class.</p>
<divclass="example">
<h3id="example---giving-a-player-a-potion-effect"><aclass="header" href="#example---giving-a-player-a-potion-effect">Example - Giving a player a potion effect</a></h3>
<p>Say we wanted to have a command that gives a player a potion effect. For this command, we'll use the following syntax:</p>
<p>In this example, we utilize some of the other arguments that we've described earlier, such as the <code>PlayerArgument</code> and <code>TimeArgument</code>. Since duration for the <code>PotionEffect</code> constructor is in ticks, this is perfectly fit for the <code>TimeArgument</code>, which is represented in ticks.</p>