org.bukkit
Annotation Type Warning


@Target(value={CONSTRUCTOR,METHOD,TYPE})
@Retention(value=RUNTIME)
public @interface Warning

This designates the warning state for a specific item.

When the server settings dictate 'default' warnings, warnings are printed if the value() is true.


Optional Element Summary
 String reason
          This can provide detailed information on why the event is deprecated.
 boolean value
          This sets if the deprecation warnings when registering events gets printed when the setting is in the default state.
 

value

public abstract boolean value
This sets if the deprecation warnings when registering events gets printed when the setting is in the default state.

Returns:
false normally, or true to encourage warning printout
Default:
false

reason

public abstract String reason
This can provide detailed information on why the event is deprecated.

Returns:
The reason an event is deprecated
Default:
""


Copyright © 2014. All rights reserved.