/** * Full constructor * * @param instance The main plugin * @param player The player we are listening for * @param removal True to remove a store, false to add a store * @param setAdmin True to set an admin store */ public StoreManagementListener( RealStore instance, Player player, boolean removal, boolean setAdmin) { plugin = instance; owner = player; remove = removal; admin = setAdmin; plugin.addSetting(player); }
/** * Constructor to add a store * * @param instance The main plugin * @param player The player we are listening for */ public StoreManagementListener(RealStore instance, Player player) { plugin = instance; owner = player; plugin.addSetting(player); }