Advertisement
Evyatar12

example

Feb 7th, 2015
248
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.32 KB | None | 0 0
  1. public class main extends JavaPlugin {
  2.    
  3.     private List<String> collection = new ArrayList<String>();
  4.  
  5.     public boolean onCommand(...) {
  6.         /*
  7.         check the args...
  8.         */
  9.         if (collections.contains(args[0]) {
  10.             // the collection includes the arg
  11.         }
  12.         else {
  13.             // the collection does not include the arg
  14.         }
  15.     }
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement