Nocx

Groupe General

Apr 6th, 2015
465
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.78 KB | None | 0 0
  1. package fr.src.gc;
  2.  
  3. import java.util.ArrayList;
  4.  
  5. import org.bukkit.ChatColor;
  6. import org.bukkit.entity.Player;
  7.  
  8. public class GroupGeneral {
  9.  
  10.     public ChatColor GroupColor;
  11.     public ArrayList<Player> Players;
  12.     public String GroupName;
  13.    
  14.     public GroupGeneral(ChatColor GroupColor, ArrayList<Player> Players, String GroupName)
  15.     {
  16.         this.GroupColor = GroupColor;
  17.         this.Players = Players;
  18.         this.GroupName = GroupName;
  19.     }
  20.    
  21.     public ChatColor getGroupColor()
  22.     {
  23.         return GroupColor;
  24.     }
  25.    
  26.     public ArrayList<Player> getGroupPlayers()
  27.     {
  28.         return Players;
  29.     }
  30.    
  31.     public String getGroupName()
  32.     {
  33.         return GroupName;
  34.     }
  35.    
  36.     public void AddPlayer(Player player)
  37.     {
  38.         Players.add(player);
  39.     }
  40.    
  41.     public void RemovePlayer(Player player)
  42.     {
  43.         Players.remove(player);
  44.     }
  45.    
  46. }
Advertisement
Add Comment
Please, Sign In to add comment